[gnome-control-center] power: Remove power and suspend buttons config



commit 6ed654694dae3aae729838ebb986883355b0595c
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Aug 27 12:53:54 2011 +0100

    power: Remove power and suspend buttons config
    
    As mentioned in the discussion in:
    https://bugzilla.gnome.org/show_bug.cgi?id=652183
    https://bugzilla.gnome.org/show_bug.cgi?id=657068
    
    And implemented in the future for the power panel:
    https://live.gnome.org/Design/SystemSettings/Power/

 panels/power/cc-power-panel.c |   20 --------
 panels/power/power.ui         |  103 -----------------------------------------
 2 files changed, 0 insertions(+), 123 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index e416161..f1ee7e0 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -682,26 +682,6 @@ cc_power_panel_init (CcPowerPanel *self)
                     G_CALLBACK (combo_enum_changed_cb),
                     self);
 
-  value = g_settings_get_enum (self->priv->gsd_settings, "button-power");
-  widget = GTK_WIDGET (gtk_builder_get_object (self->priv->builder,
-                                               "combobox_button_power"));
-  disable_unavailable_combo_items (self, GTK_COMBO_BOX (widget));
-  set_value_for_combo (GTK_COMBO_BOX (widget), value);
-  g_object_set_data (G_OBJECT(widget), "_gsettings_key", "button-power");
-  g_signal_connect (widget, "changed",
-                    G_CALLBACK (combo_enum_changed_cb),
-                    self);
-
-  value = g_settings_get_enum (self->priv->gsd_settings, "button-sleep");
-  widget = GTK_WIDGET (gtk_builder_get_object (self->priv->builder,
-                                               "combobox_button_sleep"));
-  disable_unavailable_combo_items (self, GTK_COMBO_BOX (widget));
-  set_value_for_combo (GTK_COMBO_BOX (widget), value);
-  g_object_set_data (G_OBJECT(widget), "_gsettings_key", "button-sleep");
-  g_signal_connect (widget, "changed",
-                    G_CALLBACK (combo_enum_changed_cb),
-                    self);
-
   widget = WID (self->priv->builder, "vbox_power");
   gtk_widget_reparent (widget, (GtkWidget *) self);
 }
diff --git a/panels/power/power.ui b/panels/power/power.ui
index d2d37ee..1370e9f 100644
--- a/panels/power/power.ui
+++ b/panels/power/power.ui
@@ -86,8 +86,6 @@
   <object class="GtkSizeGroup" id="sizegroup_combos">
     <widgets>
       <widget name="combobox_critical"/>
-      <widget name="combobox_button_power"/>
-      <widget name="combobox_button_sleep"/>
       <widget name="combobox_sleep"/>
       <widget name="combobox_sleep_battery"/>
       <widget name="combobox_sleep_ac"/>
@@ -343,105 +341,6 @@
           </packing>
         </child>
         <child>
-          <object class="GtkVBox" id="vbox_buttons">
-            <property name="visible">True</property>
-            <property name="spacing">6</property>
-            <child>
-              <object class="GtkHBox" id="hbox1">
-                <property name="visible">True</property>
-                <property name="spacing">6</property>
-                <child>
-                  <object class="GtkHBox" id="hbox7">
-                    <property name="visible">True</property>
-                    <child>
-                      <object class="GtkLabel" id="label4">
-                        <property name="visible">True</property>
-                        <property name="label" translatable="yes">When the p_ower button is pressed:</property>
-                        <property name="use_underline">True</property>
-                        <property name="mnemonic_widget">combobox_button_power</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">False</property>
-                        <property name="position">0</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">False</property>
-                    <property name="position">0</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkComboBox" id="combobox_button_power">
-                    <property name="visible">True</property>
-                    <property name="model">liststore_power</property>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">False</property>
-                    <property name="position">1</property>
-                  </packing>
-                </child>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
-                <property name="position">0</property>
-              </packing>
-            </child>
-            <child>
-              <object class="GtkHBox" id="hbox4">
-                <property name="visible">True</property>
-                <property name="spacing">6</property>
-                <child>
-                  <object class="GtkHBox" id="hbox8">
-                    <property name="visible">True</property>
-                    <child>
-                      <object class="GtkLabel" id="label3">
-                        <property name="visible">True</property>
-                        <property name="label" translatable="yes">When the _sleep button is pressed:</property>
-                        <property name="use_underline">True</property>
-                        <property name="mnemonic_widget">combobox_button_sleep</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">False</property>
-                        <property name="position">0</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">False</property>
-                    <property name="position">0</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkComboBox" id="combobox_button_sleep">
-                    <property name="visible">True</property>
-                    <property name="model">liststore_sleep</property>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">False</property>
-                    <property name="position">1</property>
-                  </packing>
-                </child>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="position">1</property>
-              </packing>
-            </child>
-          </object>
-          <packing>
-            <property name="expand">False</property>
-            <property name="position">2</property>
-          </packing>
-        </child>
-        <child>
           <object class="GtkHBox" id="hbox_status">
             <property name="visible">True</property>
             <child>
@@ -519,8 +418,6 @@
     <property name="ignore-hidden">True</property>
     <widgets>
       <widget name="hbox6"/>
-      <widget name="hbox7"/>
-      <widget name="hbox8"/>
       <widget name="hbox10"/>
       <widget name="hbox15"/>
       <widget name="hbox14"/>



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