[gedit] Make sure to install document handler for first document



commit fb238f840c608d8b14be969d07f9f579e458749f
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Mar 28 13:34:07 2010 +0200

    Make sure to install document handler for first document

 plugins/snippets/snippets/WindowHelper.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snippets/snippets/WindowHelper.py b/plugins/snippets/snippets/WindowHelper.py
index 500120d..29bf3a5 100644
--- a/plugins/snippets/snippets/WindowHelper.py
+++ b/plugins/snippets/snippets/WindowHelper.py
@@ -198,6 +198,8 @@ class WindowHelper:
                 if isinstance(view, gedit.View) and not self.has_controller(view):
                         view._snippet_controller = Document(self, view)
 
+                self.update()
+
         def on_action_snippets_activate(self, item):
                 self.plugin.create_configure_dialog()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]