]> granicus.if.org Git - handbrake/commitdiff
LinGui: oops! forgot to use existing filter
authorjstebbins <jstebbins.hb@gmail.com>
Mon, 19 Sep 2011 16:59:08 +0000 (16:59 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Mon, 19 Sep 2011 16:59:08 +0000 (16:59 +0000)
I was creating a new filter with pattern "*" when opening the
source file chooser.  Don't need to do that since I have a
pre-existing one now.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4235 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/callbacks.c

index d623286d2dc4e47b8f1ee800608097be269b6c7c..aca606d4de9d9ffa22deae3211d63c531ce7315b 100644 (file)
@@ -977,8 +977,7 @@ do_source_dialog(GtkButton *button, gboolean single, signal_user_data_t *ud)
        // the filename when gtk_file_chooser_set_filename is called.
        // So add a completely unnessary filter to prevent this behavior.
        GtkFileFilter *filter;
-       filter = gtk_file_filter_new();
-       gtk_file_filter_add_pattern(filter, "*");
+       filter = GTK_FILE_FILTER(GHB_OBJECT(ud->builder, "SourceFilterAll"));
        gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter);
        gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), sourcename);
        response = gtk_dialog_run(GTK_DIALOG (dialog));