r15978 - gnucash/trunk/src/gnome-utils - Close the splash screen on clicks, #366418.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Apr 22 05:20:50 EDT 2007


Author: andi5
Date: 2007-04-22 05:20:49 -0400 (Sun, 22 Apr 2007)
New Revision: 15978
Trac: http://svn.gnucash.org/trac/changeset/15978

Modified:
   gnucash/trunk/src/gnome-utils/gnc-splash.c
Log:
Close the splash screen on clicks, #366418.


Modified: gnucash/trunk/src/gnome-utils/gnc-splash.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-splash.c	2007-04-22 09:03:34 UTC (rev 15977)
+++ gnucash/trunk/src/gnome-utils/gnc-splash.c	2007-04-22 09:20:49 UTC (rev 15978)
@@ -50,6 +50,13 @@
   }
 }
 
+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 @@
   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);



More information about the gnucash-changes mailing list