From 0f240ed576bd4d410483be8795fd87630e51160b Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 30 Jun 2016 11:08:27 -0700 Subject: [PATCH] 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). --- gtk/src/callbacks.c | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.40.0