[gtk+] GtkSpinButton: Set the screen on the panel contexts
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSpinButton: Set the screen on the panel contexts
- Date: Sat, 25 Oct 2014 17:33:15 +0000 (UTC)
commit 9ca9fccacea34ab93e05ab72c203a2ee89245c3d
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 25 13:31:57 2014 -0400
GtkSpinButton: Set the screen on the panel contexts
Failure to do so results in custom styling leaking through in
the inspector. This is pretty obvious, now that the inspector
is using a separate display connection and is generally isolated
from style changes.
gtk/gtkspinbutton.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 55ae063..5c4d92b 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -906,7 +906,7 @@ gtk_spin_button_panel_get_state (GtkSpinButton *spin_button,
static GtkStyleContext *
gtk_spin_button_panel_get_context (GtkSpinButton *spin_button,
- GdkWindow *panel)
+ GdkWindow *panel)
{
GtkSpinButtonPrivate *priv = spin_button->priv;
GtkStyleContext **contextp;
@@ -921,6 +921,7 @@ gtk_spin_button_panel_get_context (GtkSpinButton *spin_button,
panel == priv->down_panel);
}
+ gtk_style_context_set_screen (*contextp, gtk_widget_get_screen (GTK_WIDGET (spin_button)));
gtk_style_context_set_state (*contextp, gtk_spin_button_panel_get_state (spin_button, panel));
return *contextp;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]