282 |
/* there is a position which differs from the original one */ |
/* there is a position which differs from the original one */ |
283 |
/* or has been changed */ |
/* or has been changed */ |
284 |
|
|
285 |
|
printf("saving notes\n"); |
286 |
|
|
287 |
if(context->notes.modified) { |
if(context->notes.modified) { |
288 |
printf("something has been modified, saving notes\n"); |
printf("something has been modified, saving notes\n"); |
289 |
|
|
621 |
GtkWidget *table = gtk_table_new(2, 4, FALSE); |
GtkWidget *table = gtk_table_new(2, 4, FALSE); |
622 |
#if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5) |
#if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5) |
623 |
gtk_table_set_col_spacing(GTK_TABLE(table), 0, 16); |
gtk_table_set_col_spacing(GTK_TABLE(table), 0, 16); |
|
gtk_table_set_col_spacing(GTK_TABLE(table), 2, 16); |
|
624 |
#endif |
#endif |
625 |
|
|
626 |
|
gtk_table_set_col_spacing(GTK_TABLE(table), 2, 16); |
627 |
|
|
628 |
gtk_table_attach_defaults(GTK_TABLE(table), |
gtk_table_attach_defaults(GTK_TABLE(table), |
629 |
gtk_label_new(_("New coordinate:")), 0, 1, 0, 1); |
gtk_label_new(_("New coordinate:")), 0, 1, 0, 1); |
630 |
context->notes.overridew = check_button_new_with_label(_("Override")); |
context->notes.overridew = check_button_new_with_label(_("Override")); |
631 |
check_button_set_active(context->notes.overridew, |
check_button_set_active(context->notes.overridew, |
632 |
cache->notes && cache->notes->override); |
cache->notes && cache->notes->override); |
633 |
gtk_table_attach_defaults(GTK_TABLE(table), |
gtk_table_attach_defaults(GTK_TABLE(table), |
634 |
context->notes.overridew, 0, 1, 1, 2); |
context->notes.overridew, 2, 3, 0, 1); |
635 |
|
|
636 |
GtkWidget *hbox = gtk_hbox_new(FALSE, 2); |
GtkWidget *hbox = gtk_hbox_new(FALSE, 2); |
637 |
|
|
663 |
if(cache->notes) pos = cache->notes->pos; |
if(cache->notes) pos = cache->notes->pos; |
664 |
|
|
665 |
gtk_table_attach_defaults(GTK_TABLE(table), |
gtk_table_attach_defaults(GTK_TABLE(table), |
666 |
context->notes.latw = lat_entry_new(pos.lat), 2, 3, 0, 1); |
context->notes.latw = lat_entry_new(pos.lat), 0, 1, 1, 2); |
667 |
g_signal_connect(G_OBJECT(context->notes.latw), "focus-out-event", |
g_signal_connect(G_OBJECT(context->notes.latw), "focus-out-event", |
668 |
G_CALLBACK(focus_out), context); |
G_CALLBACK(focus_out), context); |
669 |
|
|