[gnome-photos] print-setup: Take a reference on the GtkPageSetup



commit e79ebc54841b65600cc08f0964d8c445628d29f1
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Mar 15 14:45:01 2016 +0100

    print-setup: Take a reference on the GtkPageSetup
    
    ... because the rest of PhotosPrintSetup assumes so.
    
    Exposed by db0b1801419b5503b4657a1b827ee8de24377fe9
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763500

 src/photos-print-setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-print-setup.c b/src/photos-print-setup.c
index 7c3a14c..2b2ee24 100644
--- a/src/photos-print-setup.c
+++ b/src/photos-print-setup.c
@@ -868,7 +868,7 @@ photos_print_setup_set_property (GObject *object, guint prop_id, const GValue *v
       }
       break;
     case PROP_PAGE_SETUP:
-      priv->page_setup = GTK_PAGE_SETUP (g_value_get_object (value));
+      priv->page_setup = GTK_PAGE_SETUP (g_value_dup_object (value));
       break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);


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