[Pkg-cli-apps-commits] [gnome-do] 01/02: Disable About button when url attribute is missing

Chow Loong Jin hyperair at debian.org
Tue Nov 18 03:43:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

hyperair pushed a commit to annotated tag debian/0.95.2-2
in repository gnome-do.

commit 924d0386fce54b8661bd25e58e687a83d7cfe768
Author: Chow Loong Jin <hyperair at debian.org>
Date:   Tue Nov 18 11:05:30 2014 +0800

    Disable About button when url attribute is missing
---
 ...bout-button-when-url-attribute-is-missing.patch | 23 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/Disable-About-button-when-url-attribute-is-missing.patch b/debian/patches/Disable-About-button-when-url-attribute-is-missing.patch
new file mode 100644
index 0000000..a27dae6
--- /dev/null
+++ b/debian/patches/Disable-About-button-when-url-attribute-is-missing.patch
@@ -0,0 +1,23 @@
+From: Chow Loong Jin <hyperair at debian.org>
+Date: Tue, 18 Nov 2014 11:04:46 +0800
+Subject: Disable About button when url attribute is missing
+
+---
+ Do/src/Do.UI/ManagePluginsPreferencesWidget.cs | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/Do/src/Do.UI/ManagePluginsPreferencesWidget.cs b/Do/src/Do.UI/ManagePluginsPreferencesWidget.cs
+index 9dc197c..200f6e9 100644
+--- a/Do/src/Do.UI/ManagePluginsPreferencesWidget.cs
++++ b/Do/src/Do.UI/ManagePluginsPreferencesWidget.cs
+@@ -161,7 +161,9 @@ namespace Do.UI
+ 				.SelectMany (id => PluginManager.ConfigurablesForAddin (id))
+ 				.Any ();
+ 
+-			btn_about.Sensitive = nview.GetSelectedAddins ().Any ();
++			btn_about.Sensitive = nview.GetSelectedAddins ()
++				.Where (id => !string.IsNullOrEmpty (AddinManager.Registry.GetAddin (id).Description.Url))
++				.Any ();
+ 		}
+ 
+ 		private void OnPluginToggled (string id, bool enabled)
diff --git a/debian/patches/series b/debian/patches/series
index cf5dfd5..d04ea3b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 02_use_cli_for_wrapper.diff
 03_dbus_sharp_2.diff
 04_simplify_buggy_launcher_script.diff
+Disable-About-button-when-url-attribute-is-missing.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cli-apps/packages/gnome-do.git



More information about the Pkg-cli-apps-commits mailing list