Diff of /trunk/src/main.c

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

revision 3 by harbaum, Mon Jun 22 13:05:30 2009 UTC revision 4 by harbaum, Mon Jun 22 14:25:59 2009 UTC
# Line 1452  cb_menu_export_garmin(GtkWidget *widget, Line 1452  cb_menu_export_garmin(GtkWidget *widget,
1452    
1453  #ifdef USE_STACKABLE_WINDOW  #ifdef USE_STACKABLE_WINDOW
1454  void on_export_clicked(GtkButton *button, appdata_t *appdata) {  void on_export_clicked(GtkButton *button, appdata_t *appdata) {
1455    GtkWidget *dialog = gtk_dialog_new();    GtkWidget *but, *dialog = gtk_dialog_new();
1456    
1457    GtkWidget *but =    gtk_window_set_title(GTK_WINDOW(dialog), _("Export"));
     hildon_button_new_with_text(HILDON_SIZE_AUTO,  
                                 HILDON_BUTTON_ARRANGEMENT_VERTICAL,  
                                 _("Export to Maemo Mapper"),  
                                 _("Write a Maemo Mapper POI file"));  
1458    
1459    gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox),    but = hildon_button_new_with_text(HILDON_SIZE_AUTO,
1460                      but);                                      HILDON_BUTTON_ARRANGEMENT_VERTICAL,
1461                                        _("Export to Maemo Mapper"),
1462                                        _("Write a Maemo Mapper POI file"));
1463      gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), but);
1464    
1465    
1466      but = hildon_button_new_with_text(HILDON_SIZE_AUTO,
1467                                        HILDON_BUTTON_ARRANGEMENT_VERTICAL,
1468                                        _("Export Field Notes"),
1469                                        _("Write a Garmin Field Notes file"));
1470      gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), but);
1471    
1472    
1473      but = hildon_button_new_with_text(HILDON_SIZE_AUTO,
1474                                        HILDON_BUTTON_ARRANGEMENT_VERTICAL,
1475                                        _("Export Garmin GPX"),
1476                                        _("Write GPX file of modified points"));
1477      gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), but);
1478    
1479    
1480  #if 0  #if 0
# Line 1498  HildonAppMenu *menu_create(appdata_t *ap Line 1511  HildonAppMenu *menu_create(appdata_t *ap
1511      hildon_app_menu_append(menu, GTK_BUTTON(button));      hildon_app_menu_append(menu, GTK_BUTTON(button));
1512    }    }
1513    
1514    #if 0
1515    if(mode == MENU_GPXLIST || mode == MENU_CACHELIST) {    if(mode == MENU_GPXLIST || mode == MENU_CACHELIST) {
1516      button = gtk_button_new_with_label(_("Export to Mapper"));      button = gtk_button_new_with_label(_("Export to Mapper"));
1517      g_signal_connect_after(button, "clicked",      g_signal_connect_after(button, "clicked",
# Line 1521  HildonAppMenu *menu_create(appdata_t *ap Line 1535  HildonAppMenu *menu_create(appdata_t *ap
1535                             G_CALLBACK(cb_menu_search), appdata);                             G_CALLBACK(cb_menu_search), appdata);
1536      hildon_app_menu_append(menu, GTK_BUTTON(button));      hildon_app_menu_append(menu, GTK_BUTTON(button));
1537    }    }
1538    #else
1539    
1540      if(mode == MENU_GPXLIST) {
1541        button = gtk_button_new_with_label(_("Export"));
1542        g_signal_connect_after(button, "clicked",
1543                               G_CALLBACK(on_export_clicked), appdata);
1544        hildon_app_menu_append(menu, GTK_BUTTON(button));
1545    
1546        button = gtk_button_new_with_label(_("Search"));
1547        g_signal_connect_after(button, "clicked",
1548                               G_CALLBACK(cb_menu_search), appdata);
1549        hildon_app_menu_append(menu, GTK_BUTTON(button));
1550      }
1551    
1552    #endif
1553    
1554    button = gtk_button_new_with_label(_("About"));    button = gtk_button_new_with_label(_("About"));
1555    g_signal_connect_after(button, "clicked",    g_signal_connect_after(button, "clicked",

Legend:
Removed from v.3  
changed lines
  Added in v.4