From 6f9fe3b417a3870ce48288f1273843af05d39624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Fri, 13 Nov 2009 06:29:35 +0100 Subject: Use accessor functions instead direct access. Some functions still remaining because there is not API in GTK+ 2.19.0 yet. http://bugzilla.gnome.org/show_bug.cgi?id=586476 Reviewed-By: Danielle Madeley --- libempathy-gtk/empathy-cell-renderer-expander.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk/empathy-cell-renderer-expander.c') diff --git a/libempathy-gtk/empathy-cell-renderer-expander.c b/libempathy-gtk/empathy-cell-renderer-expander.c index 481bb8a49..fb360431f 100644 --- a/libempathy-gtk/empathy-cell-renderer-expander.c +++ b/libempathy-gtk/empathy-cell-renderer-expander.c @@ -354,13 +354,15 @@ invalidate_node (GtkTreeView *tree_view, { GdkWindow *bin_window; GdkRectangle rect; + GtkAllocation allocation; bin_window = gtk_tree_view_get_bin_window (tree_view); gtk_tree_view_get_background_area (tree_view, path, NULL, &rect); rect.x = 0; - rect.width = GTK_WIDGET (tree_view)->allocation.width; + gtk_widget_get_allocation (GTK_WIDGET (tree_view), &allocation); + rect.width = allocation.width; gdk_window_invalidate_rect (bin_window, &rect, TRUE); } -- cgit v1.2.3