[gtk+/wip/baedert/gtkimageview: 179/228] demo: Bind angle property correctly
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 179/228] demo: Bind angle property correctly
- Date: Tue, 5 Jul 2016 18:45:42 +0000 (UTC)
commit 740e888852f35e076e3c68da21af2c93c9ba8820
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 b41e20b..8f8d91b 100644
--- a/demos/gtk-demo/image_view.c
+++ b/demos/gtk-demo/image_view.c
@@ -247,7 +247,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]