[gnome-contacts] menu-button: reset styles when adding classes for the active state
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] menu-button: reset styles when adding classes for the active state
- Date: Wed, 24 Aug 2011 21:29:34 +0000 (UTC)
commit eedee765b5fe56138d6c5ac1d59bfc65d57ca565
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Aug 24 17:28:25 2011 -0400
menu-button: reset styles when adding classes for the active state
This ensures the new style classes changes get picked up by the render
operation.
src/contacts-menu-button.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-menu-button.vala b/src/contacts-menu-button.vala
index 9d29808..cf4e401 100644
--- a/src/contacts-menu-button.vala
+++ b/src/contacts-menu-button.vala
@@ -174,6 +174,7 @@ public class Contacts.MenuButton : ToggleButton {
context.add_class (STYLE_CLASS_MENUBAR);
context.add_class (STYLE_CLASS_MENUITEM);
}
+ reset_style ();
base.draw (cr);
context.restore ();
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]