[gedit] Bind gedit_app_show_help and fix python plugins



commit 5f5e34465c74410e501c71fe5a9d46c709f4033d
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Tue May 4 12:43:57 2010 +0200

    Bind gedit_app_show_help and fix python plugins

 plugin-loaders/python/bindings/gedit.defs |   23 ++++++++++-------------
 plugins/externaltools/tools/manager.py    |    2 +-
 plugins/snippets/snippets/Manager.py      |    2 +-
 3 files changed, 12 insertions(+), 15 deletions(-)
---
diff --git a/plugin-loaders/python/bindings/gedit.defs b/plugin-loaders/python/bindings/gedit.defs
index 6e2b6eb..b010b7c 100644
--- a/plugin-loaders/python/bindings/gedit.defs
+++ b/plugin-loaders/python/bindings/gedit.defs
@@ -240,6 +240,16 @@
   (return-type "GeditLockdownMask")
 )
 
+(define-method show_help
+  (of-object "GeditApp")
+  (c-name "gedit_app_show_help")
+  (return-type "gboolean")
+  (parameters
+    '("GtkWindow*" "parent")
+    '("const-gchar*" "name")
+    '("const-gchar*" "link_id")
+  )
+)
 
 ;; From ../../gedit/gedit-document.h
 
@@ -572,19 +582,6 @@
   (return-type "const-GeditEncoding*")
 )
 
-;; From ../../gedit/gedit-help.h
-
-(define-function help_display
-  (c-name "gedit_help_display")
-  (return-type "gboolean")
-  (parameters
-    '("GtkWindow*" "parent")
-    '("const-gchar*" "name")
-    '("const-gchar*" "link_id")
-  )
-)
-
-
 
 ;; From ../../gedit/gedit-panel.h
 
diff --git a/plugins/externaltools/tools/manager.py b/plugins/externaltools/tools/manager.py
index e28a088..014f231 100644
--- a/plugins/externaltools/tools/manager.py
+++ b/plugins/externaltools/tools/manager.py
@@ -818,7 +818,7 @@ class Manager:
 
     def on_tool_manager_dialog_response(self, dialog, response):
         if response == gtk.RESPONSE_HELP:
-            gedit.help_display(self.dialog, 'gedit', 'gedit-external-tools-plugin')
+            gedit.app_get_default().show_help(self.dialog, 'gedit', 'gedit-external-tools-plugin')
             return
 
         self.on_tool_manager_dialog_focus_out(dialog, None)
diff --git a/plugins/snippets/snippets/Manager.py b/plugins/snippets/snippets/Manager.py
index 8c0524c..2015152 100644
--- a/plugins/snippets/snippets/Manager.py
+++ b/plugins/snippets/snippets/Manager.py
@@ -618,7 +618,7 @@ class Manager:
         
         def on_dialog_snippets_response(self, dlg, resp):                                
                 if resp == gtk.RESPONSE_HELP:
-                        gedit.help_display(self.dlg, 'gedit', 'gedit-snippets-plugin')
+                        gedit.app_get_default().show_help(self.dlg, 'gedit', 'gedit-snippets-plugin')
                         return
 
                 self.dlg.destroy()



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