[glom] Use libosso instead of libossomm on Maemo



commit be8e58ff7cbc801f7ab94a44b0e1163e51aa4226
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 ee32930..dc756ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 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.
+
+2010-09-10  Murray Cumming  <murrayc murrayc com>
+
 	Dialog_Layout_Report: Fix a crash, making all tests pass.
 
 	* glom/mode_design/report_layout/dialog_layout_report.[h|cc]:
diff --git a/configure.ac b/configure.ac
index 69b646f..909a2f8 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 88e8966..39bd5d1 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>
@@ -458,7 +458,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]