/* Unselect the given node and its subnodes and emit the appropriate signal(s). */ int clip_GTK_CTREEUNSELECTRECURSIVE(ClipMachine * cm) { C_widget *cctree = _fetch_cw_arg(cm); C_object *cnode = _fetch_cobject(cm,_clip_spar(cm,2)); CHECKCWID(cctree,GTK_IS_CTREE); CHECKOPT2(2,MAP_t,NUMERIC_t); CHECKCOBJOPT(cnode,cnode->type==GTK_TYPE_CTREE_NODE); gtk_ctree_unselect_recursive(GTK_CTREE(cctree->widget), GTK_CTREE_NODE(cnode->object)); return 0; err: return 1; }
void source_ctree_select_source (struct master *m) { GtkCTreeNode *node; GtkVisibility vis; node = gtk_ctree_find_by_row_data (GTK_CTREE (source_ctree), NULL, m); gtk_ctree_unselect_recursive (GTK_CTREE (source_ctree), NULL); gtk_ctree_select (GTK_CTREE (source_ctree), node); vis = gtk_ctree_node_is_visible (GTK_CTREE (source_ctree), node); if (vis != GTK_VISIBILITY_FULL) gtk_ctree_node_moveto (GTK_CTREE (source_ctree), node, 0, 0.2, 0.0); }