[gtkmm-documentation] SpinButton example: Fix orientation of vertical boxes.
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] SpinButton example: Fix orientation of vertical boxes.
- Date: Mon, 28 May 2012 07:31:54 +0000 (UTC)
commit 660fa1252b953c16f04a73f376a05c0bbbad74cd
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Mon May 28 09:28:31 2012 +0200
SpinButton example: Fix orientation of vertical boxes.
* examples/book/spinbutton/examplewindow.cc: Fix the orientation of the
boxes that shall be vertical.
ChangeLog | 7 +++++++
examples/book/spinbutton/examplewindow.cc | 9 ++++++++-
2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d3f6778..1d5ef67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-28 Kjell Ahlstedt <kjell ahlstedt bredband net>
+
+ SpinButton example: Fix orientation of vertical boxes.
+
+ * examples/book/spinbutton/examplewindow.cc: Fix the orientation of the
+ boxes that shall be vertical.
+
2012-04-17 Murray Cumming <murrayc murrayc com>
Range Widgets example: Really show a Position combo.
diff --git a/examples/book/spinbutton/examplewindow.cc b/examples/book/spinbutton/examplewindow.cc
index ddedf8b..93b9d77 100644
--- a/examples/book/spinbutton/examplewindow.cc
+++ b/examples/book/spinbutton/examplewindow.cc
@@ -25,6 +25,13 @@ ExampleWindow::ExampleWindow()
m_Frame_NotAccelerated("Not accelerated"),
m_Frame_Accelerated("Accelerated"),
m_VBox_Main(Gtk::ORIENTATION_VERTICAL, 5),
+ m_VBox(Gtk::ORIENTATION_VERTICAL),
+ m_VBox_Day(Gtk::ORIENTATION_VERTICAL),
+ m_VBox_Month(Gtk::ORIENTATION_VERTICAL),
+ m_VBox_Year(Gtk::ORIENTATION_VERTICAL),
+ m_VBox_Accelerated(Gtk::ORIENTATION_VERTICAL),
+ m_VBox_Value(Gtk::ORIENTATION_VERTICAL),
+ m_VBox_Digits(Gtk::ORIENTATION_VERTICAL),
m_Label_Day("Day: "),
m_Label_Month("Month: "),
m_Label_Year("Year: "),
@@ -32,7 +39,7 @@ ExampleWindow::ExampleWindow()
m_Label_Digits("Digits: "),
m_adjustment_day( Gtk::Adjustment::create(1.0, 1.0, 31.0, 1.0, 5.0, 0.0) ),
m_adjustment_month( Gtk::Adjustment::create(1.0, 1.0, 12.0, 1.0, 5.0, 0.0) ),
- m_adjustment_year( Gtk::Adjustment::create(1998.0, 0.0, 2100.0, 1.0, 100.0, 0.0) ),
+ m_adjustment_year( Gtk::Adjustment::create(2012.0, 1.0, 2200.0, 1.0, 100.0, 0.0) ),
m_adjustment_value( Gtk::Adjustment::create(0.0, -10000.0, 10000.0, 0.5, 100.0, 0.0) ),
m_adjustment_digits( Gtk::Adjustment::create(2.0, 1.0, 5.0, 1.0, 1.0, 0.0) ),
m_SpinButton_Day(m_adjustment_day),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]