[glom/glom-1-14] Use libosso instead of libossomm on Maemo



commit 4a3572230958c6080a0b4c634b3017317c332e8d
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Sep 10 10:43:53 2010 +0200

    Use libosso instead of libossomm on Maemo
    
    * configure.ac:
    * glom/main.cc: Use libosso instead of libossomm, because we just use
    one function.

 ChangeLog    |    8 ++++++++
 configure.ac |    2 +-
 glom/main.cc |    4 ++--
 3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 37d8a32..2f81669 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-09-10  Murray Cumming  <murrayc murrayc com>
+
+	Use libosso instead of libossomm on Maemo
+
+	* configure.ac:
+	* glom/main.cc: Use libosso instead of libossomm, because we just use
+	one function.
+
 1.14.6:
 
 2010-08-19  David King  <davidk openismus com>
diff --git a/configure.ac b/configure.ac
index 9348c73..e830e4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -165,7 +165,7 @@ AS_IF([test "x$glom_enable_client_only" != xyes],
 AS_IF([test "x$glom_enable_sqlite" = xyes],
       [REQUIRED_GLOM_LIBS="$REQUIRED_GLOM_LIBS libgda-sqlite-4.0"])
 AS_IF([test "x$glom_enable_maemo" = xyes],
-      [REQUIRED_GLOM_LIBS="$REQUIRED_GLOM_LIBS hildonmm hildon-fmmm libossomm osso-af-settings"
+      [REQUIRED_GLOM_LIBS="$REQUIRED_GLOM_LIBS hildonmm hildon-fmmm libosso osso-af-settings"
       MM_PKG_CONFIG_SUBST([OSSO_SERVICEDIR], [--variable=dbusservicedir osso-af-settings])
       MM_PKG_CONFIG_SUBST([OSSO_DESKTOPDIR], [--variable=desktopentrydir osso-af-settings])])
 AS_IF([test "x$glom_maemo_launcher" = xyes],
diff --git a/glom/main.cc b/glom/main.cc
index 64fe816..be7ed44 100644
--- a/glom/main.cc
+++ b/glom/main.cc
@@ -51,7 +51,7 @@
 #include <glibmm/i18n.h>
 
 #ifdef GLOM_ENABLE_MAEMO
-#include <libossomm/init.h>
+#include <libosso.h>
 #include <hildonmm/init.h>
 #include <hildonmm/note.h>
 #include <hildonmm/program.h>
@@ -451,7 +451,7 @@ main(int argc, char* argv[])
   Glom::libglom_init(); //Also initializes python.
 
 #ifdef GLOM_ENABLE_MAEMO
-  if(!(Osso::initialize("org.maemo.glom", PACKAGE_NAME)))
+  if(!(osso_initialize("org.maemo.glom", PACKAGE_NAME, FALSE /* obsolete */, 0)))
   {
     std::cerr << "Glom: Error while initializing libossomm" << std::endl;
     return 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]