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
_______________________________________________
maemo-developers mailing list
maemo-developers maemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
|