[maemo-developers] Howto revert a gtk_widget_tap_and_hold_setup
From: Sergio Villar Senin svillar at igalia.comDate: Tue Apr 17 21:52:24 EEST 2007
- Previous message: Compiling latest kernel (from kernel.org) in n800
- Next message: Howto revert a gtk_widget_tap_and_hold_setup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, is there any way to revert a gtk_widget_tap_and_hold_setup? I mean I have a widget that shows a popup as response to a tap and hold event. I want to change the contents of that popup menu in execution time. So I want to "unregister" the old one and setup a new one. I tried a combination of gtk_menu_get_for_attach_widget + gtk_menu_detach but it does not work, because it seems that the gtk_widget_tap_and_hold_setup does not attach the menu to the widget correctly. For example I have the following code: gtk_widget_tap_and_hold_setup (item, popup, NULL, 0); g_assert (gtk_menu_get_attach_widget (GTK_MENU(popup)) != NULL); g_assert (item == gtk_menu_get_attach_widget(GTK_MENU(popup))); The second assert fails, and I guess it should be correct, isn't it? Br PS: I'm using gtk 2.6.10, sardine's version
- Previous message: Compiling latest kernel (from kernel.org) in n800
- Next message: Howto revert a gtk_widget_tap_and_hold_setup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]