[totem] main: Remove connection-speed preference



commit 1e94f05059b18444d3a342522341c8ace97795c2
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 27 13:04:40 2012 +0100

    main: Remove connection-speed preference
    
    The values came from Microsoft's MMS speed switch list, which
    means that it's now, 10 years on, completely outdated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=556227

 data/preferences.ui     |  158 -----------------------------------------------
 src/totem-preferences.c |    7 --
 2 files changed, 0 insertions(+), 165 deletions(-)
---
diff --git a/data/preferences.ui b/data/preferences.ui
index 8293348..0d298f0 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -4,50 +4,6 @@
 <interface>
 <requires lib="gtk+" version="3.0"/>
 
-<object class="GtkListStore" id="tpw_speed_liststore">
-  <columns>
-    <column type="gchararray"/>
-  </columns>
-  <data>
-    <row>
-      <col id="0" translatable="yes">14.4 Kbps Modem</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">19.2 Kbps Modem</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">28.8 Kbps Modem</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">33.6 Kbps Modem</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">34.4 Kbps Modem</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">56 Kbps Modem/ISDN</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">112 Kbps Dual ISDN/DSL</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">256 Kbps DSL/Cable</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">384 Kbps DSL/Cable</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">512 Kbps DSL/Cable</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">1.5 Mbps T1/Intranet/LAN</col>
-    </row>
-    <row>
-      <col id="0" translatable="yes">Intranet/LAN</col>
-    </row>
-  </data>
-</object>
-
 <object class="GtkListStore" id="tpw_visuals_size_liststore">
   <columns>
     <column type="gchararray"/>
@@ -286,121 +242,7 @@
 		  <property name="expand">False</property>
 		  <property name="fill">True</property>
 		</packing>
-	      </child><child>
-		<object class="GtkVBox" id="vbox3">
-		  <property name="visible">True</property>
-		  <property name="homogeneous">False</property>
-		  <property name="spacing">6</property>
-                  <property name="orientation">vertical</property>
-
-		  <child>
-		    <object class="GtkLabel" id="tpw_network_label">
-		      <property name="visible">True</property>
-		      <property name="label" translatable="yes">Networking</property>
-		      <property name="use_underline">False</property>
-		      <property name="use_markup">True</property>
-		      <property name="justify">GTK_JUSTIFY_LEFT</property>
-		      <property name="wrap">False</property>
-		      <property name="selectable">False</property>
-		      <property name="xalign">0</property>
-		      <property name="yalign">0.5</property>
-		      <property name="xpad">0</property>
-		      <property name="ypad">0</property>
-		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
-		      <property name="width_chars">-1</property>
-		      <property name="single_line_mode">False</property>
-		      <property name="angle">0</property>
-		      <attributes>
-		        <attribute name="weight" value="bold"/>
-                      </attributes>
-		    </object>
-		    <packing>
-		      <property name="padding">0</property>
-		      <property name="expand">False</property>
-		      <property name="fill">False</property>
-		    </packing>
-		  </child>
-
-		  <child>
-		    <object class="GtkAlignment" id="alignment1">
-		      <property name="visible">True</property>
-		      <property name="xalign">0.5</property>
-		      <property name="yalign">0.5</property>
-		      <property name="xscale">1</property>
-		      <property name="yscale">1</property>
-		      <property name="top_padding">0</property>
-		      <property name="bottom_padding">0</property>
-		      <property name="left_padding">12</property>
-		      <property name="right_padding">0</property>
-
-		      <child>
-			<object class="GtkHBox" id="hbox6">
-			  <property name="visible">True</property>
-			  <property name="homogeneous">False</property>
-			  <property name="spacing">12</property>
-
-			  <child>
-			    <object class="GtkLabel" id="tpw_speed_label">
-			      <property name="visible">True</property>
-			      <property name="label" translatable="yes">Connection _speed:</property>
-			      <property name="use_underline">True</property>
-			      <property name="use_markup">False</property>
-			      <property name="justify">GTK_JUSTIFY_LEFT</property>
-			      <property name="wrap">False</property>
-			      <property name="selectable">False</property>
-			      <property name="xalign">0</property>
-			      <property name="yalign">0.5</property>
-			      <property name="xpad">0</property>
-			      <property name="ypad">0</property>
-			      <property name="mnemonic_widget">tpw_speed_combobox</property>
-			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
-			      <property name="width_chars">-1</property>
-			      <property name="single_line_mode">False</property>
-			      <property name="angle">0</property>
-			    </object>
-			    <packing>
-			      <property name="padding">0</property>
-			      <property name="expand">False</property>
-			      <property name="fill">False</property>
-			    </packing>
-			  </child>
-
-			  <child>
-			    <object class="GtkComboBox" id="tpw_speed_combobox">
-			      <property name="visible">True</property>
-			      <property name="model">tpw_speed_liststore</property>
-			      <property name="add_tearoffs">False</property>
-			      <property name="focus_on_click">True</property>
-			      <child>
-			        <object class="GtkCellRendererText" id="tpw_speed_cell"/>
-			        <attributes>
-			          <attribute name="text">0</attribute>
-			        </attributes>
-			      </child>
-			    </object>
-			    <packing>
-			      <property name="padding">0</property>
-			      <property name="expand">False</property>
-			      <property name="fill">True</property>
-			    </packing>
-			  </child>
-			</object>
-		      </child>
-		    </object>
-		    <packing>
-		      <property name="padding">0</property>
-		      <property name="expand">False</property>
-		      <property name="fill">True</property>
-		    </packing>
-		  </child>
-		</object>
-		<packing>
-		  <property name="padding">0</property>
-		  <property name="expand">False</property>
-		  <property name="fill">True</property>
-		</packing>
 	      </child>
-
 	      <child>
 		<object class="GtkVBox" id="vbox6">
 		  <property name="visible">True</property>
diff --git a/src/totem-preferences.c b/src/totem-preferences.c
index 35d43ec..7c26abe 100644
--- a/src/totem-preferences.c
+++ b/src/totem-preferences.c
@@ -340,13 +340,6 @@ totem_setup_preferences (Totem *totem)
 	g_settings_bind (totem->settings, "disable-deinterlacing", bvw, "deinterlacing",
 	                 G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_NO_SENSITIVITY | G_SETTINGS_BIND_INVERT_BOOLEAN);
 
-	/* Connection Speed */
-	item = POBJ ("tpw_speed_combobox");
-	g_settings_bind (totem->settings, "connection-speed", bvw, "connection-speed", G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_NO_SENSITIVITY);
-	g_settings_bind_with_mapping (totem->settings, "connection-speed", item, "active", G_SETTINGS_BIND_DEFAULT,
-	                              (GSettingsBindGetMapping) int_enum_get_mapping, (GSettingsBindSetMapping) int_enum_set_mapping,
-	                              g_type_class_ref (BVW_TYPE_CONNECTION_SPEED), (GDestroyNotify) g_type_class_unref);
-
 	/* Enable visuals */
 	item = POBJ ("tpw_visuals_checkbutton");
 	show_visuals = g_settings_get_boolean (totem->settings, "show-visualizations");



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