[geary/pantheon_mail: 8/32] remove donate menuitem
- From: Javier Jardón Cabezas <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/pantheon_mail: 8/32] remove donate menuitem
- Date: Wed, 25 Nov 2015 19:51:25 +0000 (UTC)
commit 247c263df0a63941658430e3f65b5815a7e641c9
Author: Daniel Foré <daniel elementary io>
Date: Wed Nov 18 15:34:21 2015 -0800
remove donate menuitem
src/client/application/geary-controller.vala | 18 ++----------------
ui/app_menu.interface | 6 ------
2 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index 27724bc..d2919cd 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -21,7 +21,6 @@ public class GearyController : Geary.BaseObject {
// NOTE: Some actions with accelerators need to also be added to ui/accelerators.ui
public const string ACTION_HELP = "GearyHelp";
public const string ACTION_ABOUT = "GearyAbout";
- public const string ACTION_DONATE = "GearyDonate";
public const string ACTION_QUIT = "GearyQuit";
public const string ACTION_NEW_MESSAGE = "GearyNewMessage";
public const string ACTION_REPLY_TO_MESSAGE = "GearyReplyToMessage";
@@ -385,11 +384,7 @@ public class GearyController : Geary.BaseObject {
Gtk.ActionEntry about = { ACTION_ABOUT, Stock._ABOUT, TRANSLATABLE, null, null, on_about };
about.label = _("_About");
entries += about;
-
- Gtk.ActionEntry donate = { ACTION_DONATE, null, TRANSLATABLE, null, null, on_donate };
- donate.label = _("_Donate");
- entries += donate;
-
+
Gtk.ActionEntry quit = { ACTION_QUIT, Stock._QUIT, TRANSLATABLE, "<Ctrl>Q", null, on_quit };
quit.label = _("_Quit");
entries += quit;
@@ -564,7 +559,6 @@ public class GearyController : Geary.BaseObject {
const string[] exported_actions = {
ACTION_ACCOUNTS,
ACTION_PREFERENCES,
- ACTION_DONATE,
ACTION_HELP,
ACTION_ABOUT,
ACTION_QUIT,
@@ -1724,15 +1718,7 @@ public class GearyController : Geary.BaseObject {
"translator-credits", _("translator-credits")
);
}
-
- private void on_donate() {
- try {
- Gtk.show_uri(null, GearyApplication.DONATE, Gdk.CURRENT_TIME);
- } catch (Error error) {
- debug("Error opening donate page: %s", error.message);
- }
- }
-
+
private void on_shift_key(bool pressed) {
if (main_window != null && main_window.main_toolbar != null
&& current_account != null && current_folder != null) {
diff --git a/ui/app_menu.interface b/ui/app_menu.interface
index 331cef4..77329a3 100644
--- a/ui/app_menu.interface
+++ b/ui/app_menu.interface
@@ -14,12 +14,6 @@
</section>
<section>
<item>
- <attribute name='label' translatable='yes'>_Donate</attribute>
- <attribute name='action'>app.GearyDonate</attribute>
- </item>
- </section>
- <section>
- <item>
<attribute name='label' translatable='yes'>_Help</attribute>
<attribute name='action'>app.GearyHelp</attribute>
<attribute name='accel'>F1</attribute>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]