diff --git a/gui/gst.cpp b/gui/gst.cpp index 53c19091..3c16be08 100644 --- a/gui/gst.cpp +++ b/gui/gst.cpp @@ -236,7 +236,7 @@ void gst :: init(int *argc, char ***argv) o_enabled->signal_toggled().connect(sigc::ptr_fun(on_pause_enabled)); gst_bus_add_watch(gst_bus, on_gst_message, NULL); - lib :: schedule(on_timeout, 500); + Glib :: signal_timeout().connect(sigc::ptr_fun(on_timeout), 500); } void gst :: quit() diff --git a/include/lib/lib.h b/include/lib/lib.h index 002355a5..2138a8f2 100644 --- a/include/lib/lib.h +++ b/include/lib/lib.h @@ -13,7 +13,6 @@ namespace lib void init(int *, char ***, const std::string &); const std::string share_file(const std::string &); Glib::RefPtr &get_builder(); - void schedule(bool (*)(), unsigned int); template static inline T *get_widget(const std::string &name) diff --git a/lib/lib.cpp b/lib/lib.cpp index 1cdac3fb..97e75eff 100644 --- a/lib/lib.cpp +++ b/lib/lib.cpp @@ -40,8 +40,3 @@ Glib::RefPtr &lib :: get_builder() { return builder; } - -void lib :: schedule(bool (*func)(), unsigned int milliseconds) -{ - Glib :: signal_timeout().connect(sigc::ptr_fun(func), milliseconds); -}