[gnome-control-center] user-accounts: Handle EXIF orientation
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Handle EXIF orientation
- Date: Mon, 15 May 2017 10:03:49 +0000 (UTC)
commit 7bd7fcdf2c29c2ebdfa1b4903f8eabebc0418231
Author: Silvère Latchurié <slatchurie gmail com>
Date: Fri May 12 18:48:35 2017 +0200
user-accounts: Handle EXIF orientation
Apply the EXIF orientation of the picture that has been picked.
https://bugzilla.gnome.org/show_bug.cgi?id=706547
panels/user-accounts/um-photo-dialog.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/panels/user-accounts/um-photo-dialog.c b/panels/user-accounts/um-photo-dialog.c
index 7dbed88..50171f6 100644
--- a/panels/user-accounts/um-photo-dialog.c
+++ b/panels/user-accounts/um-photo-dialog.c
@@ -124,7 +124,7 @@ file_chooser_response (GtkDialog *chooser,
{
gchar *filename;
GError *error;
- GdkPixbuf *pixbuf;
+ GdkPixbuf *pixbuf, *pixbuf2;
if (response != GTK_RESPONSE_ACCEPT) {
gtk_widget_destroy (GTK_WIDGET (chooser));
@@ -141,10 +141,13 @@ file_chooser_response (GtkDialog *chooser,
}
g_free (filename);
+ pixbuf2 = gdk_pixbuf_apply_embedded_orientation (pixbuf);
+ g_object_unref (pixbuf);
+
gtk_widget_destroy (GTK_WIDGET (chooser));
- um_photo_dialog_crop (um, pixbuf);
- g_object_unref (pixbuf);
+ um_photo_dialog_crop (um, pixbuf2);
+ g_object_unref (pixbuf2);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]