Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 12 May 2024 20:38:57 UTC Commit: 2d8d4f2edacbfc82743a4d020d9c22bc6526b92b https://github.com/geany/geany/commit/2d8d4f2edacbfc82743a4d020d9c22bc6526b9...
Log Message: ----------- Use GTK_RESPONSE_ACCEPT which is also used by GtkFileChooserNative
Modified Paths: -------------- src/symbols.c src/ui_utils.c
Modified: src/symbols.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -1275,7 +1275,7 @@ void symbols_show_load_tags_dialog(void) dialog = GTK_FILE_CHOOSER(gtk_file_chooser_dialog_new(_("Load Tags File"), GTK_WINDOW(main_widgets.window), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, GTK_RESPONSE_OK, + GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL)); gtk_widget_set_name(GTK_WIDGET(dialog), "GeanyDialog"); } @@ -1284,7 +1284,7 @@ void symbols_show_load_tags_dialog(void) gtk_file_filter_add_pattern(filter, "*.*.tags"); gtk_file_chooser_add_filter(dialog, filter);
- if (dialogs_file_chooser_run(dialog) == GTK_RESPONSE_OK) + if (dialogs_file_chooser_run(dialog) == GTK_RESPONSE_ACCEPT) { GSList *flist = gtk_file_chooser_get_filenames(dialog); GSList *item;
Modified: src/ui_utils.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -1979,7 +1979,7 @@ static gchar *run_file_chooser(const gchar *title, GtkFileChooserAction action, dialog = GTK_FILE_CHOOSER(gtk_file_chooser_dialog_new(title, GTK_WINDOW(main_widgets.window), action, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, GTK_RESPONSE_OK, NULL)); + GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL)); gtk_widget_set_name(GTK_WIDGET(dialog), "GeanyDialog"); }
@@ -1996,7 +1996,7 @@ static gchar *run_file_chooser(const gchar *title, GtkFileChooserAction action, } g_free(locale_path);
- if (dialogs_file_chooser_run(dialog) == GTK_RESPONSE_OK) + if (dialogs_file_chooser_run(dialog) == GTK_RESPONSE_ACCEPT) { gchar *dir_locale;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).