-#!/scratchbox/tools/bin/perl -w
+#!/usr/bin/perl -w
# -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#
-#!/scratchbox/tools/bin/perl -w
+#!/usr/bin/perl -w
# -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#
-#!/scratchbox/tools/bin/perl -w
+#!/usr/bin/perl -w
# -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#
sub GenerateHeaders
{
- my $EXTRACT = "/home/milang/src/mapper/intltool-extract";
+ my $EXTRACT = "/home/milang/devel/git/mapper/intltool-extract";
chomp $EXTRACT;
$EXTRACT = $ENV{"INTLTOOL_EXTRACT"} if $ENV{"INTLTOOL_EXTRACT"};
#
sub GeneratePOTemplate
{
- my $XGETTEXT = $ENV{"XGETTEXT"} || "/scratchbox/tools/bin/xgettext";
+ my $XGETTEXT = $ENV{"XGETTEXT"} || "/usr/bin/xgettext";
my $XGETTEXT_ARGS = $ENV{"XGETTEXT_ARGS"} || '';
chomp $XGETTEXT;
{
-f "$MODULE.pot" or die "$PROGRAM: $MODULE.pot does not exist.\n";
- my $MSGMERGE = $ENV{"MSGMERGE"} || "/scratchbox/tools/bin/msgmerge";
+ my $MSGMERGE = $ENV{"MSGMERGE"} || "/usr/bin/msgmerge";
my ($lang, $outfile) = @_;
print "Merging $SRCDIR/$lang.po with $MODULE.pot..." if $VERBOSE;
sub Console_Write_TranslationStatus
{
my ($lang, $output_file) = @_;
- my $MSGFMT = $ENV{"MSGFMT"} || "/scratchbox/tools/bin/msgfmt";
+ my $MSGFMT = $ENV{"MSGFMT"} || "/usr/bin/msgfmt";
$output_file = "$SRCDIR/$lang.po" if ($output_file eq "");
sub Console_Write_CoverageReport
{
- my $MSGFMT = $ENV{"MSGFMT"} || "/scratchbox/tools/bin/msgfmt";
+ my $MSGFMT = $ENV{"MSGFMT"} || "/usr/bin/msgfmt";
&GatherPOFiles;
#ifdef WITH_HILDON
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-#include <stddef.h>
-#include <math.h>
-#include <errno.h>
-#include <sys/wait.h>
-#include <glib/gstdio.h>
-#include <fcntl.h>
-
-#include <dbus/dbus-glib.h>
-#include <bt-dbus.h>
-
#include <libosso.h>
#include <osso-helplib.h>
#include <osso-ic-dbus.h>
#include <osso-ic.h>
+#include <hildon-widgets/hildon-program.h>
+#include <hildon-widgets/hildon-controlbar.h>
+#include <hildon-widgets/hildon-note.h>
+#include <hildon-widgets/hildon-color-button.h>
+#include <hildon-widgets/hildon-file-chooser-dialog.h>
+#include <hildon-widgets/hildon-number-editor.h>
#include <hildon-widgets/hildon-banner.h>
#include <hildon-widgets/hildon-system-sound.h>
-#include "gps.h"
-#include "bt.h"
-#include "settings.h"
-#include "ui-common.h"
-
/*****************************************************************************/
#ifndef __g_cclosure_user_marshal_MARSHAL_H__
dbus_g_error_get_name(error))
|| !fdpath) {
GtkWidget *confirm;
- printf("Caught remote method exception %s: %s",
+ printf
+ ("Caught remote method exception %s: %s",
dbus_g_error_get_name(error),
error->message);
rcvr_disconnect();
/* Ask user to re-connect. */
- confirm = hildon_note_new_confirmation
+ confirm =
+ hildon_note_new_confirmation
(GTK_WINDOW(_window),
- _("Failed to connect to GPS receiver. Retry?"));
+ _
+ ("Failed to connect to GPS receiver. Retry?"));
- if (GTK_RESPONSE_OK == gtk_dialog_run(GTK_DIALOG(confirm)))
+ if (GTK_RESPONSE_OK ==
+ gtk_dialog_run(GTK_DIALOG(confirm)))
rcvr_connect_later(); /* Try again later. */
else
set_conn_state(RCVR_OFF);
#define _GNU_SOURCE
-#include "config.h"
-
-#define DBUS_API_SUBJECT_TO_CHANGE
-#include <dbus/dbus.h>
-#include <dbus/dbus-glib.h>
-
-#ifdef WITH_HILDON
-#include <bt-dbus.h>
-#endif
-
#include "utils.h"
#include "mapper-types.h"
GtkWidget *banner;
GtkListStore *store;
guint sid;
- DBusGProxy *req_proxy;
- DBusGProxy *sig_proxy;
};
ConnState _conn_state;
/****************************************************************************
* Hildon function Wrappers for non-hildon build
****************************************************************************/
-#include "config.h"
-
#define _GNU_SOURCE
-#include <gtk/gtk.h>
-
#ifndef WITH_HILDON
+#include <gtk/gtk.h>
#include "ui-common.h"
static gint _sb_sid=0;
#ifdef WITH_HILDON
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-#include <stddef.h>
-#include <errno.h>
-#include <sys/wait.h>
-#include <glib/gstdio.h>
-#include <gtk/gtk.h>
-#include <fcntl.h>
-
-#include <curl/multi.h>
-
-#include <dbus/dbus-glib.h>
-#include <bt-dbus.h>
-#include <libosso.h>
-#include <osso-helplib.h>
-#include <osso-ic-dbus.h>
-#include <osso-ic.h>
-
-#include "settings.h"
-#include "gps.h"
-#include "map.h"
-
-gboolean _iap_connecting=FALSE;
-gboolean _iap_connected=FALSE;
-
void iap_callback(struct iap_event_t *event, void *arg)
{
printf("%s()\n", __PRETTY_FUNCTION__);
#define _GNU_SOURCE
#include <glib.h>
-#include <gtk/gtk.h>
#ifdef WITH_HILDON
#include <libosso.h>
+#include <osso-helplib.h>
#include <osso-ic-dbus.h>
#include <osso-ic.h>
-#include "bt.h"
-#include "gps.h"
-#include "map.h"
-#include "route.h"
-#include "settings.h"
-#include "ui-common.h"
-
-gint
-dbus_cb_default(const gchar *interface, const gchar *method,
- GArray *arguments, gpointer data, osso_rpc_t *retval)
-{
-printf("%s()\n", __PRETTY_FUNCTION__);
-
-if(!strcmp(method, "top_application"))
- gtk_idle_add((GSourceFunc)window_present, NULL);
-
-retval->type = DBUS_TYPE_INVALID;
-
-vprintf("%s(): return\n", __PRETTY_FUNCTION__);
-return OSSO_OK;
-}
-
-
void osso_cb_hw_state(osso_hw_state_t * state, gpointer data)
{
static gboolean _must_save_data = FALSE;
#include <hildon-widgets/hildon-controlbar.h>
#include <hildon-widgets/hildon-note.h>
#include <hildon-widgets/hildon-color-button.h>
+#include <hildon-widgets/hildon-file-chooser-dialog.h>
#include <hildon-widgets/hildon-number-editor.h>
#include <hildon-widgets/hildon-banner.h>
#include <hildon-widgets/hildon-system-sound.h>
#include <hildon-widgets/hildon-input-mode-hint.h>
#include <device_symbols.h>
-#include "maemo-osso.h"
#endif
#include <libintl.h>
#ifndef _MAPPER_SETTINGS_H
#define _MAPPER_SETTINGS_H
-#include "mapper-types.h"
#include "settings-gconf.h"
/** CONFIGURATION INFORMATION. */
gboolean _show_poi;
gboolean _auto_download;
-gboolean _iap_connecting;
-gboolean _iap_connected;
-
guint _lead_ratio;
guint _center_ratio;
guint _draw_width;
#include <locale.h>
#include <sqlite3.h>
-#include <dbus/dbus-glib.h>
-
-#ifdef WITH_HILDON
-#include <bt-dbus.h>
-#include <libosso.h>
-#include <osso-helplib.h>
-#include <osso-ic-dbus.h>
-#include <osso-ic.h>
-#include <hildon-widgets/hildon-banner.h>
-#include "maemo-osso.h"
-#include "iap.h"
-#endif
-
#include "utils.h"
#include "poi.h"
#include "route.h"
item = gtk_separator_tool_item_new();
gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
-#ifndef WITH_HILDON
_toolbar_fullscreen_item = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_FULLSCREEN);
gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), _toolbar_fullscreen_item, -1);
g_signal_connect (_toolbar_fullscreen_item, "clicked", G_CALLBACK (cb_fullscreen_click), NULL);
-#endif
item = gtk_separator_tool_item_new();
gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
/* Add D-BUS signal handler for 'status_changed' */
{
DBusConnection *dbus_conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
- gchar *filter_string = g_strdup_printf("interface=%s", ICD_DBUS_INTERFACE);
-
+ gchar *filter_string =
+ g_strdup_printf("interface=%s", ICD_DBUS_INTERFACE);
/* add match */
dbus_bus_add_match(dbus_conn, filter_string, NULL);
get_connection_status_signal_cb,
NULL, NULL);
}
-
osso_iap_cb(iap_callback);
{
GError *error = NULL;
/* Initialize D-Bus. */
- if (NULL == (dbus_conn = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error))) {
+ if (NULL ==
+ (dbus_conn = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error))) {
g_printerr("Failed to open connection to D-Bus: %s.\n",
error->message);
error = NULL;
}
- if (NULL == (_rfcomm_req_proxy = dbus_g_proxy_new_for_name(dbus_conn,
- BTCOND_SERVICE,
+ if (NULL ==
+ (_rfcomm_req_proxy =
+ dbus_g_proxy_new_for_name(dbus_conn, BTCOND_SERVICE,
BTCOND_REQ_PATH,
BTCOND_REQ_INTERFACE))) {
g_printerr("Failed to open connection to %s.\n",
#ifdef WITH_HILDON
-#include <libosso.h>
-#include <osso-helplib.h>
-#include <osso-ic-dbus.h>
-#include <osso-ic.h>
-#include <bt-dbus.h>
-#include <hildon-widgets/hildon-program.h>
-#include <hildon-widgets/hildon-controlbar.h>
-#include <hildon-widgets/hildon-note.h>
-#include <hildon-widgets/hildon-color-button.h>
-#include <hildon-fm/hildon-widgets/hildon-file-chooser-dialog.h>
-#include <hildon-widgets/hildon-number-editor.h>
-#include <hildon-widgets/hildon-banner.h>
-#include <hildon-widgets/hildon-system-sound.h>
-#include <hildon-widgets/hildon-input-mode-hint.h>
-#include <device_symbols.h>
-
/** The main GtkWindow of the application. */
HildonProgram *_program;
#include <gconf/gconf-client.h>
#include <libxml/parser.h>
-#ifdef WITH_HILDON
-#include <hildon-widgets/hildon-system-sound.h>
-#endif
-
#include "utils.h"
#include "gps.h"
#include "mapper-types.h"
#include "bt.h"
-#include "route.h"
void sound_noise(void)
{