Skip to content

Commit 897a24c

Browse files
tknoppvtjnash
authored andcommitted
Add constructor for GtkAdjustment from GtkSpinButton
1 parent 758a008 commit 897a24c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/input.jl

+2
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ GtkSpinButton(min,max,step) = GtkSpinButton(ccall((:gtk_spin_button_new_with_ran
5454
(Cdouble,Cdouble,Cdouble),min,max,step))
5555
GtkSpinButton(scale::Ranges) = GtkSpinButton(minimum(scale),maximum(scale),step(scale))
5656

57+
GtkAdjustment(spinButton::GtkSpinButton) = GtkAdjustment(ccall((:gtk_spin_button_get_adjustment,libgtk),
58+
Ptr{GObject},(Ptr{GObject},), spinButton))

0 commit comments

Comments
 (0)