[SCM] calf/master: Use default priority level for GUI updates.
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:49 UTC 2013
The following commit has been merged in the master branch:
commit 0a6aac092d43e4e876f5953d803d861caab367c1
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sun Jan 1 14:42:28 2012 +0000
Use default priority level for GUI updates.
It looks like the LOW priority level is problematic, as the timeouts created
with that level are no longer being executed after second window is displayed.
This is quite weird.
diff --git a/src/gtk_main_win.cpp b/src/gtk_main_win.cpp
index 09d2638..d864865 100644
--- a/src/gtk_main_win.cpp
+++ b/src/gtk_main_win.cpp
@@ -571,7 +571,7 @@ void gtk_main_window::create()
gtk_window_add_accel_group(toplevel, gtk_ui_manager_get_accel_group(ui_mgr));
gtk_widget_show_all(GTK_WIDGET(toplevel));
- source_id = g_timeout_add_full(G_PRIORITY_LOW, 1000/30, on_idle, this, NULL); // 30 fps should be enough for everybody
+ source_id = g_timeout_add_full(G_PRIORITY_DEFAULT, 1000/30, on_idle, this, NULL); // 30 fps should be enough for everybody
notifier = get_config_db()->add_listener(this);
on_config_change();
diff --git a/src/plugin_gui_window.cpp b/src/plugin_gui_window.cpp
index 649e696..9eacc98 100644
--- a/src/plugin_gui_window.cpp
+++ b/src/plugin_gui_window.cpp
@@ -361,7 +361,7 @@ void plugin_gui_window::create(plugin_ctl_iface *_jh, const char *title, const c
if (main)
main->set_window(gui->plugin, this);
- source_id = g_timeout_add_full(G_PRIORITY_LOW, 1000/30, on_idle, this, NULL); // 30 fps should be enough for everybody
+ source_id = g_timeout_add_full(G_PRIORITY_DEFAULT, 1000/30, on_idle, this, NULL); // 30 fps should be enough for everybody
gtk_ui_manager_ensure_update(ui_mgr);
gui->plugin->send_configures(gui);
diff --git a/src/session_mgr.cpp b/src/session_mgr.cpp
index 95488bb..41739a1 100644
--- a/src/session_mgr.cpp
+++ b/src/session_mgr.cpp
@@ -48,7 +48,7 @@ public:
{
if (lash_client)
{
- lash_source_id = g_timeout_add_full(G_PRIORITY_LOW, 250, update_lash, (session_manager_iface *)this, NULL); // 4 LASH reads per second... should be enough?
+ lash_source_id = g_timeout_add_full(G_PRIORITY_DEFAULT, 250, update_lash, (session_manager_iface *)this, NULL); // 4 LASH reads per second... should be enough?
}
}
void disconnect();
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list