Let plugins deal with console

This commit is contained in:
Yevgen Muntyan 2005-11-07 04:29:07 +00:00
parent 18b7f18333
commit c1be03e867
4 changed files with 6 additions and 46 deletions

View File

@ -1215,32 +1215,6 @@ static void install_actions (MooApp *app, GType type)
"closure::callback", moo_app_about_dialog,
NULL);
#ifdef MOO_USE_PYTHON
moo_window_class_new_action (klass, "PythonMenu",
"name", "Python Menu",
"label", "P_ython",
"visible", TRUE,
"no-accel", TRUE,
NULL);
moo_window_class_new_action (klass, "ExecuteScript",
"name", "Execute Script",
"label", "_Execute Script",
"tooltip", "Execute Script",
"icon-stock-id", GTK_STOCK_EXECUTE,
"closure::callback", moo_app_python_execute_file,
NULL);
moo_window_class_new_action (klass, "ShowPythonConsole",
"name", "Show Python Console",
"label", "Show Python Conso_le",
"tooltip", "Show python console",
"accel", "<alt>L",
"closure::callback", moo_app_show_python_console,
"closure::proxy-func", moo_app_get_instance,
NULL);
#endif /* MOO_USE_PYTHON */
g_type_class_unref (klass);
g_free (about);
g_free (_about);

View File

@ -115,11 +115,11 @@ static GObject *moo_python_console_constructor (GType type,
G_CALLBACK (gtk_widget_hide_on_delete),
NULL);
moo_python_set_log_func (console->python,
(MooPythonLogFunc) write_in,
(MooPythonLogFunc) write_out,
(MooPythonLogFunc) write_err,
console);
// moo_python_set_log_func (console->python,
// (MooPythonLogFunc) write_in,
// (MooPythonLogFunc) write_out,
// (MooPythonLogFunc) write_err,
// console);
g_signal_connect_swapped (console->entry, "activate",
G_CALLBACK (entry_activate),

View File

@ -1061,7 +1061,7 @@ moo_ui_xml_insert_markup_before (MooUIXML *xml,
g_return_if_fail (before != NULL);
}
moo_ui_xml_insert_after (xml, merge_id, parent, before, markup);
moo_ui_xml_insert_before (xml, merge_id, parent, before, markup);
}

View File

@ -56,13 +56,6 @@
<separator/>
</item>
<item name="Python" action="PythonMenu">
<separator/>
<item action="ExecuteScript"/>
<item action="ShowPythonConsole"/>
<separator/>
</item>
<item name="Settings" label="_Settings">
<separator/>
<item action="ShowToolbar"/>
@ -144,13 +137,6 @@
</item>
-->
<item name="Python" action="PythonMenu">
<separator/>
<item action="ExecuteScript"/>
<item action="ShowConsole"/>
<separator/>
</item>
<item name="Settings" label="_Settings">
<separator/>
<item action="ShowToolbar"/>