Diff of /trunk/src/notes.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 221 by harbaum, Mon Nov 30 21:28:04 2009 UTC revision 226 by harbaum, Wed Dec 2 20:05:52 2009 UTC
# Line 282  static void notes_save(cache_context_t * Line 282  static void notes_save(cache_context_t *
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    
# Line 619  GtkWidget *cache_notes(cache_context_t * Line 621  GtkWidget *cache_notes(cache_context_t *
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    
# Line 660  GtkWidget *cache_notes(cache_context_t * Line 663  GtkWidget *cache_notes(cache_context_t *
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    

Legend:
Removed from v.221  
changed lines
  Added in v.226