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:
Sven Neumann
2003-03-13 18:47:28 +00:00
committed by Sven Neumann
parent f6ce818476
commit 36c40894b6
2 changed files with 25 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2003-03-13 Sven Neumann <sven@gimp.org> 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 * app/widgets/gimptoolbox.c (gimp_toolbox_init): set a window type
hint of GDK_WINDOW_TYPE_HINT_NORMAL for the toolbox since UTILITY hint of GDK_WINDOW_TYPE_HINT_NORMAL for the toolbox since UTILITY
doesn't match here. doesn't match here.

View File

@ -39,6 +39,9 @@ static GtkWidget *label2 = NULL;
static GtkWidget *progress = NULL; static GtkWidget *progress = NULL;
static void splash_map (void);
/* public functions */ /* public functions */
void void
@ -59,6 +62,12 @@ splash_create (gboolean show_image)
g_signal_connect (win_initstatus, "delete_event", g_signal_connect (win_initstatus, "delete_event",
G_CALLBACK (gtk_true), NULL); 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); vbox = gtk_vbox_new (FALSE, 4);
gtk_container_add (GTK_CONTAINER (win_initstatus), vbox); gtk_container_add (GTK_CONTAINER (win_initstatus), vbox);
gtk_widget_show (vbox); gtk_widget_show (vbox);
@ -153,3 +162,16 @@ splash_update (const gchar *text1,
while (gtk_events_pending ()) while (gtk_events_pending ())
gtk_main_iteration (); 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);
}