freebsd-ports/net/linneighborhood/files/patch-gtk_tree.c
Tilman Keskinoz 5bb835f439 Add LinNeighborhood, a GTK SMB LANbrowser
PR:		50953
Submitted by:	Heiner Eichmann <h.eichmann@gmx.de>
2003-04-16 11:44:55 +00:00

19 lines
531 B
C

--- src/gtk_tree.c.orig Wed Apr 9 20:32:53 2003
+++ src/gtk_tree.c Wed Apr 9 20:48:24 2003
@@ -2011,7 +2011,7 @@
if ( GTK_IS_TREE_ITEM(item) )
{
box = GTK_BIN(item)->child;
-
+ if (!box) return itemtype;
step_list = GTK_BOX(box)->children->next; /* type entry */
child = step_list->data;
label = GTK_LABEL(child->widget);
@@ -2033,7 +2033,6 @@
static unsigned int tree_item_count (GtkTreeItem *item)
{
unsigned int ireturn;
-
if ( item != NULL )
{
if ( item->subtree )