[gnote] Replace std::string by Glib::ustring in PropertyEditor
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace std::string by Glib::ustring in PropertyEditor
- Date: Fri, 27 Jan 2017 21:17:26 +0000 (UTC)
commit 78f86f9186697394f23f5d8259a1cc70a6e14f9c
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 27 22:30:24 2017 +0200
Replace std::string by Glib::ustring in PropertyEditor
src/sharp/propertyeditor.cpp | 4 ++--
src/sharp/propertyeditor.hpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/sharp/propertyeditor.cpp b/src/sharp/propertyeditor.cpp
index b9005e3..3c720fd 100644
--- a/src/sharp/propertyeditor.cpp
+++ b/src/sharp/propertyeditor.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2011 Aurimas Cernius
+ * Copyright (C) 2011,2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -67,7 +67,7 @@ namespace sharp {
void PropertyEditor::on_changed()
{
- std::string txt = static_cast<Gtk::Entry &>(m_widget).get_text();
+ Glib::ustring txt = static_cast<Gtk::Entry &>(m_widget).get_text();
m_settings->set_string(m_key, txt);
}
diff --git a/src/sharp/propertyeditor.hpp b/src/sharp/propertyeditor.hpp
index 5745797..68563f8 100644
--- a/src/sharp/propertyeditor.hpp
+++ b/src/sharp/propertyeditor.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2011,2013 Aurimas Cernius
+ * Copyright (C) 2011,2013,2017 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -49,7 +49,7 @@ namespace sharp {
protected:
PropertyEditorBase(Glib::RefPtr<Gio::Settings> & settings, const char *key, Gtk::Widget &w);
- std::string m_key;
+ Glib::ustring m_key;
Gtk::Widget &m_widget;
sigc::connection m_connection;
Glib::RefPtr<Gio::Settings> m_settings;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]