[glom] Fix the build with --enable-warnings=fatal.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Fix the build with --enable-warnings=fatal.
- Date: Mon, 11 Mar 2013 11:43:30 +0000 (UTC)
commit 3cc786196797904e8263b773085c502861b26369
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Mar 11 12:32:44 2013 +0100
Fix the build with --enable-warnings=fatal.
* glom/utility_widgets/imageglom.cc: Do not use
ev_view_set_loading() because it is deprecated with
no replacement. See bug evince bug #693864 .
ChangeLog | 8 ++++++++
glom/utility_widgets/imageglom.cc | 13 ++++++++-----
2 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ec0a5c7..f466cbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2013-03-11 Murray Cumming <murrayc murrayc com>
+
+ Fix the build with --enable-warnings=fatal.
+
+ * glom/utility_widgets/imageglom.cc: Do not use
+ ev_view_set_loading() because it is deprecated with
+ no replacement. See bug evince bug #693864 .
+
2013-02-25 Murray Cumming <murrayc murrayc com>
Fix the build on Ubuntu Raring.
diff --git a/glom/utility_widgets/imageglom.cc b/glom/utility_widgets/imageglom.cc
index 44beacb..3fc2a2e 100644
--- a/glom/utility_widgets/imageglom.cc
+++ b/glom/utility_widgets/imageglom.cc
@@ -230,7 +230,8 @@ void ImageGlom::on_ev_job_finished(EvJob* job)
ev_document_model_set_page(m_ev_document_model, 1);
g_object_unref (job);
- ev_view_set_loading(m_ev_view, FALSE);
+ //TODO: Show that we are no longer loading.
+ //ev_view_set_loading(m_ev_view, FALSE);
}
const GdaBinary* ImageGlom::get_binary() const
@@ -382,12 +383,14 @@ void ImageGlom::show_image_data()
m_ev_document_model = ev_document_model_new();
ev_view_set_model(m_ev_view, m_ev_document_model);
- ev_document_model_set_continuous(m_ev_document_model, FALSE); //Show only one page.
- ev_view_set_loading(m_ev_view, TRUE);
+ ev_document_model_set_continuous(m_ev_document_model, FALSE); //Show only one page.
+
+ //TODO: Show that we are loading.
+ //ev_view_set_loading(m_ev_view, TRUE);
g_signal_connect (job, "finished",
- G_CALLBACK (image_glom_ev_job_finished), this);
- ev_job_scheduler_push_job (job, EV_JOB_PRIORITY_NONE);
+ G_CALLBACK (image_glom_ev_job_finished), this);
+ ev_job_scheduler_push_job (job, EV_JOB_PRIORITY_NONE);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]