diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-12-12 12:31:29 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-12-12 12:31:29 +0800 |
commit | 65b8297942f76723a795e9b5c1f02d4d3a6aa715 (patch) | |
tree | ce4e6d74e807d4ee1a5424bf3d5377db75b5981c /shell | |
parent | e1f9153014f0fbcdd9d1c0682ac23bef74499947 (diff) | |
download | gsoc2013-evolution-65b8297942f76723a795e9b5c1f02d4d3a6aa715.tar gsoc2013-evolution-65b8297942f76723a795e9b5c1f02d4d3a6aa715.tar.gz gsoc2013-evolution-65b8297942f76723a795e9b5c1f02d4d3a6aa715.tar.bz2 gsoc2013-evolution-65b8297942f76723a795e9b5c1f02d4d3a6aa715.tar.lz gsoc2013-evolution-65b8297942f76723a795e9b5c1f02d4d3a6aa715.tar.xz gsoc2013-evolution-65b8297942f76723a795e9b5c1f02d4d3a6aa715.tar.zst gsoc2013-evolution-65b8297942f76723a795e9b5c1f02d4d3a6aa715.zip |
Connect a button-press-event signal on the splash screen so users can
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.
svn path=/trunk/; revision=6938
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); |