[gnome-sound-recorder] preferences.js, mainWindow.js: fix the preferences dialog styling



commit 39423e56c753a778115f488819f310a7d36f9a6b
Author: Meg Ford <meg387 gmail com>
Date:   Sat Feb 22 14:43:09 2014 -0600

    preferences.js, mainWindow.js: fix the preferences dialog styling

 src/mainWindow.js  |    9 ++-------
 src/preferences.js |    2 +-
 2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 2f450fb..9919228 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -101,11 +101,7 @@ const MainWindow = new Lang.Class({
         this.set_titlebar(header);
         header.get_style_context().add_class('titlebar');
 
-        recordButton = new RecordButton({ label: _("Record"),
-                                          margin_bottom: 4,
-                                          margin_top: 6,
-                                          margin_left: 6,
-                                          margin_right: 6 });
+        recordButton = new RecordButton({ label: _("Record") });
         recordButton.get_style_context().add_class('destructive-action');
         header.pack_start(recordButton);
 
@@ -761,7 +757,7 @@ const EncoderComboBox = new Lang.Class({
         
         for (let i = 0; i < combo.length; i++)
             this.append_text(combo[i]);
-            
+        this.set_property('valign', Gtk.Align.CENTER);  
         this.set_sensitive(true);
         this.set_active(activeProfile);
         this.connect("changed", Lang.bind(this, this._onComboBoxTextChanged));
@@ -779,7 +775,6 @@ const LoadMoreButton = new Lang.Class({
     _init: function() {
         this.parent();
         this._block = false;
-
         this.label = _("Load More");                                       
         this.get_style_context().add_class('documents-load-more');
     },
diff --git a/src/preferences.js b/src/preferences.js
index 625b713..030e9a7 100644
--- a/src/preferences.js
+++ b/src/preferences.js
@@ -77,7 +77,7 @@ const Preferences = new Lang.Class({
         formatLabel.get_style_context ().add_class('dim-label');
         grid.attach(formatLabel, 0, 0, 2, 1);
         
-        comboBoxText = new MainWindow.EncoderComboBox({ halign: Gtk.Align.END });
+        comboBoxText = new MainWindow.EncoderComboBox();
         grid.attach(comboBoxText, 2, 0, 2, 1);
         
         let volumeLabel = new Gtk.Label({ label: _("Volume"),


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