[gnote] Remove ForcedPresentWindow
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove ForcedPresentWindow
- Date: Sun, 24 Jan 2016 12:58:12 +0000 (UTC)
commit 9457455004a3c4ab13e128c5b59506abfda7bb1c
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Jan 24 14:56:06 2016 +0200
Remove ForcedPresentWindow
No more reasons for it.
src/mainwindow.cpp | 6 +++---
src/mainwindow.hpp | 4 ++--
src/utils.hpp | 16 ----------------
3 files changed, 5 insertions(+), 21 deletions(-)
---
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index d10e8a2..4f3f808 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2013,2015 Aurimas Cernius
+ * Copyright (C) 2013,2015-2016 Aurimas Cernius
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -136,9 +136,9 @@ bool MainWindow::use_client_side_decorations()
MainWindow::MainWindow(const std::string & title)
- : utils::ForcedPresentWindow(title)
- , m_close_on_esc(false)
+ : m_close_on_esc(false)
{
+ set_title(title);
}
}
diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp
index 8fd8c7d..23ef758 100644
--- a/src/mainwindow.hpp
+++ b/src/mainwindow.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2013,2015 Aurimas Cernius
+ * Copyright (C) 2013,2015-2016 Aurimas Cernius
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -29,7 +29,7 @@
namespace gnote {
class MainWindow
- : public utils::ForcedPresentWindow
+ : public Gtk::ApplicationWindow
, public EmbeddableWidgetHost
{
public:
diff --git a/src/utils.hpp b/src/utils.hpp
index 608e75c..7e24758 100644
--- a/src/utils.hpp
+++ b/src/utils.hpp
@@ -236,22 +236,6 @@ namespace gnote {
guint m_timeout_id;
};
- class ForcedPresentWindow
- : public Gtk::ApplicationWindow
- {
- public:
- ForcedPresentWindow(const Glib::ustring & title)
- : Gtk::ApplicationWindow()
- {
- Gtk::ApplicationWindow::set_title(title);
- }
-
- void present()
- {
- Gtk::ApplicationWindow::present();
- }
- };
-
class ToolMenuButton
: public Gtk::ToggleToolButton
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]