Re: Gio.Menu item with data ?
- From: Stuart Axon <stuaxo2 yahoo com>
- To: Gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: Gio.Menu item with data ?
- Date: Sat, 5 Dec 2015 16:29:17 +0000 (UTC)
So, for now - I'm making my MenuItems called something like
win.on_example_open__path__to__file__1
win.on_example_open__path__to__file__2
and corresponding SimpleActions
on_example_open__path__to__file__1
on_example_open__path__to__file__2
it feel wrong, but it works... seems like I should be able to achieve this using GVariant somehow. If there is no official way of doing this, I'd like to request it for a future Gtk version.
S++
On Saturday, December 5, 2015 10:06 PM, Stuart Axon <stuaxo2 yahoo com> wrote:
Hi,
I'm going a bit mad trying to find decent examples - I want to have a bit of data attached to a menu item, how can I do it ?
(my action is something like win.open_example + I want to have a filename attached to each item).
- I can't find anything with SimpleAction so far.
S++
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]