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:

committed by
Sven Neumann

parent
d2f566a95a
commit
aa1d33554a
@ -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>
|
2001-11-21 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* libgimpwidgets/gimpfileselection.c: set the window title for file
|
* 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);
|
count = fread (pixelrow, sizeof (guchar), logo_width * 3, fp);
|
||||||
if (count != (logo_width * 3))
|
if (count != (logo_width * 3))
|
||||||
{
|
{
|
||||||
gtk_widget_destroy (preview);
|
gtk_object_sink (GTK_OBJECT (preview));
|
||||||
g_free (pixelrow);
|
g_free (pixelrow);
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
return;
|
return;
|
||||||
@ -314,7 +314,8 @@ splash_logo_load (void)
|
|||||||
0, 0, 0, 0, logo_width, logo_height);
|
0, 0, 0, 0, logo_width, logo_height);
|
||||||
gdk_gc_unref (gc);
|
gdk_gc_unref (gc);
|
||||||
|
|
||||||
gtk_widget_unref (preview);
|
gtk_object_sink (GTK_OBJECT (preview));
|
||||||
|
|
||||||
g_free (pixelrow);
|
g_free (pixelrow);
|
||||||
|
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
|
@ -73,6 +73,10 @@ void
|
|||||||
gimp_help_init (void)
|
gimp_help_init (void)
|
||||||
{
|
{
|
||||||
tool_tips = gtk_tooltips_new ();
|
tool_tips = gtk_tooltips_new ();
|
||||||
|
|
||||||
|
/* take ownership of the tooltips */
|
||||||
|
g_object_ref (G_OBJECT (tool_tips));
|
||||||
|
gtk_object_sink (GTK_OBJECT (tool_tips));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user