Don't leak the secondary dialogs. (#155084, Paolo Borelli)
2004-10-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaboutdialog.c (gtk_about_dialog_destroy): Don't leak the secondary dialogs. (#155084, Paolo Borelli)
This commit is contained in:
parent
357ab76a9a
commit
62fa88e473
@ -1,5 +1,8 @@
|
|||||||
2004-10-16 Matthias Clasen <mclasen@redhat.com>
|
2004-10-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkaboutdialog.c (gtk_about_dialog_destroy): Don't leak
|
||||||
|
the secondary dialogs. (#155084, Paolo Borelli)
|
||||||
|
|
||||||
* gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
|
* gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
|
||||||
focus on the ring.
|
focus on the ring.
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2004-10-16 Matthias Clasen <mclasen@redhat.com>
|
2004-10-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkaboutdialog.c (gtk_about_dialog_destroy): Don't leak
|
||||||
|
the secondary dialogs. (#155084, Paolo Borelli)
|
||||||
|
|
||||||
* gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
|
* gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
|
||||||
focus on the ring.
|
focus on the ring.
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2004-10-16 Matthias Clasen <mclasen@redhat.com>
|
2004-10-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkaboutdialog.c (gtk_about_dialog_destroy): Don't leak
|
||||||
|
the secondary dialogs. (#155084, Paolo Borelli)
|
||||||
|
|
||||||
* gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
|
* gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
|
||||||
focus on the ring.
|
focus on the ring.
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2004-10-16 Matthias Clasen <mclasen@redhat.com>
|
2004-10-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkaboutdialog.c (gtk_about_dialog_destroy): Don't leak
|
||||||
|
the secondary dialogs. (#155084, Paolo Borelli)
|
||||||
|
|
||||||
* gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
|
* gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
|
||||||
focus on the ring.
|
focus on the ring.
|
||||||
|
|
||||||
|
@ -114,6 +114,7 @@ static void gtk_about_dialog_set_property (GObject
|
|||||||
guint prop_id,
|
guint prop_id,
|
||||||
const GValue *value,
|
const GValue *value,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
|
static void gtk_about_dialog_destroy (GtkObject *object);
|
||||||
static void update_name_version (GtkAboutDialog *about);
|
static void update_name_version (GtkAboutDialog *about);
|
||||||
static GtkIconSet * icon_set_new_from_pixbufs (GList *pixbufs);
|
static GtkIconSet * icon_set_new_from_pixbufs (GList *pixbufs);
|
||||||
static void activate_url (GtkWidget *widget,
|
static void activate_url (GtkWidget *widget,
|
||||||
@ -179,6 +180,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
|
|||||||
object_class->get_property = gtk_about_dialog_get_property;
|
object_class->get_property = gtk_about_dialog_get_property;
|
||||||
|
|
||||||
object_class->finalize = gtk_about_dialog_finalize;
|
object_class->finalize = gtk_about_dialog_finalize;
|
||||||
|
((GtkObjectClass *)klass)->destroy = gtk_about_dialog_destroy;
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_NAME,
|
PROP_NAME,
|
||||||
@ -402,6 +404,26 @@ gtk_about_dialog_finalize (GObject *object)
|
|||||||
G_OBJECT_CLASS (gtk_about_dialog_parent_class)->finalize (object);
|
G_OBJECT_CLASS (gtk_about_dialog_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_about_dialog_destroy (GtkObject *object)
|
||||||
|
{
|
||||||
|
GtkAboutDialog *about = GTK_ABOUT_DIALOG (object);
|
||||||
|
GtkAboutDialogPrivate *priv = (GtkAboutDialogPrivate *)about->private_data;
|
||||||
|
|
||||||
|
if (priv->credits_dialog)
|
||||||
|
{
|
||||||
|
gtk_widget_destroy (priv->credits_dialog);
|
||||||
|
priv->credits_dialog = NULL;
|
||||||
|
}
|
||||||
|
if (priv->license_dialog)
|
||||||
|
{
|
||||||
|
gtk_widget_destroy (priv->license_dialog);
|
||||||
|
priv->license_dialog = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
GTK_OBJECT_CLASS (gtk_about_dialog_parent_class)->destroy (object);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_about_dialog_set_property (GObject *object,
|
gtk_about_dialog_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user