[gnome-control-center] Revert "Brightness & Lock: add Show Notifications setting"



commit 4d4aab542af24f47393526b40926f8ba6ad6630a
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jul 11 11:06:34 2012 +0100

    Revert "Brightness & Lock: add Show Notifications setting"
    
    This reverts commit 11ad5954c62d3ac083d0a2cde3fd7d3db07c059e.
    
    Committed in error

 panels/screen/cc-screen-panel.c |   12 -----------
 panels/screen/screen.ui         |   42 ++------------------------------------
 2 files changed, 3 insertions(+), 51 deletions(-)
---
diff --git a/panels/screen/cc-screen-panel.c b/panels/screen/cc-screen-panel.c
index b2f0647..ce8d360 100644
--- a/panels/screen/cc-screen-panel.c
+++ b/panels/screen/cc-screen-panel.c
@@ -539,18 +539,6 @@ cc_screen_panel_init (CcScreenPanel *self)
                    widget, "sensitive",
                    G_SETTINGS_BIND_GET);
 
-  widget = WID ("show_notifications_switch");
-  g_settings_bind (self->priv->lock_settings,
-                   "show-notifications",
-                   widget, "active",
-                   G_SETTINGS_BIND_DEFAULT);
-
-  widget = WID ("show_notifications_box");
-  g_settings_bind (self->priv->lock_settings,
-                   "lock-enabled",
-                   widget, "sensitive",
-                   G_SETTINGS_BIND_GET);
-
   update_lock_screen_sensitivity (self);
 
   widget = WID ("screen_vbox");
diff --git a/panels/screen/screen.ui b/panels/screen/screen.ui
index dcb5539..86c645e 100644
--- a/panels/screen/screen.ui
+++ b/panels/screen/screen.ui
@@ -1,6 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0"?>
 <interface>
-  <!-- interface-requires gtk+ 3.0 -->
+  <requires lib="gtk+" version="2.16"/>
+  <!-- interface-naming-policy project-wide -->
   <object class="GtkListStore" id="lock_liststore">
     <columns>
       <!-- column-name name -->
@@ -338,43 +339,6 @@
                             <property name="position">2</property>
                           </packing>
                         </child>
-                        <child>
-                          <object class="GtkBox" id="show_notifications_box">
-                            <property name="visible">True</property>
-                            <property name="can_focus">False</property>
-                            <child>
-                              <object class="GtkLabel" id="show_notifications_label">
-                                <property name="visible">True</property>
-                                <property name="can_focus">False</property>
-                                <property name="xalign">0</property>
-                                <property name="label" translatable="yes">Notifications when locked</property>
-                              </object>
-                              <packing>
-                                <property name="expand">True</property>
-                                <property name="fill">True</property>
-                                <property name="position">0</property>
-                              </packing>
-                            </child>
-                            <child>
-                              <object class="GtkSwitch" id="show_notifications_switch">
-                                <property name="use_action_appearance">False</property>
-                                <property name="visible">True</property>
-                                <property name="can_focus">True</property>
-                                <property name="valign">center</property>
-                              </object>
-                              <packing>
-                                <property name="expand">False</property>
-                                <property name="fill">True</property>
-                                <property name="position">1</property>
-                              </packing>
-                            </child>
-                          </object>
-                          <packing>
-                            <property name="expand">True</property>
-                            <property name="fill">True</property>
-                            <property name="position">3</property>
-                          </packing>
-                        </child>
                       </object>
                     </child>
                   </object>



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