mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-22 15:41:11 +00:00
Add patches from Cesar
svn path=/trunk/gtk-sharp/; revision=8891
This commit is contained in:
parent
92500272bb
commit
ddf50c3439
|
@ -45,9 +45,24 @@ gtksharp_gtk_adjustment_get_page_increment (GtkAdjustment *adj)
|
|||
return adj->page_increment;
|
||||
}
|
||||
|
||||
void
|
||||
gtksharp_gtk_adjustment_set_page_increment (GtkAdjustment *adj, gdouble page_increment)
|
||||
{
|
||||
adj->page_increment = page_increment;
|
||||
|
||||
gtk_adjustment_changed (adj);
|
||||
}
|
||||
|
||||
gdouble
|
||||
gtksharp_gtk_adjustment_get_page_size (GtkAdjustment *adj)
|
||||
{
|
||||
return adj->page_size;
|
||||
}
|
||||
|
||||
void
|
||||
gtksharp_gtk_adjustment_set_page_size (GtkAdjustment *adj, gdouble page_size)
|
||||
{
|
||||
adj->page_size = page_size;
|
||||
|
||||
gtk_adjustment_changed (adj);
|
||||
}
|
||||
|
|
|
@ -44,17 +44,29 @@ public double StepIncrement {
|
|||
|
||||
[DllImport ("gtksharpglue")]
|
||||
static extern double gtksharp_gtk_adjustment_get_page_increment (IntPtr i);
|
||||
[DllImport ("gtksharpglue")]
|
||||
static extern void gtksharp_gtk_adjustment_set_page_increment (IntPtr i, double page_increment);
|
||||
public double PageIncrement {
|
||||
get {
|
||||
return gtksharp_gtk_adjustment_get_page_increment (this.Handle);
|
||||
}
|
||||
|
||||
set {
|
||||
gtksharp_gtk_adjustment_set_page_increment (Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport ("gtksharpglue")]
|
||||
static extern double gtksharp_gtk_adjustment_get_page_size (IntPtr i);
|
||||
[DllImport ("gtksharpglue")]
|
||||
static extern void gtksharp_gtk_adjustment_set_page_size (IntPtr i, double page_size);
|
||||
public double PageSize {
|
||||
get {
|
||||
return gtksharp_gtk_adjustment_get_page_size (this.Handle);
|
||||
}
|
||||
|
||||
set {
|
||||
gtksharp_gtk_adjustment_set_page_size (Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue