[gnote] Remove boost::format from NotebookNewNoteMenuItem
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove boost::format from NotebookNewNoteMenuItem
- Date: Fri, 13 Jan 2017 20:54:27 +0000 (UTC)
commit d487845492d709ac28009ad71d224564ba03a432
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 13 22:13:53 2017 +0200
Remove boost::format from NotebookNewNoteMenuItem
src/notebooks/notebooknewnotemenuitem.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/notebooks/notebooknewnotemenuitem.cpp b/src/notebooks/notebooknewnotemenuitem.cpp
index 0ebd31f..5dd9ce9 100644
--- a/src/notebooks/notebooknewnotemenuitem.cpp
+++ b/src/notebooks/notebooknewnotemenuitem.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010,2012-2013 Aurimas Cernius
+ * Copyright (C) 2010,2012-2013,2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -20,7 +20,6 @@
-#include <boost/format.hpp>
#include <glibmm/i18n.h>
#include <gtkmm/image.h>
@@ -38,7 +37,7 @@ namespace gnote {
NotebookNewNoteMenuItem::NotebookNewNoteMenuItem(const Notebook::Ptr & notebook)
// TRANSLATORS: %1%: boost format placeholder for the notebook name
- : Gtk::ImageMenuItem(str(boost::format(_("New \"%1%\" Note")) % notebook->get_name()))
+ : Gtk::ImageMenuItem(Glib::ustring::compose(_("New \"%1\" Note"), notebook->get_name()))
, m_notebook(notebook)
{
set_image(*manage(new Gtk::Image(IconManager::obj().get_icon(IconManager::NOTE_NEW, 16))));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]