[glom/glom-1-32] DialogImage*Progress: Use correct MessageDialog constructor parameters



commit 87a50c15f6d6a7e151d3e33e54bffce338a7ffc0
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 28 14:57:53 2019 +0100

    DialogImage*Progress: Use correct MessageDialog constructor parameters
    
    Noticed by g++:
    
    glom/utility_widgets/dialog_image_load_progress.cc:160:127: warning: enum constant in boolean context 
[-Wint-in-bool-context]
      160 |   Gtk::MessageDialog dialog(*this, Glib::ustring::compose(_("Error loading %1"), 
m_file->get_parse_name()), Gtk::MESSAGE_ERROR);

 glom/utility_widgets/dialog_image_load_progress.cc | 2 +-
 glom/utility_widgets/dialog_image_save_progress.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/utility_widgets/dialog_image_load_progress.cc 
b/glom/utility_widgets/dialog_image_load_progress.cc
index ea7747f4..6d2e45fe 100644
--- a/glom/utility_widgets/dialog_image_load_progress.cc
+++ b/glom/utility_widgets/dialog_image_load_progress.cc
@@ -157,7 +157,7 @@ void DialogImageLoadProgress::on_read_next(unsigned int at)
 
 void DialogImageLoadProgress::error(const Glib::ustring& error_message)
 {
-  Gtk::MessageDialog dialog(*this, Glib::ustring::compose(_("Error loading %1"), m_file->get_parse_name()), 
Gtk::MESSAGE_ERROR);
+  Gtk::MessageDialog dialog(*this, Glib::ustring::compose(_("Error loading %1"), m_file->get_parse_name()), 
false, Gtk::MESSAGE_ERROR);
   dialog.set_title(_("Error loading image"));
   dialog.set_secondary_text(error_message);
 
diff --git a/glom/utility_widgets/dialog_image_save_progress.cc 
b/glom/utility_widgets/dialog_image_save_progress.cc
index b4a5a701..4a750eb7 100644
--- a/glom/utility_widgets/dialog_image_save_progress.cc
+++ b/glom/utility_widgets/dialog_image_save_progress.cc
@@ -130,7 +130,7 @@ void DialogImageSaveProgress::on_stream_write(const Glib::RefPtr<Gio::AsyncResul
 
 void DialogImageSaveProgress::error(const Glib::ustring& error_message)
 {
-  Gtk::MessageDialog dialog(*this, _("Error Saving"), Gtk::MESSAGE_ERROR);
+  Gtk::MessageDialog dialog(*this, _("Error Saving"), false, Gtk::MESSAGE_ERROR);
   dialog.set_title(_("Error saving image"));
   dialog.set_secondary_text(error_message);
 


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