void XttTblGtk::valchanged_cmd_input(GtkWidget* w, gpointer data) { XttTbl* xtt = (XttTbl*)data; int sts; char *text, *textutf8; textutf8 = gtk_editable_get_chars(GTK_EDITABLE(w), 0, -1); text = g_convert(textutf8, -1, "ISO8859-1", "UTF-8", NULL, NULL, NULL); g_free(textutf8); sts = xtt->command(text); g_object_set(w, "visible", FALSE, NULL); xtt->set_prompt(""); xtt->command_open = 0; xtt->tblnav->set_inputfocus(); }
int xtttbl_externcmd_func( char *cmd, void *client_data) { XttTbl *xtttbl = (XttTbl *) client_data; return xtttbl->command( cmd); }