[gnome-control-center] background: Allow SVG image files as background



commit aa850977a570b3ad19419663655bac438fcc2585
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Tue Aug 30 10:31:23 2011 +0200

    background: Allow SVG image files as background
    
    https://bugzilla.gnome.org/show_bug.cgi?id=648764

 panels/background/bg-pictures-source.c  |    3 ++-
 panels/background/cc-background-panel.c |    3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
index 5f2a02c..228803a 100644
--- a/panels/background/bg-pictures-source.c
+++ b/panels/background/bg-pictures-source.c
@@ -240,7 +240,8 @@ add_single_file (BgPicturesSource *bg_source,
     return FALSE;
 
   if (g_str_equal ("image/png", content_type) ||
-      g_str_equal ("image/jpeg", content_type))
+      g_str_equal ("image/jpeg", content_type) ||
+      g_str_equal ("image/svg+xml", content_type))
     {
       CcBackgroundItem *item;
       char *uri;
diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c
index f7f71ed..d9977e4 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -996,8 +996,7 @@ add_button_clicked (GtkButton         *button,
   priv = panel->priv;
 
   filter = gtk_file_filter_new ();
-  gtk_file_filter_add_mime_type (filter, "image/png");
-  gtk_file_filter_add_mime_type (filter, "image/jpeg");
+  gtk_file_filter_add_mime_type (filter, "image/*");
 
   chooser = gtk_file_chooser_dialog_new (_("Browse for more pictures"),
 					 GTK_WINDOW (gtk_widget_get_toplevel (WID ("background-panel"))),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]