Changeset 3664 for trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/src/openmoko-panel-gsm.c
- Timestamp:
- 12/17/07 18:44:30 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/src/openmoko-panel-gsm.c
r3535 r3664 23 23 #include <gtk/gtkbox.h> 24 24 #include <gtk/gtk.h> 25 26 #include <string.h> 25 27 #include <time.h> 26 28 … … 38 40 char operator_name[255]; 39 41 GtkMenuItem* information; 42 gboolean cipher; 40 43 } GsmApplet; 41 44 … … 123 126 } 124 127 128 static void gsm_applet_update_cipher_status(MokoGsmdConnection* self, int status) 129 { 130 g_debug( "gsm_applet_update_cipher_status: status = %d", status ); 131 gsm_applet_show_status( 0, theApplet ); 132 } 133 125 134 static void gsm_applet_network_current_operator_cb(MokoGsmdConnection *self, const gchar* name) 126 135 { … … 181 190 case 1: 182 191 summary = g_strdup_printf( "Connected to '%s'", applet->operator_name ); 183 details = g_strdup_printf( "Type: Home Network\nCell ID: %04x : %04x\nSignal: %i dbM ", applet->lac, applet->cell, -113 + applet->strength*2);192 details = g_strdup_printf( "Type: Home Network\nCell ID: %04x : %04x\nSignal: %i dbM\nCipher Status: %s", applet->lac, applet->cell, -113 + applet->strength*2, applet->cipher ? "Encrypted" : "No Encryption" ); 184 193 break; 185 194 … … 232 241 { 233 242 GsmApplet* applet = g_slice_new0(GsmApplet); 243 applet->cipher = TRUE; // default GSM is ciphered 234 244 theApplet = applet; // nasty global variable 235 245 strcpy( applet->operator_name, "<unknown>" ); … … 251 261 g_signal_connect( G_OBJECT(applet->gsm), "pin-requested", G_CALLBACK(gsm_applet_sim_pin_requested), applet ); 252 262 #endif 263 g_signal_connect( G_OBJECT(applet->gsm), "cipher-status-changed", G_CALLBACK(gsm_applet_update_cipher_status), applet ); 253 264 254 265 // tap-with-hold menu (NOTE: temporary: left button atm.)
Note: See TracChangeset
for help on using the changeset viewer.
