[gnote] Remove Glib deprecations from print notes
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove Glib deprecations from print notes
- Date: Mon, 3 May 2021 20:11:48 +0000 (UTC)
commit 9f1c05561943020e25d0fe57e9aaf4fbf0bb7d43
Author: Aurimas Černius <aurisc4 gmail com>
Date: Mon May 3 23:10:10 2021 +0300
Remove Glib deprecations from print notes
src/plugins/printnotes/printnotesnoteaddin.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/printnotes/printnotesnoteaddin.cpp b/src/plugins/printnotes/printnotesnoteaddin.cpp
index d9622b60..088ce1fe 100644
--- a/src/plugins/printnotes/printnotesnoteaddin.cpp
+++ b/src/plugins/printnotes/printnotesnoteaddin.cpp
@@ -73,7 +73,7 @@ namespace printnotes {
Glib::RefPtr<Gtk::PrintSettings> settings = Gtk::PrintSettings::create();
- Glib::ustring dir = Glib::get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);
+ Glib::ustring dir = Glib::get_user_special_dir(Glib::USER_DIRECTORY_DOCUMENTS);
if (dir.empty()) {
dir = Glib::get_home_dir();
}
@@ -111,7 +111,7 @@ namespace printnotes {
e.what());
dlg.run ();
}
- m_print_op.clear(); // yeah I really mean clear the pointer.
+ m_print_op.reset();
}
@@ -490,8 +490,7 @@ namespace printnotes {
void PrintNotesNoteAddin::on_end_print(const Glib::RefPtr<Gtk::PrintContext>&)
{
m_page_breaks.clear ();
- // clear the RefPtr<>
- m_timestamp_footer.clear();
+ m_timestamp_footer.reset();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]