settings_dialog_browse_forfile(GtkWidget * widget, BrowseInfo * browse_info)
{
GtkWidget *dialog;
+ gint res;
printf("%s()\n", __PRETTY_FUNCTION__);
dialog =
(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);
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;
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);
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);