accelerator keys for (right-click) menu only work after menu has been through a show-all
- From: Dan Hitt <dan hitt gmail com>
- To: gtk-app-devel-list gnome org
- Subject: accelerator keys for (right-click) menu only work after menu has been through a show-all
- Date: Fri, 25 Nov 2016 10:53:54 -0800
Hi All,
I'm writing a little app, and i put a right click menu in it.
The menu is created early on, but i only show it (do a show-all on it)
when button 3 (right click) is pressed.
The items in the menu have accelerator keys.
The problem is that although the accelerator keys work after the first
show-all, so that i never have to right click again, i do have to
right click at least once.
Before the first right click, the accelerator keys do not work.
The menu is created early on, but i suppose some crucial piece of it
is must be getting some initialization during gtk_widget_show_all().
Is this correct?
And, if so, is there some way to do a show-all on the menu, without
actually showing anything, just to get the menu items initialized
enough that they can be handled with accelerator keys?
TIA for any info!
dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]