From 3215f96d5e1d27b74bf70adebaf6a0e95e58de8d Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 19 Sep 2011 16:59:08 +0000 Subject: LinGui: oops! forgot to use existing filter 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gtk/src') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index d623286d2..aca606d4d 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -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)); -- cgit v1.2.3