phonemgr r304 - in trunk: . libgsm
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: phonemgr r304 - in trunk: . libgsm
- Date: Mon, 16 Jun 2008 21:29:34 +0000 (UTC)
Author: hadess
Date: Mon Jun 16 21:29:34 2008
New Revision: 304
URL: http://svn.gnome.org/viewvc/phonemgr?rev=304&view=rev
Log:
2008-06-16 Bastien Nocera <hadess hadess net>
* libgsm/phonemgr-listener.c (phonemgr_listener_gnokii_func),
(phonemgr_listener_connect): More error output when we
get disconnected because the device has gone away,
get the own details earlier, so that they're available when
we're actually connected
Modified:
trunk/ChangeLog
trunk/libgsm/phonemgr-listener.c
Modified: trunk/libgsm/phonemgr-listener.c
==============================================================================
--- trunk/libgsm/phonemgr-listener.c (original)
+++ trunk/libgsm/phonemgr-listener.c Mon Jun 16 21:29:34 2008
@@ -105,6 +105,7 @@
static void phonemgr_listener_class_init (PhonemgrListenerClass *klass);
static void phonemgr_listener_init (PhonemgrListener *bc);
static void phonemgr_listener_finalize (GObject *obj);
+static void phonemgr_listener_get_own_details (PhonemgrListener *l);
#ifndef DUMMY
static void phonemgr_listener_thread (PhonemgrListener *l);
@@ -272,6 +273,8 @@
retval = gn_sm_functions(op, &l->phone_state->data, &l->phone_state->state);
if (retval == GN_ERR_NOTREADY) {
+ g_message ("Operation failed with error: %s",
+ phonemgr_utils_gn_error_to_string (retval, NULL));
l->terminated = TRUE;
l->connected = FALSE;
}
@@ -503,6 +506,7 @@
l->connected = TRUE;
phonemgr_listener_emit_status (l, PHONEMGR_LISTENER_CONNECTED);
+ phonemgr_listener_get_own_details (l);
l->thread = g_thread_create ((GThreadFunc) phonemgr_listener_thread,
l, TRUE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]