libgimp/gimpfileselection.[ch] unref pixmaps here, too.
2000-02-08 Michael Natterer <mitch@gimp.org> * libgimp/gimpfileselection.[ch] * libgimp/gimppatheditor.[ch]: unref pixmaps here, too.
This commit is contained in:

committed by
Michael Natterer

parent
a57b5951d6
commit
5afe831418
@ -1,3 +1,8 @@
|
|||||||
|
2000-02-08 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* libgimp/gimpfileselection.[ch]
|
||||||
|
* libgimp/gimppatheditor.[ch]: unref pixmaps here, too.
|
||||||
|
|
||||||
2000-02-08 Michael Natterer <mitch@gimp.org>
|
2000-02-08 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/gimpdnd.[ch]: added a frame around all dnd previews. Fixed a
|
* app/gimpdnd.[ch]: added a frame around all dnd previews. Fixed a
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimpfileselection.c
|
* gimpfileselection.c
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@ -82,6 +82,16 @@ gimp_file_selection_destroy (GtkObject *object)
|
|||||||
if (gfs->title)
|
if (gfs->title)
|
||||||
g_free (gfs->title);
|
g_free (gfs->title);
|
||||||
|
|
||||||
|
if (gfs->yes_pixmap)
|
||||||
|
gdk_pixmap_unref (gfs->yes_pixmap);
|
||||||
|
if (gfs->yes_mask)
|
||||||
|
gdk_bitmap_unref (gfs->yes_mask);
|
||||||
|
|
||||||
|
if (gfs->no_pixmap)
|
||||||
|
gdk_pixmap_unref (gfs->no_pixmap);
|
||||||
|
if (gfs->no_mask)
|
||||||
|
gdk_bitmap_unref (gfs->no_mask);
|
||||||
|
|
||||||
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
||||||
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimpfileselection.h
|
* gimpfileselection.h
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimppatheditor.c
|
* gimppatheditor.c
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@ -41,11 +41,6 @@ static void gimp_path_editor_move_callback (GtkWidget *widget, gpointer data)
|
|||||||
static void gimp_path_editor_filesel_callback (GtkWidget *widget, gpointer data);
|
static void gimp_path_editor_filesel_callback (GtkWidget *widget, gpointer data);
|
||||||
static void gimp_path_editor_delete_callback (GtkWidget *widget, gpointer data);
|
static void gimp_path_editor_delete_callback (GtkWidget *widget, gpointer data);
|
||||||
|
|
||||||
/*
|
|
||||||
static void gimp_path_editor_check_path (GimpPathEditor *gpe,
|
|
||||||
GtkWidget *list_item);
|
|
||||||
*/
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PATH_CHANGED,
|
PATH_CHANGED,
|
||||||
@ -260,6 +255,9 @@ gimp_path_editor_realize (GtkWidget *widget)
|
|||||||
gtk_widget_show (gtk_pixmap);
|
gtk_widget_show (gtk_pixmap);
|
||||||
gtk_widget_show (gpe->new_button);
|
gtk_widget_show (gpe->new_button);
|
||||||
|
|
||||||
|
gdk_pixmap_unref (pixmap);
|
||||||
|
gdk_bitmap_unref (mask);
|
||||||
|
|
||||||
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
||||||
&mask,
|
&mask,
|
||||||
&style->bg[GTK_STATE_NORMAL],
|
&style->bg[GTK_STATE_NORMAL],
|
||||||
@ -269,6 +267,9 @@ gimp_path_editor_realize (GtkWidget *widget)
|
|||||||
gtk_widget_show (gtk_pixmap);
|
gtk_widget_show (gtk_pixmap);
|
||||||
gtk_widget_show (gpe->up_button);
|
gtk_widget_show (gpe->up_button);
|
||||||
|
|
||||||
|
gdk_pixmap_unref (pixmap);
|
||||||
|
gdk_bitmap_unref (mask);
|
||||||
|
|
||||||
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
||||||
&mask,
|
&mask,
|
||||||
&style->bg[GTK_STATE_NORMAL],
|
&style->bg[GTK_STATE_NORMAL],
|
||||||
@ -278,6 +279,9 @@ gimp_path_editor_realize (GtkWidget *widget)
|
|||||||
gtk_widget_show (gtk_pixmap);
|
gtk_widget_show (gtk_pixmap);
|
||||||
gtk_widget_show (gpe->down_button);
|
gtk_widget_show (gpe->down_button);
|
||||||
|
|
||||||
|
gdk_pixmap_unref (pixmap);
|
||||||
|
gdk_bitmap_unref (mask);
|
||||||
|
|
||||||
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
||||||
&mask,
|
&mask,
|
||||||
&style->bg[GTK_STATE_NORMAL],
|
&style->bg[GTK_STATE_NORMAL],
|
||||||
@ -287,12 +291,8 @@ gimp_path_editor_realize (GtkWidget *widget)
|
|||||||
gtk_widget_show (gtk_pixmap);
|
gtk_widget_show (gtk_pixmap);
|
||||||
gtk_widget_show (gpe->delete_button);
|
gtk_widget_show (gpe->delete_button);
|
||||||
|
|
||||||
/*
|
gdk_pixmap_unref (pixmap);
|
||||||
for (list = GTK_LIST (gpe->dir_list)->children; list; list = list->next)
|
gdk_bitmap_unref (mask);
|
||||||
{
|
|
||||||
gimp_path_editor_check_path (gpe, GTK_WIDGET (list->data));
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gchar *
|
gchar *
|
||||||
@ -505,15 +505,5 @@ gimp_path_editor_filesel_callback (GtkWidget *widget,
|
|||||||
(GtkDestroyNotify) g_free);
|
(GtkDestroyNotify) g_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* gimp_path_editor_check_path (gpe, gpe->selected_item); */
|
|
||||||
|
|
||||||
gtk_signal_emit (GTK_OBJECT (gpe), gimp_path_editor_signals[PATH_CHANGED]);
|
gtk_signal_emit (GTK_OBJECT (gpe), gimp_path_editor_signals[PATH_CHANGED]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
static void gimp_path_editor_check_path (GimpPathEditor *gpe,
|
|
||||||
GtkWidget *list_item)
|
|
||||||
{
|
|
||||||
g_print ("check path\n");
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimppatheditor.h
|
* gimppatheditor.h
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimpfileselection.c
|
* gimpfileselection.c
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@ -82,6 +82,16 @@ gimp_file_selection_destroy (GtkObject *object)
|
|||||||
if (gfs->title)
|
if (gfs->title)
|
||||||
g_free (gfs->title);
|
g_free (gfs->title);
|
||||||
|
|
||||||
|
if (gfs->yes_pixmap)
|
||||||
|
gdk_pixmap_unref (gfs->yes_pixmap);
|
||||||
|
if (gfs->yes_mask)
|
||||||
|
gdk_bitmap_unref (gfs->yes_mask);
|
||||||
|
|
||||||
|
if (gfs->no_pixmap)
|
||||||
|
gdk_pixmap_unref (gfs->no_pixmap);
|
||||||
|
if (gfs->no_mask)
|
||||||
|
gdk_bitmap_unref (gfs->no_mask);
|
||||||
|
|
||||||
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
||||||
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimpfileselection.h
|
* gimpfileselection.h
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimpfileselection.c
|
* gimpfileselection.c
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@ -82,6 +82,16 @@ gimp_file_selection_destroy (GtkObject *object)
|
|||||||
if (gfs->title)
|
if (gfs->title)
|
||||||
g_free (gfs->title);
|
g_free (gfs->title);
|
||||||
|
|
||||||
|
if (gfs->yes_pixmap)
|
||||||
|
gdk_pixmap_unref (gfs->yes_pixmap);
|
||||||
|
if (gfs->yes_mask)
|
||||||
|
gdk_bitmap_unref (gfs->yes_mask);
|
||||||
|
|
||||||
|
if (gfs->no_pixmap)
|
||||||
|
gdk_pixmap_unref (gfs->no_pixmap);
|
||||||
|
if (gfs->no_mask)
|
||||||
|
gdk_bitmap_unref (gfs->no_mask);
|
||||||
|
|
||||||
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
if (GTK_OBJECT_CLASS (parent_class)->destroy)
|
||||||
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimpfileselection.h
|
* gimpfileselection.h
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimppatheditor.c
|
* gimppatheditor.c
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@ -41,11 +41,6 @@ static void gimp_path_editor_move_callback (GtkWidget *widget, gpointer data)
|
|||||||
static void gimp_path_editor_filesel_callback (GtkWidget *widget, gpointer data);
|
static void gimp_path_editor_filesel_callback (GtkWidget *widget, gpointer data);
|
||||||
static void gimp_path_editor_delete_callback (GtkWidget *widget, gpointer data);
|
static void gimp_path_editor_delete_callback (GtkWidget *widget, gpointer data);
|
||||||
|
|
||||||
/*
|
|
||||||
static void gimp_path_editor_check_path (GimpPathEditor *gpe,
|
|
||||||
GtkWidget *list_item);
|
|
||||||
*/
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PATH_CHANGED,
|
PATH_CHANGED,
|
||||||
@ -260,6 +255,9 @@ gimp_path_editor_realize (GtkWidget *widget)
|
|||||||
gtk_widget_show (gtk_pixmap);
|
gtk_widget_show (gtk_pixmap);
|
||||||
gtk_widget_show (gpe->new_button);
|
gtk_widget_show (gpe->new_button);
|
||||||
|
|
||||||
|
gdk_pixmap_unref (pixmap);
|
||||||
|
gdk_bitmap_unref (mask);
|
||||||
|
|
||||||
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
||||||
&mask,
|
&mask,
|
||||||
&style->bg[GTK_STATE_NORMAL],
|
&style->bg[GTK_STATE_NORMAL],
|
||||||
@ -269,6 +267,9 @@ gimp_path_editor_realize (GtkWidget *widget)
|
|||||||
gtk_widget_show (gtk_pixmap);
|
gtk_widget_show (gtk_pixmap);
|
||||||
gtk_widget_show (gpe->up_button);
|
gtk_widget_show (gpe->up_button);
|
||||||
|
|
||||||
|
gdk_pixmap_unref (pixmap);
|
||||||
|
gdk_bitmap_unref (mask);
|
||||||
|
|
||||||
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
||||||
&mask,
|
&mask,
|
||||||
&style->bg[GTK_STATE_NORMAL],
|
&style->bg[GTK_STATE_NORMAL],
|
||||||
@ -278,6 +279,9 @@ gimp_path_editor_realize (GtkWidget *widget)
|
|||||||
gtk_widget_show (gtk_pixmap);
|
gtk_widget_show (gtk_pixmap);
|
||||||
gtk_widget_show (gpe->down_button);
|
gtk_widget_show (gpe->down_button);
|
||||||
|
|
||||||
|
gdk_pixmap_unref (pixmap);
|
||||||
|
gdk_bitmap_unref (mask);
|
||||||
|
|
||||||
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
pixmap = gdk_pixmap_create_from_xpm_d (widget->window,
|
||||||
&mask,
|
&mask,
|
||||||
&style->bg[GTK_STATE_NORMAL],
|
&style->bg[GTK_STATE_NORMAL],
|
||||||
@ -287,12 +291,8 @@ gimp_path_editor_realize (GtkWidget *widget)
|
|||||||
gtk_widget_show (gtk_pixmap);
|
gtk_widget_show (gtk_pixmap);
|
||||||
gtk_widget_show (gpe->delete_button);
|
gtk_widget_show (gpe->delete_button);
|
||||||
|
|
||||||
/*
|
gdk_pixmap_unref (pixmap);
|
||||||
for (list = GTK_LIST (gpe->dir_list)->children; list; list = list->next)
|
gdk_bitmap_unref (mask);
|
||||||
{
|
|
||||||
gimp_path_editor_check_path (gpe, GTK_WIDGET (list->data));
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gchar *
|
gchar *
|
||||||
@ -505,15 +505,5 @@ gimp_path_editor_filesel_callback (GtkWidget *widget,
|
|||||||
(GtkDestroyNotify) g_free);
|
(GtkDestroyNotify) g_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* gimp_path_editor_check_path (gpe, gpe->selected_item); */
|
|
||||||
|
|
||||||
gtk_signal_emit (GTK_OBJECT (gpe), gimp_path_editor_signals[PATH_CHANGED]);
|
gtk_signal_emit (GTK_OBJECT (gpe), gimp_path_editor_signals[PATH_CHANGED]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
static void gimp_path_editor_check_path (GimpPathEditor *gpe,
|
|
||||||
GtkWidget *list_item)
|
|
||||||
{
|
|
||||||
g_print ("check path\n");
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||||
*
|
*
|
||||||
* gimppatheditor.h
|
* gimppatheditor.h
|
||||||
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
* Copyright (C) 1999 Michael Natterer <mitch@gimp.org>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
Reference in New Issue
Block a user