+2007-06-07 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
+
+ * src/hildon-window.c: Adding a patch from Tommi Komulainen to pass the
+ correct timestamp and button to gtk_menu_popup. Fixes MB#1466.
+
2007-06-07 Xan Lopez <xan.lopez@nokia.com>
* src/hildon-window: actually, you need to use the macro always, there's
hildon_window_is_topmost_notify (HildonWindow *window);
static gboolean
-hildon_window_toggle_menu (HildonWindow * self);
+hildon_window_toggle_menu (HildonWindow * self,
+ guint button,
+ guint32 time);
static gboolean
hildon_window_escape_timeout (gpointer data);
if (xclient_message_type_check (cm, "_MB_GRAB_TRANSFER"))
{
- hildon_window_toggle_menu (HILDON_WINDOW ( data ));
+ hildon_window_toggle_menu (HILDON_WINDOW ( data ), cm->data.l[2], cm->data.l[0]);
return GDK_FILTER_REMOVE;
}
/* opera hack clipboard client message */
switch (event->keyval)
{
case HILDON_HARDKEY_MENU:
- if (hildon_window_toggle_menu (HILDON_WINDOW (widget)))
+ if (hildon_window_toggle_menu (HILDON_WINDOW (widget), 0, GDK_CURRENT_TIME))
return TRUE;
break;
case HILDON_HARDKEY_ESC:
* to toggle)
*/
static gboolean
-hildon_window_toggle_menu (HildonWindow * self)
+hildon_window_toggle_menu (HildonWindow * self,
+ guint button,
+ guint32 time)
{
GtkMenu *menu_to_use = NULL;
GList *menu_children = NULL;
gtk_menu_popup (menu_to_use, NULL, NULL,
(GtkMenuPositionFunc)
hildon_window_menu_popup_func_full,
- self, 0,
- gtk_get_current_event_time ());
+ self, button, time);
}
else
{
gtk_menu_popup (menu_to_use, NULL, NULL,
(GtkMenuPositionFunc)
hildon_window_menu_popup_func,
- self, 0,
- gtk_get_current_event_time ());
+ self, button, time);
}
gtk_menu_shell_select_first (GTK_MENU_SHELL (menu_to_use), TRUE);
return TRUE;