forked from AuroraMiddleware/gtk
Free the private data. (#84903, Matthias Clasen)
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c (gtk_color_selection_finalize): Free the private data. (#84903, Matthias Clasen)
This commit is contained in:
parent
7aac398d1e
commit
6dde472cbe
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
|
||||||
|
Free the private data. (#84903, Matthias Clasen)
|
||||||
|
|
||||||
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
|
||||||
|
Free the private data. (#84903, Matthias Clasen)
|
||||||
|
|
||||||
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
|
||||||
|
Free the private data. (#84903, Matthias Clasen)
|
||||||
|
|
||||||
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
|
||||||
|
Free the private data. (#84903, Matthias Clasen)
|
||||||
|
|
||||||
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
|
||||||
|
Free the private data. (#84903, Matthias Clasen)
|
||||||
|
|
||||||
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Mon Oct 7 18:50:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcolorsel.c (gtk_color_selection_finalize):
|
||||||
|
Free the private data. (#84903, Matthias Clasen)
|
||||||
|
|
||||||
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Oct 7 18:21:39 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
* gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
|
||||||
|
@ -145,6 +145,7 @@ struct _ColorSelectionPrivate
|
|||||||
static void gtk_color_selection_init (GtkColorSelection *colorsel);
|
static void gtk_color_selection_init (GtkColorSelection *colorsel);
|
||||||
static void gtk_color_selection_class_init (GtkColorSelectionClass *klass);
|
static void gtk_color_selection_class_init (GtkColorSelectionClass *klass);
|
||||||
static void gtk_color_selection_destroy (GtkObject *object);
|
static void gtk_color_selection_destroy (GtkObject *object);
|
||||||
|
static void gtk_color_selection_finalize (GObject *object);
|
||||||
static void update_color (GtkColorSelection *colorsel);
|
static void update_color (GtkColorSelection *colorsel);
|
||||||
static void gtk_color_selection_set_property (GObject *object,
|
static void gtk_color_selection_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
@ -1711,6 +1712,7 @@ gtk_color_selection_class_init (GtkColorSelectionClass *klass)
|
|||||||
parent_class = gtk_type_class (GTK_TYPE_VBOX);
|
parent_class = gtk_type_class (GTK_TYPE_VBOX);
|
||||||
|
|
||||||
object_class->destroy = gtk_color_selection_destroy;
|
object_class->destroy = gtk_color_selection_destroy;
|
||||||
|
gobject_class->finalize = gtk_color_selection_finalize;
|
||||||
|
|
||||||
gobject_class->set_property = gtk_color_selection_set_property;
|
gobject_class->set_property = gtk_color_selection_set_property;
|
||||||
gobject_class->get_property = gtk_color_selection_get_property;
|
gobject_class->get_property = gtk_color_selection_get_property;
|
||||||
@ -1954,6 +1956,20 @@ gtk_color_selection_destroy (GtkObject *object)
|
|||||||
GTK_OBJECT_CLASS (parent_class)->destroy (object);
|
GTK_OBJECT_CLASS (parent_class)->destroy (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_color_selection_finalize (GObject *object)
|
||||||
|
{
|
||||||
|
GtkColorSelection *cselection = GTK_COLOR_SELECTION (object);
|
||||||
|
|
||||||
|
if (cselection->private_data)
|
||||||
|
{
|
||||||
|
g_free (cselection->private_data);
|
||||||
|
cselection->private_data = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_color_selection_realize (GtkWidget *widget)
|
gtk_color_selection_realize (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user