Re: Trouble with signal ID lookup for "popped-up"

2018-01-09 Thread '-'
Hi, Is GtkMenu a dynamic class? Might need to demand-create it by increasing its reference count, and keep the reference alive, until you no longer need the signal ID. Otherwise ID can be different, or not exist, at the time you try actually using it, as signals get destroyed and created again:

Trouble with signal ID lookup for "popped-up"

2018-01-09 Thread Eric Williams
Hello, I am trying to lookup the signal ID for "popped-up" (GtkMenu). However the ID returned is always 0. Here is the code I am using: g_signal_lookup ("popped-up", GTK_TYPE_WIDGET) I tried using GTK_TYPE_MENU instead, but then I get the error: unable to lookup signal "popped-up" of unloaded

Re: GtkShortcutsWindow how to

2018-01-09 Thread Ondrej Tuma
Thanks a lot! It works! Searching is simple, it is about adding section to window. All what is in section when you add section to window is searchable. So simple fix is append section to window at and of your on-startup function :-) Ondra V Tue, 09 Jan 2018 15:43:02 +0200 '-' napsáno: > Hello,

Re: GtkShortcutsWindow how to

2018-01-09 Thread '-'
Hello, See object hierarchy on the documentation page. GtkShortcutsWindow inherits from GtkContainer, suggesting you treat it like a regular box. UI data files are good for examples, because you immediately see the widget hierarchy, which can be hard to follow in flat code. Here is how you can "t

GtkShortcutsWindow how to

2018-01-09 Thread Ondrej Tuma
Hi there, i try to create ShortcutsWindow for my application but, in documentation is: The recommended way to construct a GtkShortcutsWindow is with GtkBuilder, by populating a GtkShortcutsWindow with one or more GtkShortcutsSection objects, which contain GtkShortcutsGroups that in turn contain o