[gnote] Remove boost::format from CreateNotebookDialog
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove boost::format from CreateNotebookDialog
- Date: Fri, 13 Jan 2017 20:54:22 +0000 (UTC)
commit e6d3cbb3595cbbc81731c922c64ac030edcd0c48
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 13 22:11:16 2017 +0200
Remove boost::format from CreateNotebookDialog
src/notebooks/createnotebookdialog.cpp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/notebooks/createnotebookdialog.cpp b/src/notebooks/createnotebookdialog.cpp
index d175de1..5338622 100644
--- a/src/notebooks/createnotebookdialog.cpp
+++ b/src/notebooks/createnotebookdialog.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012-2013 Aurimas Cernius
+ * Copyright (C) 2012-2013,2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -19,8 +19,6 @@
*/
-#include <boost/format.hpp>
-
#include <glibmm/i18n.h>
#include <gtkmm/table.h>
@@ -54,8 +52,8 @@ namespace gnote {
m_errorLabel.property_xalign() = 0;
m_errorLabel.set_markup(
- str(boost::format("<span foreground='red' style='italic'>%1%</span>")
- % _("Name already taken")));
+ Glib::ustring::compose("<span foreground='red' style='italic'>%1</span>",
+ _("Name already taken")));
table->attach (*label, 0, 1, 0, 1);
table->attach (m_nameEntry, 1, 2, 0, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]