Release 0.6.95

master
Yevgen Muntyan 2006-04-30 01:02:19 -05:00
parent f99f5fcf91
commit bd1eb13637
6 changed files with 56 additions and 19 deletions

View File

@ -1,3 +1,9 @@
2006-04-20 Yevgen Muntyan <muntyan@math.tamu.edu>
* === Released 0.6.95 ===
Greatly improved syntax highlighting, zillion fixes.
2006-04-20 Yevgen Muntyan <muntyan@math.tamu.edu>
* === Released 0.6.9 ===

View File

@ -18,7 +18,6 @@ AC_DEFUN([_MOO_AC_PYGTK_CODEGEN],[
AC_MSG_NOTICE([pygtk < 2.8, using installed codegen])
MOO_USE_CUSTOM_CODEGEN=no
fi
])
PYGTK_CODEGEN_DIR=`$PKG_CONFIG --variable=codegendir pygtk-2.0`
@ -27,8 +26,6 @@ AC_DEFUN([_MOO_AC_PYGTK_CODEGEN],[
if test x$MOO_USE_CUSTOM_CODEGEN != xyes; then
AC_MSG_NOTICE([pygtk codegen dir: $PYGTK_CODEGEN_DIR])
fi
AM_CONDITIONAL(MOO_USE_CUSTOM_CODEGEN, test x$MOO_USE_CUSTOM_CODEGEN = "xyes")
])
@ -136,6 +133,7 @@ AC_DEFUN([_MOO_AC_CHECK_PYGTK_UNIX],[
#
AC_DEFUN([MOO_AC_CHECK_PYGTK],[
AC_REQUIRE([MOO_AC_CHECK_OS])
if test x$MOO_OS_CYGWIN != xyes; then
if test x$MOO_OS_MINGW = xyes; then
_MOO_AC_CHECK_PYGTK_MINGW([$1],[$2],[$3])
@ -225,4 +223,6 @@ AC_DEFUN([MOO_AC_PYGTK],[
if test x$MOO_USE_PYGTK = "xyes"; then
AC_DEFINE(MOO_USE_PYGTK, 1, [MOO_USE_PYGTK])
fi
AM_CONDITIONAL(MOO_USE_CUSTOM_CODEGEN, test x$MOO_USE_CUSTOM_CODEGEN = "xyes")
])

View File

@ -323,13 +323,20 @@ moo_edit_dispose (GObject *object)
_moo_edit_instances = g_slist_remove (_moo_edit_instances, edit);
g_signal_handlers_disconnect_by_func (edit->config,
(gpointer) config_changed,
edit);
g_object_unref (edit->config);
if (edit->config)
{
g_signal_handlers_disconnect_by_func (edit->config,
(gpointer) config_changed,
edit);
g_object_unref (edit->config);
edit->config = NULL;
}
if (edit->priv->apply_config_idle)
{
g_source_remove (edit->priv->apply_config_idle);
edit->priv->apply_config_idle = 0;
}
edit->priv->focus_in_handler_id = 0;
@ -340,18 +347,30 @@ moo_edit_dispose (GObject *object)
}
if (edit->priv->update_bookmarks_idle)
{
g_source_remove (edit->priv->update_bookmarks_idle);
edit->priv->update_bookmarks_idle = 0;
g_slist_foreach (edit->priv->bookmarks, (GFunc) disconnect_bookmark, NULL);
g_slist_foreach (edit->priv->bookmarks, (GFunc) g_object_unref, NULL);
g_slist_free (edit->priv->bookmarks);
edit->priv->bookmarks = NULL;
edit->priv->update_bookmarks_idle = 0;
}
if (edit->priv->bookmarks)
{
g_slist_foreach (edit->priv->bookmarks, (GFunc) disconnect_bookmark, NULL);
g_slist_foreach (edit->priv->bookmarks, (GFunc) g_object_unref, NULL);
g_slist_free (edit->priv->bookmarks);
edit->priv->bookmarks = NULL;
}
if (edit->priv->menu)
{
g_object_unref (edit->priv->menu);
edit->priv->menu = NULL;
g_object_unref (edit->priv->actions);
edit->priv->actions = NULL;
edit->priv->menu = NULL;
}
if (edit->priv->actions)
{
g_object_unref (edit->priv->actions);
edit->priv->actions = NULL;
}
G_OBJECT_CLASS (moo_edit_parent_class)->dispose (object);
}

View File

@ -125,8 +125,8 @@ class Plugin(moo.edit.Plugin):
editor.set_active_doc(doc)
doc.grab_focus()
if data.line >= 0:
doc.move_cursor(data.line, -1, True)
if data.line > 0:
doc.move_cursor(data.line - 1, -1, True)
return True

View File

@ -13,6 +13,9 @@ class Action(moo.edit.Action):
print "check_state"
return True
def do_activate(self):
print "activate: doc is", self.doc
class Plugin(moo.edit.Plugin):
def __init__(self):
moo.edit.Plugin.__init__(self)
@ -36,10 +39,16 @@ class Plugin(moo.edit.Plugin):
print '__init__ done'
def attach_doc(self, doc, window):
print Plugin, "attaching to", doc
print "attaching to", doc
def detach_doc(self, doc, window):
print Plugin, "detaching from", doc
print "detaching from", doc
def attach_win(self, window):
print "attaching to", window
def detach_win(self, window):
print "detaching from", window
gobject.type_register(Action)
moo.edit.plugin_register(Plugin)

View File

@ -87,6 +87,9 @@
(parent "MooAction")
(c-name "MooEditAction")
(gtype-id "MOO_TYPE_EDIT_ACTION")
(fields
'("MooEdit*" "doc")
)
)