From: John Stebbins Date: Thu, 30 Jun 2016 18:08:27 +0000 (-0700) Subject: LinGui: fix source dialog default selection X-Git-Tag: 1.0.0~345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f240ed576bd4d410483be8795fd87630e51160b;p=handbrake 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). --- 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));