int GTK_system_init(void) { struct stat st; command_symbol_table *gtkcommands = command_symbol_table_new(_("GTK Options"), _("These commands control the GTK interface"), command_symbol_new("GTKDebuggerUpdateRate", _("Set the number of times per second " "that the debugger refreshes in 'Run' mode"), c_STATIC, gtk_debugger_set_update_rate /* action */ , RET_FIRST_ARG, command_arg_new_num (_("rate"), _("update rate in hertz"), NULL /* action */ , ARG_NUM(gtk_run_event_rate), NULL /* next */ ) , command_symbol_new("GTKCommandCentralFont", _("Set the font used for the 'Command Central' window"), c_STATIC, gtk_command_central_set_font /* action */ , RET_FIRST_ARG, command_arg_new_string (_("font"), _("font string in X11 format, i.e., " "'-adobe-utopia-regular-r-normal-*-*-120-*-*-p-*-iso8859-1'"), NULL /* action */ , NEW_ARG_STRBUF(>k_command_central_font), NULL /* next */ ) , NULL /* next */ )), NULL /* sub */ , NULL /* next */ ); #if 0 && defined ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, v9t9_argc, v9t9_argv, GNOME_PARAM_APP_DATADIR, ".", //PACKAGE_DATA_DIR, NULL); // gtk_set_locale(); // gtk_init(&v9t9_argc, &v9t9_argv); /* if (stat(SHAREDIR "/pixmaps", &st) == 0) add_pixmap_directory(SHAREDIR "/pixmaps"); else add_pixmap_directory(TOPSRCDIR "/pixmaps"); */ #if UNDER_WIN32 if (stat(SHAREDIR "/v9t9.win32.gtkrc", &st) == 0) gtk_rc_parse(SHAREDIR "/v9t9.win32.gtkrc"); else gtk_rc_parse(TOPSRCDIR "/v9t9.win32.gtkrc"); #else if (stat(SHAREDIR "/v9t9.gtkrc", &st) == 0) gtk_rc_parse(SHAREDIR "/v9t9.gtkrc"); else gtk_rc_parse(TOPSRCDIR "/v9t9.gtkrc"); #endif command_center = create_command_dialog(); gtk_widget_show(command_center); GTK_get_initial_size(); command_symbol_table_add_subtable(universe, gtkcommands); return 1; }
void command_cb (GtkWidget * widget) { create_command_dialog (); }