aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-09-24 06:22:23 +0800
committerChristian Persch <chpe@src.gnome.org>2003-09-24 06:22:23 +0800
commitca341ca5a6b69c395850ae32b55d7550cf8e1a1d (patch)
tree4a6af03daa83a153c92def5e9bcb683861865b74 /src
parent30930917e8ce020776e0096928aedfebe779bfd5 (diff)
downloadgsoc2013-epiphany-ca341ca5a6b69c395850ae32b55d7550cf8e1a1d.tar
gsoc2013-epiphany-ca341ca5a6b69c395850ae32b55d7550cf8e1a1d.tar.gz
gsoc2013-epiphany-ca341ca5a6b69c395850ae32b55d7550cf8e1a1d.tar.bz2
gsoc2013-epiphany-ca341ca5a6b69c395850ae32b55d7550cf8e1a1d.tar.lz
gsoc2013-epiphany-ca341ca5a6b69c395850ae32b55d7550cf8e1a1d.tar.xz
gsoc2013-epiphany-ca341ca5a6b69c395850ae32b55d7550cf8e1a1d.tar.zst
gsoc2013-epiphany-ca341ca5a6b69c395850ae32b55d7550cf8e1a1d.zip
Check for NULL return of gtk_get_current_event. Fixes bug #123063.
2003-09-24 Christian Persch <chpe@cvs.gnome.org> * src/window-commands.c: (window_cmd_view_reload): Check for NULL return of gtk_get_current_event. Fixes bug #123063.
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index bb2286848..5f5dea0d5 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -210,18 +210,21 @@ window_cmd_view_reload (GtkAction *action,
g_return_if_fail (embed != NULL);
event = gtk_get_current_event ();
- type = event->type;
-
- if (type == GDK_BUTTON_RELEASE)
- {
- state = event->button.state;
- }
- else if (type == GDK_KEY_RELEASE)
+ if (event)
{
- state = event->key.state;
- }
+ type = event->type;
+
+ if (type == GDK_BUTTON_RELEASE)
+ {
+ state = event->button.state;
+ }
+ else if (type == GDK_KEY_RELEASE)
+ {
+ state = event->key.state;
+ }
- gdk_event_free (event);
+ gdk_event_free (event);
+ }
if (state & GDK_SHIFT_MASK)
{