sink the GtkPreview created for the splash.

2001-11-21  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c: sink the GtkPreview created for the splash.

	* libgimpwidgets/gimphelpui.c: ref and sink the tooltips on creation.
This commit is contained in:
Sven Neumann 2001-11-21 19:42:51 +00:00 committed by Sven Neumann
parent d2f566a95a
commit aa1d33554a
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2001-11-21 Sven Neumann <sven@gimp.org>
* 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 <sven@gimp.org>
* libgimpwidgets/gimpfileselection.c: set the window title for file

View File

@ -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);

View File

@ -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));
}
/**