Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-06-11 14:15:42 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-06-11 14:15:42 (GMT)
commitcbdeaed3897f8fdd01995a356c1e3a829fffbf7e (patch)
treecdecbff828fe40a30bb201cf6e883f3674b5aafc /shell/ev-window.c
parente1dd38e5d83e54780cdc37a02f2e3e44eee6400a (diff)
Make fonts model fill incrementally.
2005-06-11 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-fonts.c: (ev_document_fonts_fill_model): * backend/ev-document-fonts.h: * pdf/ev-poppler.cc: Make fonts model fill incrementally. * shell/ev-job-queue.c: (handle_job), (search_for_jobs_unlocked), (no_jobs_available_unlocked), (ev_job_queue_init), (find_queue), (ev_job_queue_remove_job): * shell/ev-jobs.c: (ev_job_fonts_init), (ev_job_fonts_class_init), (ev_job_fonts_new), (ev_job_fonts_run): * shell/ev-jobs.h: New job for fonts scanning * shell/ev-properties.c: (job_fonts_finished_cb), (fill_fonts_treeview), (setup_fonts_view), (ev_properties_new): * shell/ev-properties.h: * shell/ev-window.c: (ev_window_cmd_file_properties): Incrementally feel the treeview using the new job. Show Loading... message until scanning is completed. Hopefully I didnt break the build without the poppler patch.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 28921f0..46ae9a2 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1249,16 +1249,9 @@ ev_window_cmd_file_properties (GtkAction *action, EvWindow *ev_window)
EvDocument *document = ev_window->priv->document;
const EvDocumentInfo *info;
GtkDialog *dialog;
- GtkTreeModel *fonts;
-
- if (EV_IS_DOCUMENT_FONTS (document)) {
- fonts = ev_document_fonts_get_fonts_model (EV_DOCUMENT_FONTS (document));
- } else {
- fonts = NULL;
- }
info = ev_page_cache_get_info (ev_window->priv->page_cache);
- dialog = ev_properties_new (info, fonts);
+ dialog = ev_properties_new (document, info);
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (ev_window));
gtk_dialog_run (dialog);
gtk_widget_destroy (GTK_WIDGET (dialog));