[gnome-bluetooth] settings: Move style changes to GtkBuilder file



commit 146e228961c5f2f20ba0a5da9fdd731a89ac714d
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 11 19:19:32 2013 +0100

    settings: Move style changes to GtkBuilder file

 lib/bluetooth-pairing-dialog.c |    4 ----
 lib/settings.ui                |    6 ++++++
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index b64d40a..fcfa31e 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -270,10 +270,6 @@ bluetooth_pairing_dialog_init (BluetoothPairingDialog *self)
 
        context = gtk_widget_get_style_context (priv->done);
        gtk_style_context_add_class (context, "suggested-action");
-       context = gtk_widget_get_style_context (priv->entry_pin);
-       gtk_style_context_add_class (context, "pin-entry");
-       context = gtk_widget_get_style_context (priv->label_pin);
-       gtk_style_context_add_class (context, "pin-label");
 }
 
 static void
diff --git a/lib/settings.ui b/lib/settings.ui
index e207706..90dde30 100644
--- a/lib/settings.ui
+++ b/lib/settings.ui
@@ -39,6 +39,9 @@
                 <property name="input_purpose">digits</property>
                 <property name="input_hints">GTK_INPUT_HINT_NO_SPELLCHECK | GTK_INPUT_HINT_NONE</property>
                 <property name="activates-default">True</property>
+                <style>
+                  <class name="pin-entry"/>
+                </style>
               </object>
             </child>
           </object>
@@ -48,6 +51,9 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="label">123456</property>
+            <style>
+              <class name="pin-label"/>
+            </style>
           </object>
           <packing>
             <property name="position">1</property>


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