[gtk+/wip/baedert/gtkimageview: 71/139] demo: Bind angle property correctly
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 71/139] demo: Bind angle property correctly
- Date: Sat, 16 Apr 2016 16:45:55 +0000 (UTC)
commit 5931a14ea8a6118a09b0b85e9ced9b2b997e6d23
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]