removed gtk_*_store_get, and moved to GtkTreeModel.
Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed gtk_*_store_get, and moved to GtkTreeModel. * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added. * gtk/Makefile.am: remove gtktreemodelmapping.[ch] * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you set the func. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data): freeze/thaw notify between setting all the properties for a cell. * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
This commit is contained in:

committed by
Jonathan Blandford

parent
08add3cd50
commit
b10825d537
@ -821,6 +821,7 @@ gtk_tree_view_size_allocate (GtkWidget *widget,
|
||||
(gfloat) MAX (tree_view->priv->height - allocation->height, 0));
|
||||
|
||||
gtk_signal_emit_by_name (GTK_OBJECT (tree_view->priv->vadjustment), "changed");
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
@ -989,7 +990,8 @@ gtk_tree_view_bin_expose (GtkWidget *widget,
|
||||
gint bin_window_width;
|
||||
GtkTreePath *cursor_path;
|
||||
GtkTreePath *drag_dest_path;
|
||||
|
||||
GList *last_column;
|
||||
|
||||
g_return_val_if_fail (widget != NULL, FALSE);
|
||||
g_return_val_if_fail (GTK_IS_TREE_VIEW (widget), FALSE);
|
||||
|
||||
@ -1043,7 +1045,14 @@ gtk_tree_view_bin_expose (GtkWidget *widget,
|
||||
|
||||
gdk_drawable_get_size (tree_view->priv->bin_window,
|
||||
&bin_window_width, NULL);
|
||||
|
||||
|
||||
for (last_column = g_list_last (tree_view->priv->columns);
|
||||
last_column &&
|
||||
!(GTK_TREE_VIEW_COLUMN (last_column->data)->visible) &&
|
||||
GTK_WIDGET_CAN_FOCUS (GTK_TREE_VIEW_COLUMN (last_column->data)->button);
|
||||
last_column = last_column->prev)
|
||||
;
|
||||
|
||||
/* Actually process the expose event. To do this, we want to
|
||||
* start at the first node of the event, and walk the tree in
|
||||
* order, drawing each successive node.
|
||||
@ -1096,7 +1105,7 @@ gtk_tree_view_bin_expose (GtkWidget *widget,
|
||||
|
||||
background_area.x = cell_offset;
|
||||
background_area.width = TREE_VIEW_COLUMN_WIDTH (column);
|
||||
|
||||
|
||||
cell_area = background_area;
|
||||
cell_area.y += TREE_VIEW_VERTICAL_SEPARATOR / 2;
|
||||
cell_area.height -= TREE_VIEW_VERTICAL_SEPARATOR;
|
||||
|
Reference in New Issue
Block a user