summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-09-19 16:59:08 +0000
committerjstebbins <[email protected]>2011-09-19 16:59:08 +0000
commit3215f96d5e1d27b74bf70adebaf6a0e95e58de8d (patch)
tree985aaf0d31577e4431160e1420a0bea49a02d4c6 /gtk/src
parent425fbc1171959cf2257e71933d87e2a88589016d (diff)
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
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/callbacks.c3
1 files changed, 1 insertions, 2 deletions
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));