Commit 6c7479c3 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Make zathura_set_xid always available

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 0b45a313
......@@ -18,10 +18,6 @@
#include "synctex.h"
#endif
#ifndef GDK_WINDOWING_X11
typedef int Window;
#endif
/* Init locale */
static void
init_locale(void)
......
......@@ -448,7 +448,6 @@ zathura_free(zathura_t* zathura)
g_free(zathura);
}
#ifdef GDK_WINDOWING_X11
void
zathura_set_xid(zathura_t* zathura, Window xid)
{
......@@ -456,7 +455,6 @@ zathura_set_xid(zathura_t* zathura, Window xid)
zathura->ui.session->gtk.embed = xid;
}
#endif
void
zathura_set_config_dir(zathura_t* zathura, const char* dir)
......
......@@ -238,15 +238,14 @@ bool zathura_init(zathura_t* zathura);
*/
void zathura_free(zathura_t* zathura);
#ifdef GDK_WINDOWING_X11
/**
* Set parent window id
* Set parent window id. This does not have an effect if the underlying Gtk
* backend is not X11.
*
* @param zathura The zathura session
* @param xid The window id
*/
void zathura_set_xid(zathura_t* zathura, Window xid);
#endif
/**
* Set the path to the configuration directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment