[gtk+/gtk-style-context: 341/533] GtkWidget: Ensure the style context always has an screen.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 341/533] GtkWidget: Ensure the style context always has an screen.
- Date: Wed, 1 Dec 2010 02:34:28 +0000 (UTC)
commit 757c4d5ba18aaf8e955251fd230ceee77ce5c4b4
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 63d119b..bba2fbf 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8418,7 +8418,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]