]> git.street.me.uk Git - andy/viking.git/commitdiff
Add Google Maps search to toolbar.
authorQuy Tonthat <qtonthat@gmail.com>
Thu, 31 May 2007 12:00:48 +0000 (12:00 +0000)
committerQuy Tonthat <qtonthat@gmail.com>
Thu, 31 May 2007 12:00:48 +0000 (12:00 +0000)
Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
src/googlesearch.c
src/menu.xml.h
src/vikwindow.c

index 8f410630534eb1f10c436b7542fbb86ed48b3bf6..044c130761a4ad5a18e05161c244e6a6c0f4af6c 100644 (file)
@@ -142,8 +142,6 @@ static gboolean parse_file_for_latlon(gchar *file_name, struct LatLon *ll)
   ll->lat = g_ascii_strtod(lat_buf, NULL);
   ll->lon = g_ascii_strtod(lon_buf, NULL);
 
-  fprintf(stderr, "lat=%f lon=%f\n", ll->lat, ll->lon);
-
 done:
   g_mapped_file_free(mf);
   return (found);
index 0ce85e5ad00f331b9164eb36a6164c2157c6d45b..300d065099e83ef4f773a9f0ea84c95390477057 100644 (file)
@@ -89,6 +89,10 @@ static const char *menu_xml =
        "      <toolitem name='Delete' action='Delete'/>"
        "      <separator/>"
        "    </placeholder>"
+       "    <placeholder name='ViewToolItems'>"
+       "      <toolitem action='GoogleMapsSearch'/>"
+       "      <separator/>"
+       "    </placeholder>"
        "    <placeholder name='ToolItems'>"
        "    <toolitem action='Zoom'/>"
        "    <toolitem action='Ruler'/>"
index dfddf526ce9dfaae33c9347350e874136277e91c..5a9972b607f3adcde92844f760ae337ff0ea7ca4 100644 (file)
@@ -1595,7 +1595,7 @@ static GtkActionEntry entries[] = {
   { "Exit",      GTK_STOCK_QUIT,         "E_xit",                         "<control>W", "Exit the program",                             (GCallback)window_close          },
   { "SaveExit",  GTK_STOCK_QUIT,         "Save and Exit",                 NULL, "Save and Exit the program",                             (GCallback)save_file_and_exit          },
 
-  { "GoogleMapsSearch",   GTK_STOCK_GO_FORWARD,                 "Go To Google Maps location",                    NULL,         "Get location using Google Maps search",            (GCallback)goto_address       },
+  { "GoogleMapsSearch",   GTK_STOCK_GO_FORWARD,                 "Go To Google Maps location",                    NULL,         "Go to address/place using Google Maps search",            (GCallback)goto_address       },
   { "GotoLL",    GTK_STOCK_QUIT,         "_Go to Lat\\/Lon...",           NULL,         "Go to arbitrary lat\\/lon coordinate",         (GCallback)draw_goto_cb          },
   { "GotoUTM",   GTK_STOCK_QUIT,         "Go to UTM...",                  NULL,         "Go to arbitrary UTM coordinate",               (GCallback)draw_goto_cb          },
   { "SetBGColor",GTK_STOCK_SELECT_COLOR, "Set Background Color...",       NULL,         NULL,                                           (GCallback)set_bg_color          },