mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 01:31:13 +00:00
window: Fix compiler warning when not building for X11
The callback function gtk_window_on_theme_variant_changed is only used on the X11 backend (where GtkSettings is used for the settings information.) Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=674207
This commit is contained in:
parent
2145907cfe
commit
fe5146d8f2
@ -422,9 +422,11 @@ static GtkKeyHash *gtk_window_get_key_hash (GtkWindow *window);
|
|||||||
static void gtk_window_free_key_hash (GtkWindow *window);
|
static void gtk_window_free_key_hash (GtkWindow *window);
|
||||||
static void gtk_window_on_composited_changed (GdkScreen *screen,
|
static void gtk_window_on_composited_changed (GdkScreen *screen,
|
||||||
GtkWindow *window);
|
GtkWindow *window);
|
||||||
|
#ifdef GDK_WINDOWING_X11
|
||||||
static void gtk_window_on_theme_variant_changed (GtkSettings *settings,
|
static void gtk_window_on_theme_variant_changed (GtkSettings *settings,
|
||||||
GParamSpec *pspec,
|
GParamSpec *pspec,
|
||||||
GtkWindow *window);
|
GtkWindow *window);
|
||||||
|
#endif
|
||||||
static void gtk_window_set_theme_variant (GtkWindow *window);
|
static void gtk_window_set_theme_variant (GtkWindow *window);
|
||||||
|
|
||||||
static GSList *toplevel_list = NULL;
|
static GSList *toplevel_list = NULL;
|
||||||
@ -8336,6 +8338,7 @@ gtk_window_set_theme_variant (GtkWindow *window)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef GDK_WINDOWING_X11
|
||||||
static void
|
static void
|
||||||
gtk_window_on_theme_variant_changed (GtkSettings *settings,
|
gtk_window_on_theme_variant_changed (GtkSettings *settings,
|
||||||
GParamSpec *pspec,
|
GParamSpec *pspec,
|
||||||
@ -8344,6 +8347,7 @@ gtk_window_on_theme_variant_changed (GtkSettings *settings,
|
|||||||
if (window->priv->type == GTK_WINDOW_TOPLEVEL)
|
if (window->priv->type == GTK_WINDOW_TOPLEVEL)
|
||||||
gtk_window_set_theme_variant (window);
|
gtk_window_set_theme_variant (window);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_window_on_composited_changed (GdkScreen *screen,
|
gtk_window_on_composited_changed (GdkScreen *screen,
|
||||||
|
Loading…
Reference in New Issue
Block a user