[glade] Add new menu entry: User Manuel
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Add new menu entry: User Manuel
- Date: Thu, 21 Apr 2022 13:41:54 +0000 (UTC)
commit 31909a3c8ce7d226d2f828e53903436b0e246290
Author: Sabri Ünal <libreajans gmail com>
Date: Wed May 20 17:47:22 2020 +0300
Add new menu entry: User Manuel
src/glade-window.c | 10 ++++++++++
src/glade.glade | 16 +++++++++++++++-
2 files changed, 25 insertions(+), 1 deletion(-)
---
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
@@ -1433,6 +1434,14 @@ on_reference_action_activate (GSimpleAction *action,
glade_util_url_show (URL_DEVELOPER_MANUAL);
}
+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,
@@ -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
@@ -189,6 +189,20 @@ All he ever wanted was make you think!
<property name="position">6</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.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>
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]