• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libsmbclient/

Lines Matching refs:tree

4    SMB client GTK+ tree-based application
24 /* example-gtk+ application, ripped off from the gtk+ tree.c sample */
35 guint32 type; /* Type of tree item, an SMBC_TYPE */
70 * We walk back up the tree, picking up pieces until we hit a server or
83 /* Walk back up the tree, getting the private data */
158 g_print ("select_child called for root tree %p, subtree %p, child %p\n",
311 g_print ("unselect_child called for root tree %p, subtree %p, child %p\n",
332 /* Get the level of the tree which the item is in */
408 /* Add it to the parent tree */
458 static void cb_selection_changed( GtkWidget *tree )
462 g_print ("selection_change called for tree %p\n", tree);
465 i = GTK_TREE_SELECTION(tree);
614 GtkWidget *window, *scrolled_win, *scrolled_win2, *tree;
680 /* Create the root tree */
681 tree = gtk_tree_new();
682 g_print ("root tree is %p\n", tree);
684 gtk_signal_connect (GTK_OBJECT(tree), "select_child",
685 GTK_SIGNAL_FUNC(cb_select_child), tree);
686 gtk_signal_connect (GTK_OBJECT(tree), "unselect_child",
687 GTK_SIGNAL_FUNC(cb_unselect_child), tree);
688 gtk_signal_connect (GTK_OBJECT(tree), "selection_changed",
689 GTK_SIGNAL_FUNC(cb_selection_changed), tree);
692 tree);
694 gtk_tree_set_selection_mode (GTK_TREE(tree),
697 gtk_widget_show (tree);
718 /* Create a tree item for Whole Network */
732 /* Add it to the parent tree */
733 gtk_tree_append (GTK_TREE(tree), item);
742 GTK_SIGNAL_FUNC(cb_select_child), tree);
744 GTK_SIGNAL_FUNC(cb_unselect_child), tree);
746 /* Now, get the items in smb:/// and add them to the tree */
764 while (err > 0) { /* Extract each entry and make a sub-tree */
782 /* Add it to the parent tree */
783 gtk_tree_append (GTK_TREE(tree), item);
796 GTK_SIGNAL_FUNC(cb_select_child), tree);
798 GTK_SIGNAL_FUNC(cb_unselect_child), tree);