widget-factory: Add an Inspector menu item
Just because we can.
This commit is contained in:
@ -246,6 +246,14 @@ activate_quit (GSimpleAction *action,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
activate_inspector (GSimpleAction *action,
|
||||||
|
GVariant *parameter,
|
||||||
|
gpointer user_data)
|
||||||
|
{
|
||||||
|
gtk_window_set_interactive_debugging (TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spin_value_changed (GtkAdjustment *adjustment, GtkWidget *label)
|
spin_value_changed (GtkAdjustment *adjustment, GtkWidget *label)
|
||||||
{
|
{
|
||||||
@ -1968,6 +1976,7 @@ main (int argc, char *argv[])
|
|||||||
static GActionEntry app_entries[] = {
|
static GActionEntry app_entries[] = {
|
||||||
{ "about", activate_about, NULL, NULL, NULL },
|
{ "about", activate_about, NULL, NULL, NULL },
|
||||||
{ "quit", activate_quit, NULL, NULL, NULL },
|
{ "quit", activate_quit, NULL, NULL, NULL },
|
||||||
|
{ "inspector", activate_inspector, NULL, NULL, NULL },
|
||||||
{ "main", NULL, "s", "'steak'", NULL },
|
{ "main", NULL, "s", "'steak'", NULL },
|
||||||
{ "wine", NULL, NULL, "false", NULL },
|
{ "wine", NULL, NULL, "false", NULL },
|
||||||
{ "beer", NULL, NULL, "false", NULL },
|
{ "beer", NULL, NULL, "false", NULL },
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
|
<item>
|
||||||
|
<attribute name="label" translatable="yes">_Inspector</attribute>
|
||||||
|
<attribute name="action">app.inspector</attribute>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
|
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
|
||||||
<attribute name="action">win.show-help-overlay</attribute>
|
<attribute name="action">win.show-help-overlay</attribute>
|
||||||
|
Reference in New Issue
Block a user