diff options
author | John Stebbins <[email protected]> | 2016-06-29 15:49:10 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-06-29 15:49:10 -0700 |
commit | a4c3df79969d6bfd152db991c6e5aadf89a543dd (patch) | |
tree | aac7e393c6398a22b1b3ec50e0ff978d97908823 /gtk/src | |
parent | 05c142a4e8bdc81a91367ff535e8775141f8b6ff (diff) |
LinGui: revert old gtk bug workaround
It is no longer necessary in current gtk versions \o/
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/callbacks.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 1b2e9b8c1..2989b4be2 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1365,19 +1365,7 @@ do_source_dialog(GtkButton *button, gboolean single, signal_user_data_t *ud) dialog = GHB_WIDGET(ud->builder, "source_dialog"); source_dialog_extra_widgets(ud, dialog); - // gtk3 has a STUPID BUG! If you select the "same_path" it ends - // up selecting the "Recent Files" shortcut instead of taking you - // to the directory and file THAT YOU ASKED FOR!!! FUUUUK!!! - // - // So instead, I am just setting the current folder. It's not - // optimal because if you are processing several files in the same - // folder, you want the selection to return to where you were last - // in the list, but there's not much else I can do at this point. - //gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), sourcename); - - gchar *dirname = g_path_get_dirname(sourcename); - gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), dirname); - g_free(dirname); + gtk_file_chooser_select_filename(GTK_FILE_CHOOSER(dialog), sourcename); response = gtk_dialog_run(GTK_DIALOG (dialog)); gtk_widget_hide(dialog); |