mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
clapper-app: Allow usage of all reactable enhancers
Enable and use all found enhancer plugins on the system
This commit is contained in:
@@ -31,8 +31,10 @@
|
|||||||
gint
|
gint
|
||||||
main (gint argc, gchar **argv)
|
main (gint argc, gchar **argv)
|
||||||
{
|
{
|
||||||
const gchar *clapper_ldir;
|
|
||||||
GApplication *application;
|
GApplication *application;
|
||||||
|
ClapperEnhancerProxyList *proxies;
|
||||||
|
const gchar *clapper_ldir;
|
||||||
|
guint i, n_proxies;
|
||||||
gint status;
|
gint status;
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
@@ -64,6 +66,15 @@ main (gint argc, gchar **argv)
|
|||||||
resolution = clapper_app_utils_win_hi_res_clock_start ();
|
resolution = clapper_app_utils_win_hi_res_clock_start ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
proxies = clapper_get_global_enhancer_proxies ();
|
||||||
|
n_proxies = clapper_enhancer_proxy_list_get_n_proxies (proxies);
|
||||||
|
|
||||||
|
/* Allow usage of all enhancers */
|
||||||
|
for (i = 0; i < n_proxies; ++i) {
|
||||||
|
ClapperEnhancerProxy *proxy = clapper_enhancer_proxy_list_peek_proxy (proxies, i);
|
||||||
|
clapper_enhancer_proxy_set_target_creation_allowed (proxy, TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
application = clapper_app_application_new ();
|
application = clapper_app_application_new ();
|
||||||
|
|
||||||
status = g_application_run (application, argc, argv);
|
status = g_application_run (application, argc, argv);
|
||||||
|
Reference in New Issue
Block a user