pidgin/pidgin

Parents f35eb5adb2e0
Children 8ccd6fdc7ceb
Add a donate link under the help menu and move the debug window item to the tools menu

Testing Done:
Ran and verified the menu items work.

Reviewed at https://reviews.imfreedom.org/r/2080/
--- a/pidgin/pidginapplication.c Tue Nov 22 22:06:24 2022 -0600
+++ b/pidgin/pidginapplication.c Wed Nov 23 01:29:41 2022 -0600
@@ -357,6 +357,14 @@
}
static void
+pidgin_application_donate(G_GNUC_UNUSED GSimpleAction *simple,
+ G_GNUC_UNUSED GVariant *parameter,
+ G_GNUC_UNUSED gpointer data)
+{
+ purple_notify_uri(NULL, "https://www.imfreedom.org/donate/");
+}
+
+static void
pidgin_application_edit_account(GSimpleAction *simple, GVariant *parameter,
gpointer data)
{
@@ -544,6 +552,9 @@
.activate = pidgin_application_disable_account,
.parameter_type = "s",
}, {
+ .name = "donate",
+ .activate = pidgin_application_donate,
+ }, {
.name = "edit-account",
.activate = pidgin_application_edit_account,
.parameter_type = "s",
--- a/pidgin/resources/gtk/menus.ui Tue Nov 22 22:06:24 2022 -0600
+++ b/pidgin/resources/gtk/menus.ui Wed Nov 23 01:29:41 2022 -0600
@@ -208,6 +208,13 @@
<attribute name="action">app.room-list</attribute>
</item>
</section>
+
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Debug Window</attribute>
+ <attribute name="action">app.debug</attribute>
+ </item>
+ </section>
</submenu>
<submenu>
<attribute name="label" translatable="yes">_Plugins</attribute>
@@ -230,8 +237,8 @@
<attribute name="action">app.online-help</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">_Debug Window</attribute>
- <attribute name="action">app.debug</attribute>
+ <attribute name="label" translatable="yes">_Donate</attribute>
+ <attribute name="action">app.donate</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About</attribute>