diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2013-02-23 23:34:04 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2013-02-23 23:34:04 -0800 |
commit | 1b5a0d5f475f4ba34c6202ade182ece0aeff5587 (patch) | |
tree | 30f4ac291a36da50dfbd66e068948a3831935691 /src/evbp-viewer.h | |
parent | 2e70862c8257564d7e8d9f9f2b93059cdef4df38 (diff) |
Use the original URI of the file when setting a default for the saved
file. This is an improvement over using the document title or the
temporary file name from the browser. As a bonus, this avoids the
deprecated ev_backends_manager_get_document_type_info API from evince.
Diffstat (limited to 'src/evbp-viewer.h')
-rw-r--r-- | src/evbp-viewer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evbp-viewer.h b/src/evbp-viewer.h index 08b3503..5c7cbeb 100644 --- a/src/evbp-viewer.h +++ b/src/evbp-viewer.h @@ -55,6 +55,8 @@ struct _EvbpViewer { GtkWidget *scroll; GtkWidget *view; + + gchar *orig_uri; }; struct _EvbpViewerClass { @@ -65,6 +67,7 @@ GType evbp_viewer_get_type(void) G_GNUC_CONST; GtkWidget *evbp_viewer_new(void); gboolean evbp_viewer_load_uri(EvbpViewer *viewer, const char *uri, GError **error); +void evbp_viewer_set_original_uri(EvbpViewer *viewer, const gchar *uri); G_END_DECLS |