[gnome-python-desktop] Bug 594334 - Wrap DocumentLinks bit



commit f457c210e940da78381b222f54d086de27e61afb
Author: Sayamindu Dasgupta <sayamindu gmail com>
Date:   Tue Sep 15 15:28:57 2009 +0100

    Bug 594334 - Wrap DocumentLinks bit

 evince/evince.defs     |   51 ++++++++++++++++++++++++++++++++++++++++++++++++
 evince/evince.override |    1 +
 2 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/evince/evince.defs b/evince/evince.defs
index ffa42e5..c2c0eb6 100644
--- a/evince/evince.defs
+++ b/evince/evince.defs
@@ -342,6 +342,31 @@
   (return-type "none")
 )
 
+(define-method handle_link
+  (of-object "EvView")
+  (c-name "ev_view_handle_link")
+  (return-type "none")
+  (parameters
+    '("EvLink*" "link")
+  )
+)
+
+;; From ev-link.h
+
+(define-object Link
+  (in-module "Ev")
+    (c-name "EvLink")
+    (parent "GObject")
+    (gtype-id "EV_TYPE_LINK")
+)
+
+(define-method get_page
+  (of-object "EvLink")
+    (c-name "ev_link_get_page")
+    (return-type "gint")
+)
+
+
 ;; From ev-document.h
 
 (define-interface Document
@@ -437,6 +462,32 @@
 
 ;; XXX missing ev_page_new
 
+;; From ev-document-links.h
+
+(define-interface DocumentLinks
+  (in-module "Ev")
+  (c-name "EvDocumentLinks")
+  (gtype-id "EV_TYPE_DOCUMENT_LINKS")
+  (prerequisite "GObject")
+)
+
+(define-function ev_document_links_get_type
+  (c-name "ev_document_links_get_type")
+  (return-type "GType")
+)
+
+(define-method has_document_links
+  (of-object "EvDocumentLinks")
+  (c-name "ev_document_links_has_document_links")
+  (return-type "gboolean")
+)
+
+(define-method get_links_model
+  (of-object "EvDocumentLinks")
+  (c-name "ev_document_links_get_links_model")
+  (return-type "GtkTreeModel*")
+)
+
 ;; From ev-page-cache.h
 ;; XXX missing lots of methods on PageCache
 
diff --git a/evince/evince.override b/evince/evince.override
index 49b287a..71675af 100644
--- a/evince/evince.override
+++ b/evince/evince.override
@@ -18,6 +18,7 @@ modulename ev
 import gobject.GObject as PyGObject_Type
 import gtk.Widget as PyGtkWidget_Type
 import gtk.ScrolledWindow as PyGtkScrolledWindow_Type
+import gtk.TreeModel as PyGtkTreeModel_Type
 %%
 override ev_view_find_changed kwargs
 /* This function usually takes a GList of search results and hence must be



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