311 |
g_free(mup); |
g_free(mup); |
312 |
#endif |
#endif |
313 |
|
|
314 |
pos_lat_str(str, sizeof(str), context->avg.lat); |
lat_label_set(context->lat_label, context->avg.lat); |
315 |
gtk_label_set_text(GTK_LABEL(context->lat_label), str); |
lon_label_set(context->lon_label, context->avg.lon); |
|
pos_lon_str(str, sizeof(str), context->avg.lon); |
|
|
gtk_label_set_text(GTK_LABEL(context->lon_label), str); |
|
316 |
|
|
317 |
return TRUE; // fire again |
return TRUE; // fire again |
318 |
} |
} |
319 |
|
|
320 |
#ifdef USE_MAEMO |
#ifdef ENABLE_MAEMO_MAPPER |
321 |
static void on_mm_export_clicked(GtkButton *button, gpointer data) { |
static void on_mm_export_clicked(GtkButton *button, gpointer data) { |
322 |
pp_context_t *context = (pp_context_t*)data; |
pp_context_t *context = (pp_context_t*)data; |
323 |
|
|
397 |
gtk_box_pack_start_defaults(GTK_BOX(vbox), gtk_label_new(_("Longitude:"))); |
gtk_box_pack_start_defaults(GTK_BOX(vbox), gtk_label_new(_("Longitude:"))); |
398 |
gtk_box_pack_start_defaults(GTK_BOX(vbox), |
gtk_box_pack_start_defaults(GTK_BOX(vbox), |
399 |
context->lon_label = gtk_label_new("")); |
context->lon_label = gtk_label_new("")); |
400 |
|
|
401 |
GtkWidget *copy_but = gtk_button_new_with_label(_("Copy")); |
GtkWidget *copy_but = gtk_button_new_with_label(_("Copy")); |
402 |
|
#if defined(USE_MAEMO) && (MAEMO_VERSION_MAJOR == 5) |
403 |
|
hildon_gtk_widget_set_theme_size(copy_but, |
404 |
|
(HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH)); |
405 |
|
#endif |
406 |
gtk_signal_connect(GTK_OBJECT(copy_but), "clicked", |
gtk_signal_connect(GTK_OBJECT(copy_but), "clicked", |
407 |
(GtkSignalFunc)on_copy_clicked, context); |
(GtkSignalFunc)on_copy_clicked, context); |
408 |
gtk_box_pack_start_defaults(GTK_BOX(vbox), copy_but); |
gtk_box_pack_start_defaults(GTK_BOX(vbox), copy_but); |
413 |
|
|
414 |
context->handler_id = gtk_timeout_add(1000, update, context); |
context->handler_id = gtk_timeout_add(1000, update, context); |
415 |
|
|
416 |
#ifdef USE_MAEMO |
#ifdef ENABLE_MAEMO_MAPPER |
417 |
/* ------------- maemo mapper button ---------------- */ |
/* ------------- maemo mapper button ---------------- */ |
418 |
GtkWidget *button = gtk_button_new(); |
GtkWidget *button = gtk_button_new(); |
419 |
gtk_button_set_image(GTK_BUTTON(button), icon_get_widget(ICON_MISC, 0)); |
gtk_button_set_image(GTK_BUTTON(button), icon_get_widget(ICON_MISC, 0)); |