aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-25 03:38:42 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-25 03:39:24 +0200
commit19913a5e4880503dd06a73c03584e77d3cf504a0 (patch)
tree13c31a6fbb1af274cbb5e1d3b7eb800a93282cfd
parent1ef0a84bc78db9724aec53eeabc6ce132dc9c7d9 (diff)
downloadfiv-19913a5e4880503dd06a73c03584e77d3cf504a0.tar.gz
fiv-19913a5e4880503dd06a73c03584e77d3cf504a0.tar.xz
fiv-19913a5e4880503dd06a73c03584e77d3cf504a0.zip
Only show X11-specific option when it makes sense
-rw-r--r--fiv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fiv.c b/fiv.c
index bf23a44..29b0377 100644
--- a/fiv.c
+++ b/fiv.c
@@ -604,6 +604,10 @@ show_preferences(GtkWidget *parent)
int row = 0;
gchar **keys = g_settings_schema_list_keys(schema);
for (gchar **p = keys; *p; p++) {
+#ifndef GDK_WINDOWING_X11
+ if (g_str_equal(*p, "native-view-window"))
+ continue;
+#endif
GSettingsSchemaKey *key = g_settings_schema_get_key(schema, *p);
preferences_make_row(grid, &row, settings, key);
g_settings_schema_key_unref(key);