diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 5 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 5 | ||||
-rw-r--r-- | gtk/gtkeditable.c | 18 | ||||
-rw-r--r-- | gtk/gtkmenu.c | 1 | ||||
-rw-r--r-- | gtk/gtkmenuitem.c | 2 |
10 files changed, 48 insertions, 8 deletions
@@ -1,3 +1,8 @@ +Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> + + * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the + event that was returned to us by gtk_get_current_event + Tue Jan 5 19:01:18 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c (gtk_color_selection_dialog_init): Push diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 19ab446c7e..23bbb693fb 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> + + * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the + event that was returned to us by gtk_get_current_event + Tue Jan 5 19:01:18 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c (gtk_color_selection_dialog_init): Push diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 19ab446c7e..23bbb693fb 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> + + * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the + event that was returned to us by gtk_get_current_event + Tue Jan 5 19:01:18 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c (gtk_color_selection_dialog_init): Push diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 19ab446c7e..23bbb693fb 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> + + * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the + event that was returned to us by gtk_get_current_event + Tue Jan 5 19:01:18 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c (gtk_color_selection_dialog_init): Push diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 19ab446c7e..23bbb693fb 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> + + * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the + event that was returned to us by gtk_get_current_event + Tue Jan 5 19:01:18 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c (gtk_color_selection_dialog_init): Push diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 19ab446c7e..23bbb693fb 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> + + * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the + event that was returned to us by gtk_get_current_event + Tue Jan 5 19:01:18 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c (gtk_color_selection_dialog_init): Push diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 19ab446c7e..23bbb693fb 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> + + * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the + event that was returned to us by gtk_get_current_event + Tue Jan 5 19:01:18 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c (gtk_color_selection_dialog_init): Push diff --git a/gtk/gtkeditable.c b/gtk/gtkeditable.c index dbd78d6362..ad97401cf4 100644 --- a/gtk/gtkeditable.c +++ b/gtk/gtkeditable.c @@ -776,6 +776,7 @@ static guint32 gtk_editable_get_event_time (GtkEditable *editable) { GdkEvent *event; + guint32 tm = GDK_CURRENT_TIME; event = gtk_get_current_event(); @@ -783,32 +784,33 @@ gtk_editable_get_event_time (GtkEditable *editable) switch (event->type) { case GDK_MOTION_NOTIFY: - return event->motion.time; + tm = event->motion.time; break; case GDK_BUTTON_PRESS: case GDK_2BUTTON_PRESS: case GDK_3BUTTON_PRESS: case GDK_BUTTON_RELEASE: - return event->button.time; + tm = event->button.time; break; case GDK_KEY_PRESS: case GDK_KEY_RELEASE: - return event->key.time; + tm = event->key.time; break; case GDK_ENTER_NOTIFY: case GDK_LEAVE_NOTIFY: - return event->crossing.time; + tm = event->crossing.time; break; case GDK_PROPERTY_NOTIFY: - return event->property.time; + tm = event->property.time; break; case GDK_SELECTION_CLEAR: case GDK_SELECTION_REQUEST: case GDK_SELECTION_NOTIFY: - return event->selection.time; + tm = event->selection.time; break; case GDK_PROXIMITY_IN: case GDK_PROXIMITY_OUT: - return event->proximity.time; + tm = event->proximity.time; break; default: /* use current time */ break; } + gdk_event_free(event); - return GDK_CURRENT_TIME; + return tm; } void diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index 6008da04e6..c603279b58 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -355,6 +355,7 @@ gtk_menu_popup (GtkMenu *menu, if ((current_event->type != GDK_BUTTON_PRESS) && (current_event->type != GDK_ENTER_NOTIFY)) menu_shell->ignore_enter = TRUE; + gdk_event_free(current_event); } if (menu->torn_off) diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 1431210670..a42893cd4e 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -545,6 +545,7 @@ gtk_real_menu_item_select (GtkItem *item) menu_item); else gtk_menu_item_select_timeout (menu_item); + if(event) gdk_event_free(event); } gtk_widget_set_state (GTK_WIDGET (menu_item), GTK_STATE_PRELIGHT); @@ -577,6 +578,7 @@ gtk_real_menu_item_deselect (GtkItem *item) etime = event ? gdk_event_get_time (event) : GDK_CURRENT_TIME; if (etime > last_submenu_deselect_time) last_submenu_deselect_time = etime; + if(event) gdk_event_free(event); } gtk_widget_set_state (GTK_WIDGET (menu_item), GTK_STATE_NORMAL); |