[gnome-control-center] user-accounts: add pixbuf filter for the avatar file chooser
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: add pixbuf filter for the avatar file chooser
- Date: Tue, 24 Jun 2014 11:28:44 +0000 (UTC)
commit 8d5d712e2c5f5327a987c7214a6ea9a60cefdc01
Author: Ondrej Holy <oholy redhat com>
Date: Fri Jan 10 16:55:38 2014 +0100
user-accounts: add pixbuf filter for the avatar file chooser
https://bugzilla.gnome.org/show_bug.cgi?id=721683
panels/user-accounts/um-photo-dialog.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-photo-dialog.c b/panels/user-accounts/um-photo-dialog.c
index b206667..123e4e6 100644
--- a/panels/user-accounts/um-photo-dialog.c
+++ b/panels/user-accounts/um-photo-dialog.c
@@ -213,6 +213,7 @@ um_photo_dialog_select_file (UmPhotoDialog *um)
GtkWidget *chooser;
const gchar *folder;
GtkWidget *preview;
+ GtkFileFilter *filter;
chooser = gtk_file_chooser_dialog_new (_("Browse for more pictures"),
GTK_WINDOW (gtk_widget_get_toplevel (um->popup_button)),
@@ -236,6 +237,10 @@ um_photo_dialog_select_file (UmPhotoDialog *um)
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (chooser),
folder);
+ filter = gtk_file_filter_new ();
+ gtk_file_filter_add_pixbuf_formats (filter);
+ gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (chooser), filter);
+
g_signal_connect (chooser, "response",
G_CALLBACK (file_chooser_response), um);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]