r3185 - in trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm: . src
alphaone at sita.openmoko.org
alphaone at sita.openmoko.org
Tue Oct 16 10:38:26 CEST 2007
Author: alphaone
Date: 2007-10-16 10:38:21 +0200 (Tue, 16 Oct 2007)
New Revision: 3185
Modified:
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/ChangeLog
trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/src/openmoko-panel-gsm.c
Log:
* src/openmoko-panel-gsm.c: (gsm_applet_network_registration_cb):
Only show the "Connected to network" notification if the phone was not
previously connected to the network
Modified: trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/ChangeLog 2007-10-16 08:38:08 UTC (rev 3184)
+++ trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/ChangeLog 2007-10-16 08:38:21 UTC (rev 3185)
@@ -1,3 +1,9 @@
+2007-10-16 Daniel Willmann <alphaone at openmoko.org>
+
+ * src/openmoko-panel-gsm.c: (gsm_applet_network_registration_cb):
+ Only show the "Connected to network" notification if the phone was not
+ previously connected to the network
+
2007-10-02 Thomas Wood <thomas at openedhand.com>
* configure.ac:
Modified: 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 2007-10-16 08:38:08 UTC (rev 3184)
+++ trunk/src/target/OM-2007.2/panel-plugins/openmoko-panel-gsm/src/openmoko-panel-gsm.c 2007-10-16 08:38:21 UTC (rev 3185)
@@ -82,9 +82,15 @@
int cell)
{
NotifyNotification* nn;
+ static MokoGsmdConnectionNetregType prev_type = MOKO_GSMD_CONNECTION_NETREG_NONE;
- nn = notify_notification_new ("Connected to Network", NULL, NULL, NULL);
- notify_notification_show (nn, NULL);
+ if ((type == MOKO_GSMD_CONNECTION_NETREG_HOME) || (type == MOKO_GSMD_CONNECTION_NETREG_ROAMING) &&
+ ((prev_type != MOKO_GSMD_CONNECTION_NETREG_HOME)&&(prev_type != MOKO_GSMD_CONNECTION_NETREG_ROAMING)))
+ {
+ nn = notify_notification_new ("Connected to Network", NULL, NULL, NULL);
+ notify_notification_show (nn, NULL);
+ }
+ prev_type = type;
}
More information about the commitlog
mailing list