[gtk+] GtkWidget: Ensure the style context always has an screen.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkWidget: Ensure the style context always has an screen.
- Date: Sat, 4 Dec 2010 15:11:05 +0000 (UTC)
commit 1cfeeadc704f4644ebb0d95dddc1ee2004b269b3
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 9 18:28:38 2010 +0100
GtkWidget: Ensure the style context always has an screen.
Things like font settings depend on the screen, and widgets
like GtkTextView trigger queries on widgets without screen
when the parent window is being destroyed.
gtk/gtkwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 4111f72..1ceff2d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8388,7 +8388,7 @@ do_screen_change (GtkWidget *widget,
_gtk_tooltip_hide (widget);
context = gtk_widget_get_style_context (widget);
- gtk_style_context_set_screen (context, new_screen);
+ gtk_style_context_set_screen (context, gtk_widget_get_screen (widget));
g_signal_emit (widget, widget_signals[SCREEN_CHANGED], 0, old_screen);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]