summaryrefslogtreecommitdiff
path: root/gtk/gtktreeitem.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1999-02-19 18:07:29 +0000
committerTim Janik <timj@src.gnome.org>1999-02-19 18:07:29 +0000
commit03d9f983de39bb9992cc7e12b46bdda046069487 (patch)
tree83387153e87c7b80164928aff6adb95815863a13 /gtk/gtktreeitem.c
parentb60c8a83d7542643ce23fc4815bc6160374160e4 (diff)
downloadgdk-pixbuf-03d9f983de39bb9992cc7e12b46bdda046069487.tar.gz
grouped function names into application-level, widget-level and
Fri Feb 19 17:52:28 1999 Tim Janik <timj@gtk.org> * gtk/gtksignal.h: grouped function names into application-level, widget-level and non-public. * gtk/gtktreeitem.c (gtk_tree_item_size_request): use auto pix_requisition instead of item->pixmaps_box->requisition.
Diffstat (limited to 'gtk/gtktreeitem.c')
-rw-r--r--gtk/gtktreeitem.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/gtktreeitem.c b/gtk/gtktreeitem.c
index 72ad78aee..7b86a1bdf 100644
--- a/gtk/gtktreeitem.c
+++ b/gtk/gtktreeitem.c
@@ -500,17 +500,19 @@ gtk_tree_item_size_request (GtkWidget *widget,
if (bin->child && GTK_WIDGET_VISIBLE (bin->child))
{
+ GtkRequisition pix_requisition;
+
gtk_widget_size_request (bin->child, &child_requisition);
requisition->width += child_requisition.width;
gtk_widget_size_request (item->pixmaps_box,
- &item->pixmaps_box->requisition);
- requisition->width += item->pixmaps_box->requisition.width + DEFAULT_DELTA +
- GTK_TREE(widget->parent)->current_indent;
+ &pix_requisition);
+ requisition->width += pix_requisition.width + DEFAULT_DELTA +
+ GTK_TREE (widget->parent)->current_indent;
requisition->height += MAX (child_requisition.height,
- item->pixmaps_box->requisition.height);
+ pix_requisition.height);
}
}