Only show X11-specific option when it makes sense

This commit is contained in:
Přemysl Eric Janouch 2023-06-25 03:38:42 +02:00
parent 1ef0a84bc7
commit 19913a5e48
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 4 additions and 0 deletions

4
fiv.c
View File

@ -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);