]> Pileus Git - ~andy/gtk/commitdiff
Silence more compiler warnings
authorMatthias Clasen <mclasen@redhat.com>
Sun, 30 Jan 2011 06:52:55 +0000 (01:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 30 Jan 2011 06:52:55 +0000 (01:52 -0500)
gtk/tests/treeview-scrolling.c

index 91ed786cb3fb0f6ac555d4988c927d1673a799b3..63bf429fdc99e15e8935fecf5d17fcb8c025f07e 100644 (file)
@@ -778,13 +778,10 @@ test_editable_position (GtkWidget   *tree_view,
 {
         GtkAllocation allocation;
        GdkRectangle rect;
-       GtkAdjustment *vadjustment;
 
        gtk_tree_view_get_background_area (GTK_TREE_VIEW (tree_view),
                                           cursor_path, NULL, &rect);
 
-       vadjustment = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (tree_view));
-
        /* There are all in bin_window coordinates */
         gtk_widget_get_allocation (editable, &allocation);
         g_assert (allocation.y == rect.y + ((rect.height - allocation.height) / 2));