[geary] Remove Formatting btn insensitive w/ no selection: Closes bug #714256



commit bed698cc085f471524ae273be8381459406cec98
Author: ritchiew <rawilson52 gmail com>
Date:   Thu Dec 5 12:48:58 2013 -0800

    Remove Formatting btn insensitive w/ no selection: Closes bug #714256

 THANKS                                   |    1 +
 src/client/composer/composer-window.vala |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/THANKS b/THANKS
index 4616b86..aeb22ce 100644
--- a/THANKS
+++ b/THANKS
@@ -26,6 +26,7 @@ Tom Most <twm freecog net>
 Andreas Obergrusberger <tradiaz yahoo de>
 Martin Olsson <martin minimum se>
 Robert Park <rbpark exolucere ca>
+ritchiew <rawilson52 gmail com>
 Mario Sanchez Prada <msanchez igalia com>
 Tiago Quelhas <tiagoq gmail com>
 Didier Roche <didrocks ubuntu com>
diff --git a/src/client/composer/composer-window.vala b/src/client/composer/composer-window.vala
index c00c829..e6a75ea 100644
--- a/src/client/composer/composer-window.vala
+++ b/src/client/composer/composer-window.vala
@@ -1576,6 +1576,8 @@ public class ComposerWindow : Gtk.Window {
         
         // Style toggle buttons.
         WebKit.DOM.DOMWindow window = editor.get_dom_document().get_default_view();
+        actions.get_action(ACTION_REMOVE_FORMAT).sensitive = !window.get_selection().is_collapsed;
+        
         WebKit.DOM.Element? active = window.get_selection().focus_node as WebKit.DOM.Element;
         if (active == null && window.get_selection().focus_node != null)
             active = window.get_selection().focus_node.get_parent_element();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]