diff options
author | Sabri Ünal <libreajans@gmail.com> | 2020-05-20 17:47:22 +0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2022-04-21 10:41:16 -0300 |
commit | 31909a3c8ce7d226d2f828e53903436b0e246290 (patch) | |
tree | d3d6bca590532310b03317a6e519c060df27493c /src | |
parent | fbebfdbf0dde1ed98c9e28be511693b8c374929d (diff) | |
download | glade-31909a3c8ce7d226d2f828e53903436b0e246290.tar.gz |
Add new menu entry: User Manuel
Diffstat (limited to 'src')
-rw-r--r-- | src/glade-window.c | 10 | ||||
-rw-r--r-- | src/glade.glade | 16 |
2 files changed, 25 insertions, 1 deletions
diff --git a/src/glade-window.c b/src/glade-window.c index 7cb5a1b2..08d34eef 100644 --- a/src/glade-window.c +++ b/src/glade-window.c @@ -51,6 +51,7 @@ #define READONLY_INDICATOR (_("[Read Only]")) #define URL_DEVELOPER_MANUAL "http://library.gnome.org/devel/gladeui/" +#define URL_USER_MANUAL "https://help.gnome.org/users/glade/stable/" #define CONFIG_GROUP_WINDOWS "Glade Windows" #define GLADE_WINDOW_DEFAULT_WIDTH 720 @@ -1434,6 +1435,14 @@ on_reference_action_activate (GSimpleAction *action, } static void +on_user_manuel_action_activate (GSimpleAction *action, + GVariant *parameter, + gpointer data) +{ + glade_util_url_show (URL_USER_MANUAL); +} + +static void on_preferences_action_activate (GSimpleAction *action, GVariant *parameter, gpointer data) @@ -2321,6 +2330,7 @@ on_application_notify (GObject *gobject, GParamSpec *pspec) { "registration", on_registration_action_activate, NULL, NULL, NULL }, { "intro", on_intro_action_activate, NULL, NULL, NULL }, { "reference", on_reference_action_activate, NULL, NULL, NULL }, + { "help", on_user_manuel_action_activate, NULL, NULL, NULL }, { "preferences", on_preferences_action_activate, NULL, NULL, NULL }, { "about", on_about_action_activate, NULL, NULL, NULL }, { "quit", on_quit_action_activate, NULL, NULL, NULL }, diff --git a/src/glade.glade b/src/glade.glade index 9a5fcb3f..f43c9b00 100644 --- a/src/glade.glade +++ b/src/glade.glade @@ -192,6 +192,20 @@ All he ever wanted was make you think! <child> <object class="GtkModelButton"> <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="action_name">app.help</property> + <property name="text" translatable="yes">User Manual</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">7</property> + </packing> + </child> + <child> + <object class="GtkModelButton"> + <property name="visible">True</property> <property name="can-focus">True</property> <property name="receives-default">True</property> <property name="action-name">app.about</property> @@ -200,7 +214,7 @@ All he ever wanted was make you think! <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">7</property> + <property name="position">8</property> </packing> </child> </object> |