1. Daniel Poelzleithner
  2. moo-poelzi

Commits

mun...@localhost.localdomain  committed c558d2e

Release 0.6.95

  • Participants
  • Parent commits 87e4e77
  • Branches default
  • Tags moo-0.6.95

Comments (0)

Files changed (6)

File ChangeLog

View file
+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 ===

File m4/moo-pygtk.m4

View file
             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`
     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")
 ])
 
 
 #
 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])
     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")
 ])

File moo/mooedit/mooedit.c

View file
 
     _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;
 
     }
 
     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);
 }

File moo/moopython/plugins/pystuff.py

View file
         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
 

File moo/moopython/plugins/pytest.py

View file
         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)
         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)

File moo/moopython/pygtk/mooedit-pygtk.defs

View file
   (parent "MooAction")
   (c-name "MooEditAction")
   (gtype-id "MOO_TYPE_EDIT_ACTION")
+  (fields
+    '("MooEdit*" "doc")
+  )
 )