[gtk+/gtk-style-context: 342/347] 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: 342/347] GtkWidget: Ensure the style context always has an screen.
- Date: Thu, 11 Nov 2010 01:33:15 +0000 (UTC)
commit 05160ce720c12945ac5b0bcfc4d88e20457a071c
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 76a0b26..2fd6d6c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8489,7 +8489,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]