[Gtk-sharp-list] Adjustment.StepIncrement
Larry Ewing
lewing@ximian.com
Fri, 30 Apr 2004 17:11:02 -0500
--=-oa0rWVe8ZSVCFhhxqzUZ
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Unless there was a reason this was left unwrapped is it ok to commit?
--Larry
--=-oa0rWVe8ZSVCFhhxqzUZ
Content-Disposition: attachment; filename=gtk-sharp.diff
Content-Type: text/plain; name=gtk-sharp.diff; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
Index: ChangeLog
===================================================================
RCS file: /cvs/public/gtk-sharp/ChangeLog,v
retrieving revision 1.757
diff -u -p -r1.757 ChangeLog
--- ChangeLog 30 Apr 2004 19:08:16 -0000 1.757
+++ ChangeLog 30 Apr 2004 21:32:06 -0000
@@ -1,3 +1,9 @@
+2004-04-30 Larry Ewing <lewing@ximian.com>
+
+ * gtk/Adjustment.custom: add an a set method for StepIncrement.
+
+ * gtk/glue/adjustment.c: add gtk_adjustment_set_step_increment.
+
2004-04-30 Mike Kestner <mkestner@ximian.com>
* configure.in : remove BASE_DEPENDENCIES LIBS and CFLAGS and
Index: gtk/Adjustment.custom
===================================================================
RCS file: /cvs/public/gtk-sharp/gtk/Adjustment.custom,v
retrieving revision 1.3
diff -u -p -r1.3 Adjustment.custom
--- gtk/Adjustment.custom 8 Nov 2002 23:32:27 -0000 1.3
+++ gtk/Adjustment.custom 30 Apr 2004 21:32:06 -0000
@@ -36,9 +36,15 @@ public double Upper {
[DllImport ("gtksharpglue")]
static extern double gtksharp_gtk_adjustment_get_step_increment (IntPtr i);
+[DllImport ("gtksharpglue")]
+static extern void gtksharp_gtk_adjustment_set_step_increment (IntPtr i, double step_increment);
public double StepIncrement {
get {
return gtksharp_gtk_adjustment_get_step_increment (this.Handle);
+ }
+
+ set {
+ gtksharp_gtk_adjustment_set_step_increment (Handle, value);
}
}
Index: gtk/glue/adjustment.c
===================================================================
RCS file: /cvs/public/gtk-sharp/gtk/glue/adjustment.c,v
retrieving revision 1.1
diff -u -p -r1.1 adjustment.c
--- gtk/glue/adjustment.c 12 Mar 2004 21:18:10 -0000 1.1
+++ gtk/glue/adjustment.c 30 Apr 2004 21:32:06 -0000
@@ -20,6 +20,9 @@ gdouble gtksharp_gtk_adjustment_get_uppe
gdouble gtksharp_gtk_adjustment_get_step_increment (GtkAdjustment *adj);
+void gtksharp_gtk_adjustment_set_step_increment (GtkAdjustment *adj,
+ gdouble step_increment);
+
gdouble gtksharp_gtk_adjustment_get_page_increment (GtkAdjustment *adj);
void gtksharp_gtk_adjustment_set_page_increment (GtkAdjustment *adj,
@@ -61,6 +64,14 @@ gdouble
gtksharp_gtk_adjustment_get_step_increment (GtkAdjustment *adj)
{
return adj->step_increment;
+}
+
+void
+gtksharp_gtk_adjustment_set_step_increment (GtkAdjustment *adj, gdouble step_increment)
+{
+ adj->step_increment = step_increment;
+
+ gtk_adjustment_changed (adj);
}
gdouble
--=-oa0rWVe8ZSVCFhhxqzUZ--