[gtk+/gtk-style-context: 341/540] 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/540] GtkWidget: Ensure the style context always has an screen.
- Date: Fri, 3 Dec 2010 03:04:48 +0000 (UTC)
commit e6c73be2497f09efa320188fae4d7db0540ee40f
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]