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.

svn path=/trunk/gtk-sharp/; revision=26780
This commit is contained in:
Larry Ewing 2004-05-05 18:44:18 +00:00
parent 01acd7f576
commit e57c608330
3 changed files with 23 additions and 0 deletions

View file

@ -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-05-05 Mike Kestner <mkestner@ximian.com>
* generator/Signal.cs : rmv Handle param to SignalCallback ctor calls.

View file

@ -36,10 +36,16 @@ 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);
}
}
[DllImport ("gtksharpglue")]

View file

@ -20,6 +20,9 @@ gdouble gtksharp_gtk_adjustment_get_upper (GtkAdjustment *adj);
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,
@ -63,6 +66,14 @@ 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
gtksharp_gtk_adjustment_get_page_increment (GtkAdjustment *adj)
{