phonemgr r285 - in trunk: . libgsm
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: phonemgr r285 - in trunk: . libgsm
- Date: Fri, 21 Mar 2008 13:35:54 +0000 (GMT)
Author: hadess
Date: Fri Mar 21 13:35:53 2008
New Revision: 285
URL: http://svn.gnome.org/viewvc/phonemgr?rev=285&view=rev
Log:
2008-03-21 Bastien Nocera <hadess hadess net>
* NEWS: upd
* configure.in: 0.51
* libgsm/phonemgr-listener.c (phonemgr_listener_get_own_details):
Abort straight away if we can't change to the ON address book
folder
* libgsm/glibgsmtest.c (send_message), (main):
Send a message after a little timeout, to avoid behaving differently
from gnome-phone-manager
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/configure.in
trunk/libgsm/glibgsmtest.c
trunk/libgsm/phonemgr-listener.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Fri Mar 21 13:35:53 2008
@@ -1,3 +1,12 @@
+gnome-phone-manager 0.51
+========================
+
+ * Add spell checking in the "Send message" entry
+
+ * Fix accessing devices connecting via IrDa, or USB or serial cables
+
+ * Require newer gnokii to get AT driver bug fixes
+
gnome-phone-manager 0.50
========================
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Fri Mar 21 13:35:53 2008
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
-AC_INIT([GNOME Phone Manager],[0.50],[http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-phone-manager],[gnome-phone-manager])
+AC_INIT([GNOME Phone Manager],[0.51],[http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-phone-manager],[gnome-phone-manager])
AC_CONFIG_SRCDIR(src/main.c)
AM_MAINTAINER_MODE
@@ -13,7 +13,7 @@
AM_DISABLE_SHARED
AM_PROG_LIBTOOL
-GNOKII_REQS="gnokii >= 0.6.22 bluez >= 3.12"
+GNOKII_REQS="gnokii >= 0.6.24 bluez >= 3.12"
GNOME_BLUETOOTH_REQS="gnome-bluetooth > 0.8.0"
AC_PROG_CC
Modified: trunk/libgsm/glibgsmtest.c
==============================================================================
--- trunk/libgsm/glibgsmtest.c (original)
+++ trunk/libgsm/glibgsmtest.c Fri Mar 21 13:35:53 2008
@@ -84,6 +84,13 @@
g_message ("Received delivery report status %s for %s", report_statuses[status], phone);
}
+static gboolean
+send_message (PhonemgrListener *l)
+{
+ phonemgr_listener_queue_message (l, "+447736665138",
+ "test message XXX", TRUE);
+}
+
int
main (int argc, char **argv)
{
@@ -116,8 +123,7 @@
// if (phonemgr_listener_connect (listener, "/dev/rfcomm0", &err)) {
g_message ("Connected OK");
- /* phonemgr_listener_queue_message (listener, "1234567",
- "test message XXX", TRUE); */
+ g_timeout_add_seconds (1, (GSourceFunc) send_message, listener);
loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (loop);
Modified: trunk/libgsm/phonemgr-listener.c
==============================================================================
--- trunk/libgsm/phonemgr-listener.c (original)
+++ trunk/libgsm/phonemgr-listener.c Fri Mar 21 13:35:53 2008
@@ -689,15 +689,20 @@
gn_memory_status memstat;
gn_phonebook_entry entry;
int count, start_entry, end_entry, num_entries;
+ gn_error err;
start_entry = 1;
end_entry = num_entries = INT_MAX;
memstat.memory_type = gn_str2memory_type("ON");
l->phone_state->data.memory_status = &memstat;
- if (gn_sm_functions(GN_OP_GetMemoryStatus, &l->phone_state->data, &l->phone_state->state) == GN_ERR_NONE) {
+ err = gn_sm_functions(GN_OP_GetMemoryStatus, &l->phone_state->data, &l->phone_state->state);
+ if (err == GN_ERR_NONE) {
num_entries = memstat.used;
end_entry = memstat.used + memstat.free;
+ } else if (err == GN_ERR_INVALIDMEMORYTYPE) {
+ g_message ("Couldn't get our own phone number (no Own Number phonebook)");
+ return;
}
count = start_entry;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]