Index: /trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/src/openmoko-panel-gsm.c
===================================================================
--- /trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/src/openmoko-panel-gsm.c	(revision 3663)
+++ /trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/src/openmoko-panel-gsm.c	(revision 3664)
@@ -23,4 +23,6 @@
 #include <gtk/gtkbox.h>
 #include <gtk/gtk.h>
+
+#include <string.h>
 #include <time.h>
 
@@ -38,4 +40,5 @@
     char operator_name[255];
     GtkMenuItem* information;
+    gboolean cipher;
 } GsmApplet;
 
@@ -123,4 +126,10 @@
 }
 
+static void gsm_applet_update_cipher_status(MokoGsmdConnection* self, int status)
+{
+    g_debug( "gsm_applet_update_cipher_status: status = %d", status );
+    gsm_applet_show_status( 0, theApplet );
+}
+
 static void gsm_applet_network_current_operator_cb(MokoGsmdConnection *self, const gchar* name)
 {
@@ -181,5 +190,5 @@
         case 1:
             summary = g_strdup_printf( "Connected to '%s'", applet->operator_name );
-            details = g_strdup_printf( "Type: Home Network\nCell ID: %04x : %04x\nSignal: %i dbM", applet->lac, applet->cell, -113 + applet->strength*2 );
+            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" );
         break;
 
@@ -232,4 +241,5 @@
 {
     GsmApplet* applet = g_slice_new0(GsmApplet);
+    applet->cipher = TRUE; // default GSM is ciphered
     theApplet = applet; // nasty global variable
     strcpy( applet->operator_name, "<unknown>" );
@@ -251,4 +261,5 @@
     g_signal_connect( G_OBJECT(applet->gsm), "pin-requested", G_CALLBACK(gsm_applet_sim_pin_requested), applet );
 #endif
+    g_signal_connect( G_OBJECT(applet->gsm), "cipher-status-changed", G_CALLBACK(gsm_applet_update_cipher_status), applet );
 
     // tap-with-hold menu (NOTE: temporary: left button atm.)
