mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 10:16:00 +01:00
Make zathura_set_xid always available
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
0b45a313b7
commit
6c7479c35e
3 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue