From 65b8297942f76723a795e9b5c1f02d4d3a6aa715 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 12 Dec 2000 04:31:29 +0000 Subject: Connect a button-press-event signal on the splash screen so users can 2000-12-11 Jeffrey Stedfast * 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. svn path=/trunk/; revision=6938 --- shell/ChangeLog | 6 ++++++ shell/e-splash.c | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'shell') 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 + + * 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 * 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); -- cgit v1.2.3