From: Kaj-Michael Lang Date: Tue, 23 Oct 2007 11:10:05 +0000 (+0300) Subject: More chinook changes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=142b3fb60a810b5758e10fb99d2b1a0d09f73a33;p=mapper More chinook changes --- diff --git a/src/cb.c b/src/cb.c index 2b2b0b3..4cc0675 100644 --- a/src/cb.c +++ b/src/cb.c @@ -540,7 +540,7 @@ return TRUE; gboolean menu_cb_help(GtkAction * action) { -#ifdef WITH_OSSO +#ifdef WITH_OSSO_HELP ossohelp_show(_osso, HELP_ID_INTRO, 0); #endif return TRUE; diff --git a/src/hildon-mapper.h b/src/hildon-mapper.h index 8190436..dd90a97 100644 --- a/src/hildon-mapper.h +++ b/src/hildon-mapper.h @@ -5,9 +5,16 @@ #ifdef WITH_OSSO #include + +#ifdef WITH_OSSO_HELP #include -#include +#endif + +#ifdef WITH_OSSO_IC #include +#include +#endif + #include #include "maemo-osso.h" #include "iap.h" @@ -17,23 +24,26 @@ #ifdef WITH_HILDON_NEW #include -#include #include #include #include #include #include + #ifdef WITH_HILDONFM #include #endif +#ifdef WITH_HILDON_HELP +#include +#endif + #ifdef WITH_DEVICE_770 #include #endif #else -#include #include #include #include diff --git a/src/iap.c b/src/iap.c index 1ae439f..3d14bed 100644 --- a/src/iap.c +++ b/src/iap.c @@ -99,8 +99,13 @@ return iap_connected; #endif -#ifdef WITH_CONIC +/*************************************************************/ +/* + * libconic + * + */ +#ifdef WITH_CONIC static ConIcConnection *connection=NULL; static void @@ -151,6 +156,10 @@ return con_ic_connection_connect(connection, CON_IC_CONNECT_FLAG_NONE); gboolean iap_is_connected(void) { +#ifdef MAEMO_SDK_DEBUG +g_printerr("SDK: Assuming connection is ok.\n"); +return TRUE; +#endif return iap_connected; } diff --git a/src/maemo-osso.c b/src/maemo-osso.c index d31ec2c..68058ee 100644 --- a/src/maemo-osso.c +++ b/src/maemo-osso.c @@ -10,11 +10,12 @@ #include #ifdef WITH_OSSO - #include -#include -#include + +#ifdef WITH_OSSO_IC #include +#include +#endif #include "map.h" #include "map-download.h" diff --git a/src/mapper.c b/src/mapper.c index 62ecda1..ccb8061 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -169,15 +169,15 @@ if (OSSO_OK != osso_rpc_set_default_cb_f(_osso, dbus_cb_default, NULL)) { g_printerr("osso_rpc_set_default_cb_f failed.\n"); return 1; } +#endif +#ifdef WITH_OSSO_IC filter_string = g_strdup_printf("interface=%s", ICD_DBUS_INTERFACE); /* add match */ dbus_bus_add_match(dbus_conn, filter_string, NULL); g_free(filter_string); -#endif /* add the callback */ -#ifdef WITH_OSSO_IC dbus_connection_add_filter(dbus_conn, get_connection_status_signal_cb, NULL, NULL); osso_iap_cb(iap_callback); #endif diff --git a/src/settings-gui.c b/src/settings-gui.c index 8b745c6..ceb4ba3 100644 --- a/src/settings-gui.c +++ b/src/settings-gui.c @@ -405,7 +405,7 @@ settings_dialog(void) GTK_DIALOG_MODAL, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL); -#ifdef WITH_OSSO +#ifdef WITH_OSSO_HELP /* Enable the help button. */ ossohelp_dialog_help_enable(GTK_DIALOG(dialog), HELP_ID_SETTINGS, _osso); #endif