diff options
author | Andre Miranda <andreldm@xfce.org> | 2018-06-02 11:56:51 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2018-06-02 11:56:51 -0300 |
commit | c5d6c68555699322a5c8fb040e7fd50274ad3849 (patch) | |
tree | 9c162691e384d278e35310f0db9458a0d591340a /thunarx | |
parent | a80821b200d1ebe5457ab75d6572f4e86f0294bb (diff) | |
download | thunar-c5d6c68555699322a5c8fb040e7fd50274ad3849.tar.gz |
Silence gdk_threads_* deprecations
Diffstat (limited to 'thunarx')
-rw-r--r-- | thunarx/thunarx-private.h | 10 | ||||
-rw-r--r-- | thunarx/thunarx-provider-factory.c | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/thunarx/thunarx-private.h b/thunarx/thunarx-private.h index 1f9d714f..d0658cc5 100644 --- a/thunarx/thunarx-private.h +++ b/thunarx/thunarx-private.h @@ -27,6 +27,16 @@ #include <glib-object.h> +#define THUNAR_THREADS_ENTER \ +G_GNUC_BEGIN_IGNORE_DEPRECATIONS \ + gdk_threads_enter(); \ +G_GNUC_END_IGNORE_DEPRECATIONS + +#define THUNAR_THREADS_LEAVE \ +G_GNUC_BEGIN_IGNORE_DEPRECATIONS \ + gdk_threads_leave (); \ +G_GNUC_END_IGNORE_DEPRECATIONS + G_BEGIN_DECLS #define I_(string) (g_intern_static_string ((string))) diff --git a/thunarx/thunarx-provider-factory.c b/thunarx/thunarx-provider-factory.c index 7764b55f..94b11545 100644 --- a/thunarx/thunarx-provider-factory.c +++ b/thunarx/thunarx-provider-factory.c @@ -214,7 +214,7 @@ thunarx_provider_factory_timer (gpointer user_data) ThunarxProviderInfo *info; gint n; - GDK_THREADS_ENTER (); +THUNAR_THREADS_ENTER /* drop all providers for which only we keep a reference */ for (n = factory->n_infos; --n >= 0; ) @@ -227,7 +227,7 @@ thunarx_provider_factory_timer (gpointer user_data) } } - GDK_THREADS_LEAVE (); +THUNAR_THREADS_LEAVE return TRUE; } |