Mercurial > pidgin.yaz
changeset 14657:38d1052611bc
[gaim-migrate @ 17403]
I don't think this crashes any more than it did before and it does
now compile with older Gtk versions. Thanks to Sadrul for the patch.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 30 Sep 2006 02:44:03 +0000 |
parents | d1a76ccb93c4 |
children | b7b5ff9c04a1 |
files | gtk/gtkcellrendererexpander.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk/gtkcellrendererexpander.c Sat Sep 30 00:14:00 2006 +0000 +++ b/gtk/gtkcellrendererexpander.c Sat Sep 30 02:44:03 2006 +0000 @@ -28,6 +28,7 @@ * Jonathon Blandford <jrb@redhat.com> for RedHat, Inc. */ +#include <gtk/gtk.h> #include <gtk/gtktreeview.h> #include "gtkcellrendererexpander.h" @@ -245,8 +246,13 @@ width = cell_area->width; height = cell_area->height; +#if GTK_CHECK_VERSION(2,6,0) if (!cell->sensitive) state = GTK_STATE_INSENSITIVE; +#else + if (GTK_WIDGET_STATE(widget) == GTK_STATE_INSENSITIVE) + state = GTK_STATE_INSENSITIVE; +#endif else if (flags & GTK_CELL_RENDERER_PRELIT) state = GTK_STATE_PRELIGHT; else if (GTK_WIDGET_HAS_FOCUS (widget) && flags & GTK_CELL_RENDERER_SELECTED)