background: Allow SVG image files as background
https://bugzilla.gnome.org/show_bug.cgi?id=648764
This commit is contained in:
parent
a29bc7090b
commit
aa850977a5
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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"))),
|
||||
|
|
Loading…
Add table
Reference in a new issue