diff options
author | John Stebbins <[email protected]> | 2016-06-30 11:08:27 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-06-30 11:08:27 -0700 |
commit | 0f240ed576bd4d410483be8795fd87630e51160b (patch) | |
tree | 4172135f834f278ea22971ece9e8265dfaba17e7 /gtk/src | |
parent | 4ca82bd12e6046fcd58fc4733f2639cbe6f905ee (diff) |
LinGui: fix source dialog default selection
Dialog needs to be shown before attempting to set selection. Selection
is not reliably set otherwise (sometimes yes, sometimes no).
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/callbacks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 2989b4be2..fb43db137 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1365,6 +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); + gtk_widget_show(dialog); gtk_file_chooser_select_filename(GTK_FILE_CHOOSER(dialog), sourcename); response = gtk_dialog_run(GTK_DIALOG (dialog)); |