gui: Schedule timeout function from gstreamer code directly
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
4cae9aaf2b
commit
7f6f6395d7
|
@ -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()
|
||||
|
|
|
@ -13,7 +13,6 @@ namespace lib
|
|||
void init(int *, char ***, const std::string &);
|
||||
const std::string share_file(const std::string &);
|
||||
Glib::RefPtr<Gtk::Builder> &get_builder();
|
||||
void schedule(bool (*)(), unsigned int);
|
||||
|
||||
template <class T>
|
||||
static inline T *get_widget(const std::string &name)
|
||||
|
|
|
@ -40,8 +40,3 @@ Glib::RefPtr<Gtk::Builder> &lib :: get_builder()
|
|||
{
|
||||
return builder;
|
||||
}
|
||||
|
||||
void lib :: schedule(bool (*func)(), unsigned int milliseconds)
|
||||
{
|
||||
Glib :: signal_timeout().connect(sigc::ptr_fun(func), milliseconds);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue