Updating branch refs/heads/master
         to 03defe7279d31c6ea6fa14232a30fe4434e5645d (commit)
       from 8f30d3dbd24aa678d0331b8369abf4a2fcdc0e3d (commit)

commit 03defe7279d31c6ea6fa14232a30fe4434e5645d
Author: Nick Schermer <n...@xfce.org>
Date:   Thu Jan 28 19:09:46 2010 +0100

    Fix warning when setting the default filter.

 engines/simple/simple.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/engines/simple/simple.c b/engines/simple/simple.c
index f4da626..da4e5e3 100644
--- a/engines/simple/simple.c
+++ b/engines/simple/simple.c
@@ -419,14 +419,13 @@ config_configure (XfsmSplashConfig *config,
   gtk_file_filter_set_name (filter, _("Images"));
   gtk_file_filter_add_pixbuf_formats (filter);
   gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (button), filter);
+  gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (button), filter);
 
   filter = gtk_file_filter_new ();
   gtk_file_filter_set_name (filter, _("All files"));
   gtk_file_filter_add_pattern (filter, "*");
   gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (button), filter);
 
-  gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (button), 0);
-
   path = xfsm_splash_rc_read_entry (config->rc, "Image", NULL);
   if (path != NULL)
     path_locale = g_filename_from_utf8 (path, -1, NULL, NULL, NULL);
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to