[mutter] theme: Reset button style state when done drawing
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] theme: Reset button style state when done drawing
- Date: Fri, 16 Oct 2015 02:18:45 +0000 (UTC)
commit 72be89dfb92711a39ecb6cb2799fde06bf31c339
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Oct 16 03:21:14 2015 +0200
theme: Reset button style state when done drawing
We use a single style context to draw titlebar buttons, updating
its state according to each button's prelight state as necessary.
This assumes that the original state is neither ACTIVE nor PRELIGHT,
which means we need to reset the state after drawing to avoid
propagating the state of the last-drawn button.
src/ui/theme.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index b4f1b03..d86c251 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -890,6 +890,7 @@ meta_frame_layout_draw_with_style (MetaFrameLayout *layout,
cairo_restore (cr);
if (button_class)
gtk_style_context_remove_class (style, button_class);
+ gtk_style_context_set_state (style, state);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]