Reduce another #ifdef

This commit is contained in:
Sebastian Ramacher 2016-02-26 19:01:14 +01:00
parent 6c7479c35e
commit 898d348770

View file

@ -95,9 +95,7 @@ init_zathura(const char* config_dir, const char* data_dir,
return NULL;
}
#ifdef GDK_WINDOWING_X11
zathura_set_xid(zathura, embed);
#endif
zathura_set_config_dir(zathura, config_dir);
zathura_set_data_dir(zathura, data_dir);
zathura_set_cache_dir(zathura, cache_dir);
@ -144,9 +142,7 @@ main(int argc, char* argv[])
Window embed = 0;
GOptionEntry entries[] = {
#ifdef GDK_WINDOWING_X11
{ "reparent", 'e', 0, G_OPTION_ARG_INT, &embed, _("Reparents to window specified by xid"), "xid" },
#endif
{ "reparent", 'e', 0, G_OPTION_ARG_INT, &embed, _("Reparents to window specified by xid (X11 only)"), "xid" },
{ "config-dir", 'c', 0, G_OPTION_ARG_FILENAME, &config_dir, _("Path to the config directory"), "path" },
{ "data-dir", 'd', 0, G_OPTION_ARG_FILENAME, &data_dir, _("Path to the data directory"), "path" },
{ "cache-dir", '\0', 0, G_OPTION_ARG_FILENAME, &cache_dir, _("Path to the cache directory"), "path"},