Commit aa1d3355 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent d2f566a9
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
......
......@@ -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);
......
......@@ -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));
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment