summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2013-02-23 22:20:45 -0800
committerDan Nicholson <dbn.lists@gmail.com>2013-02-23 22:20:45 -0800
commit19ff61a9767dd4a0efd14a42dbbb440716003b13 (patch)
tree63dacf198caed87408aa729999ccdd87b69d3ded /src
parent7a0be99fb4e69cef35a05beeed02eb2ad72a7df2 (diff)
evbp: Initialize gtk to avoid g_thread_init warnings
It was assumed that gtk was already initialized, but there's no harm in initializing it again and avoids the deprecation warnings from g_thread_init.
Diffstat (limited to 'src')
-rw-r--r--src/evbp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/evbp.c b/src/evbp.c
index a1a8dab..933e3e1 100644
--- a/src/evbp.c
+++ b/src/evbp.c
@@ -77,10 +77,8 @@ ev_initialize(void)
} else
g_debug("initializing evince");
- /* Init g_type and g_thread asap */
- g_type_init();
- if (!g_thread_supported())
- g_thread_init(NULL);
+ /* Init gtk asap */
+ gtk_init(NULL, NULL);
/* Initialize evince */
if (!ev_init()) {