[mutter/wip/cb2eb3: 53/55] ui: Make sure to invalidate the style on a retheme/redraw
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/cb2eb3: 53/55] ui: Make sure to invalidate the style on a retheme/redraw
- Date: Wed, 1 Oct 2014 15:51:53 +0000 (UTC)
commit 162013143407f3d1d77d8fd31846808a8acc232d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon May 7 20:21:13 2012 -0300
ui: Make sure to invalidate the style on a retheme/redraw
src/ui/ui.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/ui.c b/src/ui/ui.c
index 86416f0..26c87b7 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -603,7 +603,10 @@ meta_ui_queue_frame_draw (MetaUI *ui,
Window xwindow)
{
MetaUIFrame *frame = meta_ui_lookup_window (ui, xwindow);
- gtk_widget_queue_draw (GTK_WIDGET (frame));
+ GtkWidget *widget = GTK_WIDGET (frame);
+ /* Force a style update. */
+ gtk_style_context_invalidate (gtk_widget_get_style_context (widget));
+ gtk_widget_queue_draw (widget);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]