mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 04:56: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"
|
#include "synctex.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GDK_WINDOWING_X11
|
|
||||||
typedef int Window;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Init locale */
|
/* Init locale */
|
||||||
static void
|
static void
|
||||||
init_locale(void)
|
init_locale(void)
|
||||||
|
|
|
@ -448,7 +448,6 @@ zathura_free(zathura_t* zathura)
|
||||||
g_free(zathura);
|
g_free(zathura);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
|
||||||
void
|
void
|
||||||
zathura_set_xid(zathura_t* zathura, Window xid)
|
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;
|
zathura->ui.session->gtk.embed = xid;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
zathura_set_config_dir(zathura_t* zathura, const char* dir)
|
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);
|
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 zathura The zathura session
|
||||||
* @param xid The window id
|
* @param xid The window id
|
||||||
*/
|
*/
|
||||||
void zathura_set_xid(zathura_t* zathura, Window xid);
|
void zathura_set_xid(zathura_t* zathura, Window xid);
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the path to the configuration directory
|
* Set the path to the configuration directory
|
||||||
|
|
Loading…
Reference in a new issue