diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/e-splash.c | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index c401b553b6..4e83ca66ac 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2000-12-11 Jeffrey Stedfast <fejj@helixcode.com> + + * e-splash.c (e_splash_construct): Connect a button-press-event + signal on the splash screen so users can click it to hide it. + (button_press_event): New callback to hide the splash screen. + 2000-12-11 Dan Winship <danw@helixcode.com> * e-shell-view.c (get_type_for_{folder,storage}): return NULL if diff --git a/shell/e-splash.c b/shell/e-splash.c index 8588d085b8..812166fa29 100644 --- a/shell/e-splash.c +++ b/shell/e-splash.c @@ -258,6 +258,14 @@ init (ESplash *splash) splash->priv = priv; } +static gboolean +button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer data) +{ + ESplash *splash = (ESplash *) data; + + gtk_widget_hide (GTK_WIDGET (splash)); +} + /** * e_splash_construct: @@ -303,7 +311,10 @@ e_splash_construct (ESplash *splash, GNOME_TYPE_CANVAS_PIXBUF, "pixbuf", splash_image_pixbuf, NULL); - + + gtk_signal_connect (GTK_OBJECT (splash), "button-press-event", + GTK_SIGNAL_FUNC (button_press_event), splash); + gtk_object_set (GTK_OBJECT (splash), "type", GTK_WINDOW_POPUP, NULL); gtk_window_set_position (GTK_WINDOW (splash), GTK_WIN_POS_CENTER); gtk_window_set_policy (GTK_WINDOW (splash), FALSE, FALSE, FALSE); |