From aa1d33554a1c13bdde49cfe97b8b2a88b1415204 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 21 Nov 2001 19:42:51 +0000 Subject: [PATCH] sink the GtkPreview created for the splash. 2001-11-21 Sven Neumann * app/gui/splash.c: sink the GtkPreview created for the splash. * libgimpwidgets/gimphelpui.c: ref and sink the tooltips on creation. --- ChangeLog | 6 ++++++ app/gui/splash.c | 5 +++-- libgimpwidgets/gimphelpui.c | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4857a32671..cea77201a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-11-21 Sven Neumann + + * app/gui/splash.c: sink the GtkPreview created for the splash. + + * libgimpwidgets/gimphelpui.c: ref and sink the tooltips on creation. + 2001-11-21 Sven Neumann * libgimpwidgets/gimpfileselection.c: set the window title for file diff --git a/app/gui/splash.c b/app/gui/splash.c index 16083864ef..f1aac8c1a5 100644 --- a/app/gui/splash.c +++ b/app/gui/splash.c @@ -296,7 +296,7 @@ splash_logo_load (void) count = fread (pixelrow, sizeof (guchar), logo_width * 3, fp); if (count != (logo_width * 3)) { - gtk_widget_destroy (preview); + gtk_object_sink (GTK_OBJECT (preview)); g_free (pixelrow); fclose (fp); return; @@ -314,7 +314,8 @@ splash_logo_load (void) 0, 0, 0, 0, logo_width, logo_height); gdk_gc_unref (gc); - gtk_widget_unref (preview); + gtk_object_sink (GTK_OBJECT (preview)); + g_free (pixelrow); fclose (fp); diff --git a/libgimpwidgets/gimphelpui.c b/libgimpwidgets/gimphelpui.c index 5bd9182307..63e1886ecb 100644 --- a/libgimpwidgets/gimphelpui.c +++ b/libgimpwidgets/gimphelpui.c @@ -73,6 +73,10 @@ void gimp_help_init (void) { tool_tips = gtk_tooltips_new (); + + /* take ownership of the tooltips */ + g_object_ref (G_OBJECT (tool_tips)); + gtk_object_sink (GTK_OBJECT (tool_tips)); } /**