[gtk+] treeview: Fix computing child paths
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+] treeview: Fix computing child paths
- Date: Mon,  1 Oct 2012 09:55:54 +0000 (UTC)
commit f1ad9051bdbe88e3822d758162e760a7d6d970eb
Author: Benjamin Otte <otte redhat com>
Date:   Mon Oct 1 11:48:50 2012 +0200
    treeview: Fix computing child paths
    
    We were adding the GtkButton class twice.
 gtk/gtktreeview.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 8217eb7..0b1599e 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -8548,13 +8548,11 @@ gtk_tree_view_get_path_for_child (GtkContainer *container,
       if (!list->next)
         flags |= GTK_REGION_LAST;
 
-      gtk_widget_path_iter_add_region (path, -1, GTK_STYLE_REGION_COLUMN_HEADER, flags);
+      gtk_widget_path_iter_add_region (path, gtk_widget_path_length (path) - 2, GTK_STYLE_REGION_COLUMN_HEADER, flags);
       break;
     }
   g_list_free (visible_columns);
 
-  gtk_widget_path_append_for_widget (path, child);
-
   return path;
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]