aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/window-commands.c23
2 files changed, 19 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index d85fc4163..d195669b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2003-09-23 Marco Pesenti Gritti <marco@gnome.org>
* src/ephy-automation.c: (ephy_automation_factory_new):
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)
{