[gnome-sound-recorder] Make the buttons as center vertically and add the text-button style class



commit dcace40ae2f7ecac27c9b8cd1a71c9011c6650e3
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Fri Jan 24 02:52:47 2014 +0200

    Make the buttons as center vertically and add the text-button style class
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722875
    
    Signed-off-by: Meg Ford <meg387 gmail com>

 src/mainWindow.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 5447590..53674f6 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -286,7 +286,9 @@ const MainView = new Lang.Class({
                                           margin_top: 6,
                                           margin_left: 6,
                                           margin_right: 6,
+                                          valign: Gtk.Align.CENTER,
                                           hexpand: true });
+        stopRecord.get_style_context().add_class('text-button');
         stopRecord.connect("clicked", Lang.bind(this, this.onRecordStopClicked));
         this.toolbarStart.pack_start(stopRecord, true, true, 0);
         this.recordGrid.attach(this.toolbarStart, 5, 1, 1, 2);
@@ -751,7 +753,9 @@ const RecordButton = new Lang.Class({
         this.parent();
         this.image = Gtk.Image.new_from_icon_name('media-record-symbolic', Gtk.IconSize.BUTTON);
         this.set_always_show_image(true);
+        this.set_valign(Gtk.Align.CENTER);
         this.set_label(_("Record"));
+        this.get_style_context().add_class('text-button');
         this.connect("clicked", Lang.bind(this, this._onRecord));
     },
     


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