[gnote] Replace std::string by Glib::ustring in CreateNotebookDialog
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace std::string by Glib::ustring in CreateNotebookDialog
- Date: Fri, 17 Feb 2017 20:53:17 +0000 (UTC)
commit 9b29dd0957060073b3ff2fcf724eb0efc740ca58
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Feb 17 21:16:21 2017 +0200
Replace std::string by Glib::ustring in CreateNotebookDialog
src/notebooks/createnotebookdialog.cpp | 4 ++--
src/notebooks/createnotebookdialog.hpp | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/notebooks/createnotebookdialog.cpp b/src/notebooks/createnotebookdialog.cpp
index 5338622..511038b 100644
--- a/src/notebooks/createnotebookdialog.cpp
+++ b/src/notebooks/createnotebookdialog.cpp
@@ -76,13 +76,13 @@ namespace gnote {
}
- std::string CreateNotebookDialog::get_notebook_name()
+ Glib::ustring CreateNotebookDialog::get_notebook_name()
{
return sharp::string_trim(m_nameEntry.get_text());
}
- void CreateNotebookDialog::set_notebook_name(const std::string & value)
+ void CreateNotebookDialog::set_notebook_name(const Glib::ustring & value)
{
m_nameEntry.set_text(sharp::string_trim(value));
}
diff --git a/src/notebooks/createnotebookdialog.hpp b/src/notebooks/createnotebookdialog.hpp
index 3cb8dd2..b0e6208 100644
--- a/src/notebooks/createnotebookdialog.hpp
+++ b/src/notebooks/createnotebookdialog.hpp
@@ -1,6 +1,7 @@
/*
* gnote
*
+ * Copyright (C) 2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -39,8 +40,8 @@ class CreateNotebookDialog
public:
CreateNotebookDialog(Gtk::Window *parent, GtkDialogFlags f);
- std::string get_notebook_name();
- void set_notebook_name(const std::string &);
+ Glib::ustring get_notebook_name();
+ void set_notebook_name(const Glib::ustring &);
private:
void on_name_entry_changed();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]