Re: How to prevent submenu closure after GtkCheckMenuItem toggling?
- From: Emmanuel Saracco <esaracco free fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to prevent submenu closure after GtkCheckMenuItem toggling?
- Date: Sun, 24 Jan 2010 07:54:02 +0100
Hi,
Emmanuel Saracco a écrit :
Hi,
I am searching a way to prevent submenu closure after a GtkCheckMenuItem
has been toggled. I need that because my submenu display checkboxes used
to filter a search result, and I don't want the user reopen menu/submenu
every time he toggled one.
I trapped signals at GtkWidget level, but with no success.
Is there a way to do that, or is it currently impossible without
creating a custom menu widget?
I finally found a way to do it by catching GtkWidget GDK_BUTTON_RELEASE
on GtkMenu parent, and then catching GtkWidget event on each
GtkCheckMenuItem in it, and managing active state by myself in the event
handler on GDK_BUTTON_RELEASE event.
Bye
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]