]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix source dialog default selection
authorJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 30 Jun 2016 18:08:27 +0000 (11:08 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 30 Jun 2016 18:08:27 +0000 (11:08 -0700)
Dialog needs to be shown before attempting to set selection.  Selection
is not reliably set otherwise (sometimes yes, sometimes no).

gtk/src/callbacks.c

index 2989b4be293b818d5eca21cf060f3bf15552800b..fb43db137fc57635d33c8e41672cbeba5c7a42ec 100644 (file)
@@ -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));