Changeset 3256
- Timestamp:
- 10/23/07 12:34:59 (6 years ago)
- Location:
- trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
src/openmoko-panel-gsm.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/ChangeLog
r3185 r3256 1 2007-10-23 Michael Lauer <mickey@openmoko.org> 2 3 * src/openmoko-panel-gsm.c: (gsm_applet_network_registration_cb): 4 Update the icon as well, once we receive a connection event. 5 1 6 2007-10-16 Daniel Willmann <alphaone@openmoko.org> 2 7 -
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/src/openmoko-panel-gsm.c
r3185 r3256 33 33 MokoGsmdConnection* gsm; 34 34 } GsmApplet; 35 36 static GsmApplet* theApplet = NULL; 35 37 36 38 static void … … 73 75 moko_panel_applet_set_icon( applet->mokoapplet, image ); 74 76 75 g_free (image);77 g_free( image ); 76 78 } 77 79 … … 82 84 int cell) 83 85 { 84 NotifyNotification* nn;85 static MokoGsmdConnectionNetregType prev_type = MOKO_GSMD_CONNECTION_NETREG_NONE;86 NotifyNotification* nn; 87 static MokoGsmdConnectionNetregType prev_type = MOKO_GSMD_CONNECTION_NETREG_NONE; 86 88 87 if ((type == MOKO_GSMD_CONNECTION_NETREG_HOME) || (type == MOKO_GSMD_CONNECTION_NETREG_ROAMING) && 88 ((prev_type != MOKO_GSMD_CONNECTION_NETREG_HOME)&&(prev_type != MOKO_GSMD_CONNECTION_NETREG_ROAMING))) 89 { 90 nn = notify_notification_new ("Connected to Network", NULL, NULL, NULL); 91 notify_notification_show (nn, NULL); 92 } 93 prev_type = type; 89 if ( (type == MOKO_GSMD_CONNECTION_NETREG_HOME) || (type == MOKO_GSMD_CONNECTION_NETREG_ROAMING) && 90 ( (prev_type != MOKO_GSMD_CONNECTION_NETREG_HOME) && (prev_type != MOKO_GSMD_CONNECTION_NETREG_ROAMING) ) ) 91 { 92 gsm_applet_update_signal_strength( self, 0, theApplet ); 93 nn = notify_notification_new ("Connected to GSM Network", NULL, NULL, NULL); 94 notify_notification_show (nn, NULL); 95 } 96 prev_type = type; 94 97 } 95 98 … … 119 122 { 120 123 GsmApplet* applet = g_slice_new(GsmApplet); 124 theApplet = applet; // nasty global variable 121 125 MokoPanelApplet* mokoapplet = applet->mokoapplet = MOKO_PANEL_APPLET(moko_panel_applet_new()); 122 126
Note: See TracChangeset
for help on using the changeset viewer.
