[gimp] app: only auto-link GEGL properties of unit "pixel-distance"
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: only auto-link GEGL properties of unit "pixel-distance"
- Date: Sun, 18 May 2014 21:13:37 +0000 (UTC)
commit eeb8c312328a756722d92cf0ddf7c60475e3474c
Author: Michael Natterer <mitch gimp org>
Date: Sun May 18 23:11:28 2014 +0200
app: only auto-link GEGL properties of unit "pixel-distance"
app/widgets/gimpproptable.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpproptable.c b/app/widgets/gimpproptable.c
index de558f2..dad4ba8 100644
--- a/app/widgets/gimpproptable.c
+++ b/app/widgets/gimpproptable.c
@@ -60,7 +60,7 @@ gimp_prop_table_chain_toggled (GimpChainButton *chain,
GBinding *binding;
binding = g_object_bind_property (x_adj, "value",
- y_adj, "value",
+ y_adj, "value",
G_BINDING_BIDIRECTIONAL);
g_object_set_data (G_OBJECT (chain), "binding", binding);
@@ -309,7 +309,8 @@ gimp_prop_table_new (GObject *config,
0, 0);
gtk_widget_show (chain);
- if (gtk_adjustment_get_value (last_x_adj) ==
+ if (HAS_KEY (pspec, "unit", "pixel-distance") &&
+ gtk_adjustment_get_value (last_x_adj) ==
gtk_adjustment_get_value (adj))
{
GBinding *binding;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]