[glom] Use show_ok_dialog().
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Subject: [glom] Use show_ok_dialog().
- Date: Fri, 10 Jul 2009 11:50:17 +0000 (UTC)
commit ae50e94e7ee68dda9aa3e76606965ce5c174c4e7
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jul 10 13:50:11 2009 +0200
Use show_ok_dialog().
glom/dialog_import_csv.cc | 7 +++----
glom/frame_glom.cc | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/glom/dialog_import_csv.cc b/glom/dialog_import_csv.cc
index 1554f2e..2aabd3a 100644
--- a/glom/dialog_import_csv.cc
+++ b/glom/dialog_import_csv.cc
@@ -25,6 +25,7 @@
#include <gtkmm/messagedialog.h>
#include <gtkmm/cellrenderercombo.h>
+#include <glom/utils_ui.h>
#include <glibmm/i18n.h>
#include <cerrno>
@@ -372,10 +373,8 @@ void Dialog_Import_CSV::clear()
void Dialog_Import_CSV::show_error_dialog(const Glib::ustring& primary, const Glib::ustring& secondary)
{
- Gtk::MessageDialog dialog(*this, primary, false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK);
- dialog.set_title(_("Error Importing CSV File"));
- dialog.set_secondary_text(secondary);
- dialog.run();
+ Utils::show_ok_dialog(_("Error Importing CSV File"),
+ secondary, *this, Gtk::MESSAGE_ERROR);
}
void Dialog_Import_CSV::encoding_data_func(const Gtk::TreeModel::iterator& iter, Gtk::CellRendererText& renderer)
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index dc9b96c..0930010 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -66,7 +66,7 @@
#include <hildonmm/note.h>
#endif
-#include "filechooser_export.h"
+#include <glom/filechooser_export.h>
#include <glom/glom_privs.h>
#include <sstream> //For stringstream.
#include <fstream>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]