[gnome-boxes] selectionbar: Add button style classes



commit e7199f3be44f94a547032712273afa7b77ea1488
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Fri Aug 30 00:11:13 2013 +0800

    selectionbar: Add button style classes
    
    Add "image-button" and "text-button" style classes to the buttons to
    fix their padding.
    
    This is to follow the new design for Content Selection Pattern at
    https://wiki.gnome.org/GnomeOS/Design/Whiteboards/SelectionPattern
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706818

 src/selectionbar.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/selectionbar.vala b/src/selectionbar.vala
index a2c9a0e..61e51ba 100644
--- a/src/selectionbar.vala
+++ b/src/selectionbar.vala
@@ -18,6 +18,7 @@ private class Boxes.Selectionbar: Gtk.Revealer {
         favorite_btn = new Gtk.ToggleButton ();
         headerbar.pack_start (favorite_btn);
         favorite_btn.image = new Gtk.Image.from_icon_name ("emblem-favorite-symbolic", Gtk.IconSize.MENU);
+        favorite_btn.get_style_context ().add_class ("image-button");
         favorite_btn.clicked.connect (() => {
            foreach (var item in App.app.selected_items) {
                var machine = item as Machine;
@@ -31,6 +32,7 @@ private class Boxes.Selectionbar: Gtk.Revealer {
 
         pause_btn = new Gtk.Button.with_mnemonic (_("P_ause"));
         headerbar.pack_start (pause_btn);
+        pause_btn.get_style_context ().add_class ("text-button");
         pause_btn.clicked.connect (() => {
            foreach (var item in App.app.selected_items) {
                var machine = item as Machine;
@@ -51,12 +53,14 @@ private class Boxes.Selectionbar: Gtk.Revealer {
 
         remove_btn = new Gtk.Button.with_mnemonic (_("_Delete"));
         headerbar.pack_start (remove_btn);
+        remove_btn.get_style_context ().add_class ("text-button");
         remove_btn.clicked.connect (() => {
             App.app.remove_selected_items ();
         });
 
         properties_btn = new Gtk.Button.with_mnemonic (_("_Properties"));
         headerbar.pack_end (properties_btn);
+        properties_btn.get_style_context ().add_class ("text-button");
         properties_btn.clicked.connect (() => {
             App.app.show_properties ();
         });


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