Displayig a Tool in the Menu
Hi all, I have made a small widget that is populated in a page in a notebook in a panel. Right now, for experimental purposes it contains only a GTKButton. How can I make it appear in a menu like Fill and Stroke ?
Fill and Stroke is created under Object->Fill and Stroke (Shift+Ctrl+F).
On Apr 12, 2013, at 11:20 AM, Arshdeep Singh wrote:
Hi all, I have made a small widget that is populated in a page in a notebook in a panel. Right now, for experimental purposes it contains only a GTKButton. How can I make it appear in a menu like Fill and Stroke ?
Fill and Stroke is created under Object->Fill and Stroke (Shift+Ctrl+F).
We're trying to focus on a more logical approach, rather than physical. In that direction we set up verbs and actions then just get those placed into the menus.
Actions are a GTK+ concept https://developer.gnome.org/gtk2/stable/GtkAction.html https://developer.gnome.org/gtkmm/unstable/classGtk_1_1Action.html
Then we have a higher-level concept of a 'verb'. Verbs, aside from predating GtkAction's addition to Gtk, are not tied to a specific Gtk window but apply per document. We also have helpers that can get a gkt action from an inkscape verb.
participants (2)
-
Arshdeep Singh
-
Jon Cruz