[dia] [transform] connecting to "value-changed" is not enough



commit bb3388b319d2bfbb4681b3e390e3c40e0b2faa55
Author: Hans Breuer <hans breuer org>
Date:   Sat Sep 25 20:38:53 2010 +0200

    [transform] connecting to "value-changed" is not enough
    
    GtkSpinButton value-changed is only emitted on spi button clicks.
    We are interested in typed in numbers as well, so use the "changed"
    signal to catch all modifications of the matrix property widget.

 lib/prop_matrix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/prop_matrix.c b/lib/prop_matrix.c
index 43b7bf6..97cebd4 100644
--- a/lib/prop_matrix.c
+++ b/lib/prop_matrix.c
@@ -172,7 +172,7 @@ matrixprop_get_widget (MatrixProperty *prop, PropDialog *dialog)
   adj = gtk_adjustment_new(0.0, -180.0, 180.0, 1.0, 15.0, 0);
   ret = gtk_spin_button_new(GTK_ADJUSTMENT (adj), 1.0, 2);
   gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(ret),TRUE);
-  prophandler_connect(&prop->common, G_OBJECT(ret), "value_changed");
+  prophandler_connect(&prop->common, G_OBJECT(ret), "changed");
   
   return ret;
 }



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