/pidgin/main: d5c90412b85e: Fix backwards-compatibility for GtkC...
Elliott Sales de Andrade <[email protected]> Tue, 06 Sep 2016 15:45:52 -0400
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: d5c90412b85e795b7db26824ab178a675d724e0d Author: Elliott Sales de Andrade <[email protected]> Date: 2016-09-05 03:17 -0400 Branch: default URL: https://hg.pidgin.im/pidgin/main/rev/d5c90412b85e Description: Fix backwards-compatibility for GtkCellRendererExpander. diffstat: pidgin/gtkcellrendererexpander.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diffs (21 lines): diff --git a/pidgin/gtkcellrendererexpander.c b/pidgin/gtkcellrendererexpander.c --- a/pidgin/gtkcellrendererexpander.c +++ b/pidgin/gtkcellrendererexpander.c @@ -268,10 +268,17 @@ pidgin_cell_renderer_expander_render(Gtk width -= xpad*2; height -= ypad*2; +#if GTK_CHECK_VERSION(3,14,0) if (is_expanded) state |= GTK_STATE_FLAG_CHECKED; else state &= ~GTK_STATE_FLAG_CHECKED; +#else + if (is_expanded) + state |= GTK_STATE_FLAG_ACTIVE; + else + state &= ~GTK_STATE_FLAG_ACTIVE; +#endif context = gtk_widget_get_style_context(widget); gtk_style_context_add_class(context, GTK_STYLE_CLASS_VIEW); _______________________________________________ Commits mailing list [email protected] https://pidgin.im/cgi-bin/mailman/listinfo/commits