Skip to content

Commit 758a008

Browse files
tknoppvtjnash
authored andcommitted
add start/stop for GtkSpinner
1 parent b9b42cf commit 758a008

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Gtk.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import Cairo: destroy
1919
export width, height, #minsize, maxsize
2020
reveal, configure, draw, cairo_context,
2121
visible, destroy,
22-
hasparent, toplevel
22+
hasparent, toplevel,
23+
stop
2324

2425
#property, margin, padding, align
2526
#raise, focus, destroy, enabled
@@ -152,7 +153,8 @@ module ShortNames
152153
export width, height, #minsize, maxsize
153154
reveal, configure, draw, cairo_context,
154155
visible, destroy,
155-
hasparent, toplevel
156+
hasparent, toplevel,
157+
stop
156158

157159
# Gtk objects
158160
const G_ = GAccessor

src/displays.jl

+3
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ pulse(progress::GtkProgressBar) = ccall((:gtk_progress_bar_pulse,libgtk),Void,(P
317317
@gtktype GtkSpinner
318318
GtkSpinner() = GtkSpinner(ccall((:gtk_spinner_new,libgtk),Ptr{GObject},()))
319319

320+
start(spinner::GtkSpinner) = ccall((:gtk_spinner_start,libgtk),Void,(Ptr{GObject},),spinner)
321+
stop(spinner::GtkSpinner) = ccall((:gtk_spinner_stop,libgtk),Void,(Ptr{GObject},),spinner)
322+
320323
@gtktype GtkStatusbar
321324
GtkStatusbar() = GtkStatusbar(ccall((:gtk_statusbar_new,libgtk),Ptr{GObject},()))
322325
context_id(status::GtkStatusbar,source) =

0 commit comments

Comments
 (0)