[gnote] Derive note of the day prefs widget from Grid
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Derive note of the day prefs widget from Grid
- Date: Sun, 26 May 2013 15:47:14 +0000 (UTC)
commit 745ebf3d50b60cec4083b50bdfd3549cfea4a8ef
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun May 26 18:26:48 2013 +0300
Derive note of the day prefs widget from Grid
.../noteoftheday/noteofthedaypreferences.cpp | 9 +++++----
.../noteoftheday/noteofthedaypreferences.hpp | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/addins/noteoftheday/noteofthedaypreferences.cpp
b/src/addins/noteoftheday/noteofthedaypreferences.cpp
index 5e9b9ba..4218147 100644
--- a/src/addins/noteoftheday/noteofthedaypreferences.cpp
+++ b/src/addins/noteoftheday/noteofthedaypreferences.cpp
@@ -31,21 +31,22 @@
namespace noteoftheday {
NoteOfTheDayPreferences::NoteOfTheDayPreferences(gnote::NoteManager & manager)
- : Gtk::VBox(false, 12)
- , m_open_template_button(_("_Open Today: Template"), true)
+ : m_open_template_button(_("_Open Today: Template"), true)
, m_label(_("Change the <span weight=\"bold\">Today: Template</span> "
"note to customize the text that new Today notes have."))
, m_note_manager(manager)
{
+ set_row_spacing(12);
m_label.set_line_wrap(true);
m_label.set_use_markup(true);
- pack_start(m_label, true, true, 0);
+ m_label.set_vexpand(true);
+ attach(m_label, 0, 0, 1, 1);
m_open_template_button.set_use_underline(true);
m_open_template_button.signal_clicked().connect(
sigc::mem_fun(*this,
&NoteOfTheDayPreferences::open_template_button_clicked));
- pack_start(m_open_template_button, false, false, 0);
+ attach(m_open_template_button, 0, 1, 1, 1);
show_all();
}
diff --git a/src/addins/noteoftheday/noteofthedaypreferences.hpp
b/src/addins/noteoftheday/noteofthedaypreferences.hpp
index fdfdad8..68e269e 100644
--- a/src/addins/noteoftheday/noteofthedaypreferences.hpp
+++ b/src/addins/noteoftheday/noteofthedaypreferences.hpp
@@ -26,7 +26,7 @@
namespace noteoftheday {
class NoteOfTheDayPreferences
- : public Gtk::VBox
+ : public Gtk::Grid
{
public:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]