[rhythmbox] cell-renderer-expander: use new :checked state if available
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] cell-renderer-expander: use new :checked state if available
- Date: Sat, 6 Sep 2014 07:11:23 +0000 (UTC)
commit fa1dcf58922143d592336ab46f7761de7ffae359
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Sep 6 17:10:10 2014 +1000
cell-renderer-expander: use new :checked state if available
widgets/gossip-cell-renderer-expander.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/widgets/gossip-cell-renderer-expander.c b/widgets/gossip-cell-renderer-expander.c
index 8424410..d2dbf64 100644
--- a/widgets/gossip-cell-renderer-expander.c
+++ b/widgets/gossip-cell-renderer-expander.c
@@ -284,7 +284,11 @@ gossip_cell_renderer_expander_render (GtkCellRenderer *cell,
if (priv->expander_style == GTK_EXPANDER_COLLAPSED) {
state |= GTK_STATE_FLAG_NORMAL;
} else {
+#if GTK_CHECK_VERSION(3,13,7)
+ state |= GTK_STATE_FLAG_CHECKED;
+#else
state |= GTK_STATE_FLAG_ACTIVE;
+#endif
}
gtk_style_context_set_state (style_context, state);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]