[gnome-builder] spellchecker: add a close button to the panel widget



commit cb2edeb1451d3f46cfe60adecd540255c5c47e86
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Wed Jul 26 11:52:38 2017 +0200

    spellchecker: add a close button to the panel widget

 plugins/spellcheck/gbp-spell-widget.ui |   17 +++++++++++++++++
 plugins/spellcheck/themes/shared.css   |    6 ++++++
 2 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/plugins/spellcheck/gbp-spell-widget.ui b/plugins/spellcheck/gbp-spell-widget.ui
index 6039244..c16ef64 100644
--- a/plugins/spellcheck/gbp-spell-widget.ui
+++ b/plugins/spellcheck/gbp-spell-widget.ui
@@ -50,6 +50,23 @@
                 </style>
               </object>
             </child>
+            <child>
+              <object class="GtkButton">
+                <property name="action-name">dockbin.right-visible</property>
+                <property name="visible">true</property>
+                <style>
+                  <class name="control"/>
+                  <class name="flat"/>
+                </style>
+                <child>
+                  <object class="GtkImage">
+                    <property name="icon-name">window-close-symbolic</property>
+                    <property name="pixel-size">12</property>
+                    <property name="visible">true</property>
+                  </object>
+                </child>
+              </object>
+            </child>
           </object>
           <packing>
             <property name="left_attach">1</property>
diff --git a/plugins/spellcheck/themes/shared.css b/plugins/spellcheck/themes/shared.css
index fcb41cf..6a5bf4a 100644
--- a/plugins/spellcheck/themes/shared.css
+++ b/plugins/spellcheck/themes/shared.css
@@ -21,3 +21,9 @@
   border-radius: 3px;
   padding: 3px;
 }
+.gb-spellchecker button.control.flat {
+  padding: 0;
+  margin: 0;
+  min-width: 16px;
+  min-height: 16px;
+}


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