[evince] libview: Add ev_job_links_get_model()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: Add ev_job_links_get_model()
- Date: Thu, 6 Sep 2012 15:25:29 +0000 (UTC)
commit ae8de5a09f2fedd9ec0f035ecc310672ca06c916
Author: Gonzalo Odiard <godiard gmail com>
Date: Thu Sep 6 10:20:38 2012 -0300
libview: Add ev_job_links_get_model()
Introspection can't access job->model, because does not have
the information about when will be released.
Signed-off-by: Gonzalo Odiard <gonzalo laptop org>
https://bugzilla.gnome.org/show_bug.cgi?id=682882
libview/ev-jobs.c | 14 ++++++++++++++
libview/ev-jobs.h | 1 +
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index 2fe62e1..7a41be9 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -411,6 +411,20 @@ ev_job_links_new (EvDocument *document)
return job;
}
+/**
+ * ev_job_links_get_model:
+ * @job: #EvJobLinks
+ *
+ * Get a #GtkTreeModel loaded with the links
+ *
+ * Return value: (transfer none): The #GtkTreeModel loaded
+ */
+GtkTreeModel *
+ev_job_links_get_model (EvJobLinks *job)
+{
+ return job->model;
+}
+
/* EvJobAttachments */
static void
ev_job_attachments_init (EvJobAttachments *job)
diff --git a/libview/ev-jobs.h b/libview/ev-jobs.h
index f0d2528..f08d0fc 100644
--- a/libview/ev-jobs.h
+++ b/libview/ev-jobs.h
@@ -461,6 +461,7 @@ void ev_job_set_run_mode (EvJob *job,
/* EvJobLinks */
GType ev_job_links_get_type (void) G_GNUC_CONST;
EvJob *ev_job_links_new (EvDocument *document);
+GtkTreeModel *ev_job_links_get_model (EvJobLinks *job);
/* EvJobAttachments */
GType ev_job_attachments_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]