network-manager-applet r930 - in trunk: . src/connection-editor



Author: dcbw
Date: Mon Oct  6 22:44:29 2008
New Revision: 930
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=930&view=rev

Log:
2008-10-06  Dan Williams  <dcbw redhat com>

	* src/connection-editor/page-mobile.c
	  src/connection-editor/ce-page-mobile.glade
		- Hide Network Type and Band items because they won't be supported until
			ModemManager support lands



Modified:
   trunk/ChangeLog
   trunk/src/connection-editor/ce-page-mobile.glade
   trunk/src/connection-editor/page-mobile.c

Modified: trunk/src/connection-editor/ce-page-mobile.glade
==============================================================================
--- trunk/src/connection-editor/ce-page-mobile.glade	(original)
+++ trunk/src/connection-editor/ce-page-mobile.glade	Mon Oct  6 22:44:29 2008
@@ -388,7 +388,7 @@
 		  </child>
 
 		  <child>
-		    <widget class="GtkLabel" id="label31">
+		    <widget class="GtkLabel" id="type_label">
 		      <property name="visible">True</property>
 		      <property name="label" translatable="yes">Type:</property>
 		      <property name="use_underline">False</property>
@@ -437,7 +437,7 @@
 		  </child>
 
 		  <child>
-		    <widget class="GtkLabel" id="label32">
+		    <widget class="GtkLabel" id="band_label">
 		      <property name="visible">True</property>
 		      <property name="label" translatable="yes">Band:</property>
 		      <property name="use_underline">False</property>

Modified: trunk/src/connection-editor/page-mobile.c
==============================================================================
--- trunk/src/connection-editor/page-mobile.c	(original)
+++ trunk/src/connection-editor/page-mobile.c	Mon Oct  6 22:44:29 2008
@@ -107,6 +107,7 @@
 	int type_idx;
 	GHashTable *secrets;
 	GValue *value;
+	GtkWidget *widget;
 
 	if (setting->number)
 		gtk_entry_set_text (priv->number, setting->number);
@@ -140,7 +141,16 @@
 	}
 	gtk_combo_box_set_active (priv->network_type, type_idx);
 
-	/* FIXME:  band */
+	/* Hide network type widgets; not supported yet */
+	gtk_widget_hide (GTK_WIDGET (priv->network_type));
+	widget = glade_xml_get_widget (CE_PAGE (self)->xml, "type_label");
+	gtk_widget_hide (widget);
+
+	/* Hide Band widgets; not supported yet */
+	widget = glade_xml_get_widget (CE_PAGE (self)->xml, "mobile_band");
+	gtk_widget_hide (widget);
+	widget = glade_xml_get_widget (CE_PAGE (self)->xml, "band_label");
+	gtk_widget_hide (widget);
 
 	secrets = get_secrets (connection, nm_setting_get_name (priv->setting));
 



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