]> err.no Git - mapper/commitdiff
Rename browse button name as it's not just pois anymore.
authorKaj-Michael Lang <milang@angel.tal.org>
Mon, 23 Jul 2007 12:36:10 +0000 (15:36 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Mon, 23 Jul 2007 12:36:10 +0000 (15:36 +0300)
src/settings-gui.c

index 8b207ffb59affc380ec8121ce7b8c2de4b6b4892..3933351c8f4f6840e3f1d9a5d53f2d1583f8dc4d 100644 (file)
@@ -38,6 +38,7 @@ gboolean
 settings_dialog_browse_forfile(GtkWidget * widget, BrowseInfo * browse_info)
 {
        GtkWidget *dialog;
+       gint res;
        printf("%s()\n", __PRETTY_FUNCTION__);
 
        dialog =
@@ -51,7 +52,8 @@ settings_dialog_browse_forfile(GtkWidget * widget, BrowseInfo * browse_info)
                                                               (browse_info->
                                                                txt)));
 
-       if (GTK_RESPONSE_OK == gtk_dialog_run(GTK_DIALOG(dialog))) {
+       res=gtk_dialog_run(GTK_DIALOG(dialog));
+       if (res==GTK_RESPONSE_OK || res==GTK_RESPONSE_ACCEPT) {
                gchar *filename =
                    gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
                gtk_entry_set_text(GTK_ENTRY(browse_info->txt), filename);
@@ -402,7 +404,7 @@ gboolean settings_dialog()
        GtkWidget *btn_colors;
 
        GtkWidget *txt_mapper_db;
-       GtkWidget *btn_browsepoi;
+       GtkWidget *btn_browsedb;
        GtkWidget *num_poi_zoom;
        GtkWidget *chk_speed_limit_on;
        GtkWidget *num_speed;
@@ -691,7 +693,7 @@ gboolean settings_dialog()
        gtk_box_pack_start(GTK_BOX(hbox),
                           txt_mapper_db = gtk_entry_new(), TRUE, TRUE, 0);
        gtk_box_pack_start(GTK_BOX(hbox),
-                          btn_browsepoi =
+                          btn_browsedb =
                           gtk_button_new_with_label(_("Browse...")), FALSE,
                           FALSE, 0);
 
@@ -718,7 +720,7 @@ gboolean settings_dialog()
 
        browse_info.dialog = dialog;
        browse_info.txt = txt_mapper_db;
-       g_signal_connect(G_OBJECT(btn_browsepoi), "clicked",
+       g_signal_connect(G_OBJECT(btn_browsedb), "clicked",
                         G_CALLBACK(settings_dialog_browse_forfile),
                         &browse_info);