static int pwd (int argc,char **argv, void *data) { Node *pos = (Node *) data; cli_outfun (path_strip (node2path (pos))); cli_outfun ("\n"); return (int) pos; }
//-------------------------------------------------------------------------------- void DbMySQLTableEditorFKPage::cell_editing_done(GtkCellEditable* ce, gpointer udata) { DbMySQLTableEditorFKPage* self = reinterpret_cast<DbMySQLTableEditorFKPage*>(udata); if ( self->_ce && self->_edit_conn ) { g_signal_handler_disconnect(self->_ce, self->_edit_conn); self->_ce = 0; self->_edit_conn = 0; } if ( self->_fk_node.back() == self->_be->get_fks()->real_count() - 1 ) { self->refresh(); self->_fk_tv->set_cursor(node2path(self->_fk_node)); } }
Node *cli (Node *pos) { char commandline[4096]; fprintf (stderr, "Welcome to %s %s\ntype ? or help for more information\n", PACKAGE, VERSION); do { fflush (stdout); fprintf (stdout, "%s>", path_strip (node2path (pos))); fflush (stdout); fgets (commandline, 4096, stdin); commandline[strlen (commandline) - 1] = 0; pos = (Node *) cli_docmd (commandline, pos); } while (!quit_hnb); return pos; }