[gtk+/wip/baedert/gtkimageview: 84/96] demo: Bind angle property correctly



commit 3edab3b2948219be8a22ccab7293370f5fc0c05c
Author: Timm Bäder <mail baedert org>
Date:   Sat Jan 23 13:06:02 2016 +0100

    demo: Bind angle property correctly

 demos/gtk-demo/image_view.c  |    2 +-
 demos/gtk-demo/image_view.ui |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/image_view.c b/demos/gtk-demo/image_view.c
index 965d6a7..e87ece8 100644
--- a/demos/gtk-demo/image_view.c
+++ b/demos/gtk-demo/image_view.c
@@ -249,7 +249,7 @@ do_image_view (GtkWidget *do_widget)
 
   g_object_bind_property (scale_adjustment, "value", image_view, "scale",
                           G_BINDING_BIDIRECTIONAL);
-  g_object_bind_property (image_view, "angle", angle_adjustment, "value",
+  g_object_bind_property (angle_adjustment, "value", image_view, "angle",
                           G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
   g_object_bind_property (image_view, "snap-angle", snap_angle_button, "active",
                           G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
diff --git a/demos/gtk-demo/image_view.ui b/demos/gtk-demo/image_view.ui
index 4438917..5f0f21a 100644
--- a/demos/gtk-demo/image_view.ui
+++ b/demos/gtk-demo/image_view.ui
@@ -8,7 +8,7 @@
 
   <object class="GtkAdjustment" id="angle_adjustment">
     <property name="upper">360</property>
-    <property name="value">3</property>
+    <property name="value">0</property>
     <property name="step_increment">0.1</property>
     <!--<property name="step_increment">1</property>-->
     <!--<property name="step_increment">45</property>-->


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