diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2013-02-23 22:20:45 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2013-02-23 22:20:45 -0800 |
commit | 19ff61a9767dd4a0efd14a42dbbb440716003b13 (patch) | |
tree | 63dacf198caed87408aa729999ccdd87b69d3ded /src | |
parent | 7a0be99fb4e69cef35a05beeed02eb2ad72a7df2 (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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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()) { |