suppress notifcation of startup completion from the splash screen.
2003-03-13 Sven Neumann <sven@gimp.org> * app/gui/splash.c (splash_create): suppress notifcation of startup completion from the splash screen.
This commit is contained in:

committed by
Sven Neumann

parent
f6ce818476
commit
36c40894b6
@ -1,5 +1,8 @@
|
||||
2003-03-13 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gui/splash.c (splash_create): suppress notifcation of
|
||||
startup completion from the splash screen.
|
||||
|
||||
* app/widgets/gimptoolbox.c (gimp_toolbox_init): set a window type
|
||||
hint of GDK_WINDOW_TYPE_HINT_NORMAL for the toolbox since UTILITY
|
||||
doesn't match here.
|
||||
|
@ -39,6 +39,9 @@ static GtkWidget *label2 = NULL;
|
||||
static GtkWidget *progress = NULL;
|
||||
|
||||
|
||||
static void splash_map (void);
|
||||
|
||||
|
||||
/* public functions */
|
||||
|
||||
void
|
||||
@ -59,6 +62,12 @@ splash_create (gboolean show_image)
|
||||
g_signal_connect (win_initstatus, "delete_event",
|
||||
G_CALLBACK (gtk_true), NULL);
|
||||
|
||||
/* we don't want the splash screen to send the startup notification */
|
||||
gtk_window_set_auto_startup_notification (FALSE);
|
||||
g_signal_connect (win_initstatus, "map",
|
||||
G_CALLBACK (splash_map),
|
||||
NULL);
|
||||
|
||||
vbox = gtk_vbox_new (FALSE, 4);
|
||||
gtk_container_add (GTK_CONTAINER (win_initstatus), vbox);
|
||||
gtk_widget_show (vbox);
|
||||
@ -153,3 +162,16 @@ splash_update (const gchar *text1,
|
||||
while (gtk_events_pending ())
|
||||
gtk_main_iteration ();
|
||||
}
|
||||
|
||||
|
||||
/* private functions */
|
||||
|
||||
static void
|
||||
splash_map (void)
|
||||
{
|
||||
/* Reenable startup notification after the splash has been shown
|
||||
* so that the next window that is mapped sends the notification.
|
||||
*/
|
||||
gtk_window_set_auto_startup_notification (TRUE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user