Lines Matching refs:item
33 guint32 type; /* Type of tree item, an SMBC_TYPE */
73 char *get_path(GtkWidget *item)
75 GtkWidget *p = item;
82 level = GTK_TREE(item->parent)->level;
84 /* Pick up this item's component info */
86 pd = (struct tree_data *)gtk_object_get_user_data(GTK_OBJECT(item));
100 level = GTK_TREE(item->parent)->level;
144 /* Note that this is called every time the user clicks on an item,
312 static void cb_itemsignal( GtkWidget *item,
322 label = GTK_LABEL (GTK_BIN (item)->child);
326 level = GTK_TREE(item->parent)->level;
328 /* Get the level of the tree which the item is in */
329 g_print ("%s called for item %s->%p, level %d\n", signame, name,
330 item, GTK_TREE (item->parent)->level);
332 real_tree = GTK_TREE_ITEM_SUBTREE(item); /* Get the subtree */
337 if ((dh = smbc_opendir(get_path(item))) < 0) { /* Handle error */
340 g_print("cb_itemsignal: Could not open dir %s, %s\n", get_path(item),
343 slprintf(errmsg, sizeof(errmsg), "cb_itemsignal: Could not open dir %s, %s\n", get_path(item), strerror(errno));
443 gtk_tree_item_set_subtree(GTK_TREE_ITEM(item), subtree);
465 GtkWidget *item;
468 item = GTK_WIDGET (i->data);
469 label = GTK_LABEL (GTK_BIN (item)->child);
472 (item->parent)->level);
480 static void cb_wholenet(GtkWidget *item, gchar *signame)
489 label = GTK_LABEL (GTK_BIN (item)->child);
491 g_print ("%s called for item %s->%p, level %d\n", signame, name,
492 item, GTK_TREE (item->parent)->level);
494 real_tree = GTK_TREE_ITEM_SUBTREE(item); /* Get the subtree */
578 gtk_tree_item_set_subtree(GTK_TREE_ITEM(item), subtree);
611 GtkWidget *subtree, *item, *main_hbox, *r_pane, *l_pane;
714 /* Create a tree item for Whole Network */
716 item = gtk_tree_item_new_with_label ("Whole Network");
718 gtk_signal_connect (GTK_OBJECT(item), "select",
720 gtk_signal_connect (GTK_OBJECT(item), "deselect",
722 gtk_signal_connect (GTK_OBJECT(item), "toggle",
724 gtk_signal_connect (GTK_OBJECT(item), "expand",
726 gtk_signal_connect (GTK_OBJECT(item), "collapse",
729 gtk_tree_append (GTK_TREE(tree), item);
731 gtk_widget_show (item);
735 gtk_tree_item_set_subtree(GTK_TREE_ITEM(item), subtree);
766 item = gtk_tree_item_new_with_label(dirp->name);
768 gtk_signal_connect (GTK_OBJECT(item), "select",
770 gtk_signal_connect (GTK_OBJECT(item), "deselect",
772 gtk_signal_connect (GTK_OBJECT(item), "toggle",
774 gtk_signal_connect (GTK_OBJECT(item), "expand",
776 gtk_signal_connect (GTK_OBJECT(item), "collapse",
779 gtk_tree_append (GTK_TREE(tree), item);
781 gtk_widget_show (item);
783 gtk_object_set_user_data(GTK_OBJECT(item), (gpointer)my_data);
789 gtk_tree_item_set_subtree(GTK_TREE_ITEM(item), subtree);