mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Close the splash screen on clicks, #366418.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15978 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -50,6 +50,13 @@ gnc_gui_init_splash (void)
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
button_press_cb(GtkWidget *widget, GdkEventButton *event, gpointer unused)
|
||||
{
|
||||
gnc_destroy_splash_screen();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
gnc_show_splash_screen (void)
|
||||
{
|
||||
@@ -112,6 +119,10 @@ gnc_show_splash_screen (void)
|
||||
gtk_box_pack_start (GTK_BOX (vbox), progress, FALSE, FALSE, 0);
|
||||
gtk_container_add (GTK_CONTAINER (splash), vbox);
|
||||
|
||||
gtk_widget_add_events(splash, GDK_BUTTON_PRESS_MASK);
|
||||
g_signal_connect(splash, "button_press_event",
|
||||
G_CALLBACK(button_press_cb), NULL);
|
||||
|
||||
gtk_window_set_auto_startup_notification (FALSE);
|
||||
gtk_widget_show_all (splash);
|
||||
gtk_window_set_auto_startup_notification (TRUE);
|
||||
|
||||
Reference in New Issue
Block a user