[gnome-boxes] topbar: Use text-button style class on New button



commit d38b8abdc7ca30f876ac9a11e3a7316d7199478c
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Thu Aug 29 23:33:17 2013 +0800

    topbar: Use text-button style class on New button
    
    This style class should be used instead of setting a custom size.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706818

 src/topbar.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/topbar.vala b/src/topbar.vala
index 7155c85..06e0e2b 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -57,7 +57,7 @@ private class Boxes.Topbar: Boxes.UI {
         new_btn.use_underline = true;
         // workaround for libgd bug #698289
         new_btn.label = _("_New");
-        new_btn.set_size_request (70, -1);
+        new_btn.get_style_context ().add_class ("text-button");
         new_btn.clicked.connect ((button) => { App.app.ui_state = UIState.WIZARD; });
 
         var back_icon = (toolbar.get_direction () == Gtk.TextDirection.RTL)? "go-previous-rtl-symbolic" :


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