[glom] Use button box for listview buttons.
- From: Daniel Borgmann <dborg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Use button box for listview buttons.
- Date: Thu, 8 Apr 2010 18:36:59 +0000 (UTC)
commit b7bd098131c9b1ae3427af46ad40bbb6dd958d44
Author: Daniel Borgmann <danielb openismus com>
Date: Thu Apr 8 11:56:38 2010 +0100
Use button box for listview buttons.
* glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc:
* glom/utility_widgets/db_adddel/db_adddel_withbuttons.h:
Use ButtonBox instead of HBox to make buttons homogenous. Also change
button order to match order used everywhere else (Add/Delete/Open).
ChangeLog | 9 +++++++++
.../db_adddel/db_adddel_withbuttons.cc | 4 ++--
.../db_adddel/db_adddel_withbuttons.h | 2 +-
3 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e1af060..dbf7831 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,15 @@
2010-04-08 Daniel Borgmann <danielb openismus com>
+ Use button box for listview buttons.
+
+ * glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc:
+ * glom/utility_widgets/db_adddel/db_adddel_withbuttons.h:
+ Use ButtonBox instead of HBox to make buttons homogenous. Also change
+ button order to match order used everywhere else (Add/Delete/Open).
+
+2010-04-08 Daniel Borgmann <danielb openismus com>
+
Text and Image object Dialog adjustments.
* glom/glom_developer.glade: Various dialog layout fixes.
diff --git a/glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc b/glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc
index a17bf12..ac2ef88 100644
--- a/glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc
+++ b/glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc
@@ -25,7 +25,7 @@ namespace Glom
{
DbAddDel_WithButtons::DbAddDel_WithButtons()
-: m_HBox(false, Utils::DEFAULT_SPACING_SMALL),
+: m_HBox(Gtk::BUTTONBOX_END),
#ifndef GLOM_ENABLE_MAEMO
m_Button_Del(Gtk::Stock::DELETE),
m_Button_Edit(Gtk::Stock::OPEN),
@@ -48,8 +48,8 @@ DbAddDel_WithButtons::DbAddDel_WithButtons()
m_Button_Del.signal_clicked().connect(sigc::mem_fun(*this, &DbAddDel_WithButtons::on_button_del));
m_Button_Edit.signal_clicked().connect(sigc::mem_fun(*this, &DbAddDel_WithButtons::on_button_edit));
- m_HBox.pack_end(m_Button_Edit, Gtk::PACK_SHRINK);
m_HBox.pack_end(m_Button_Del, Gtk::PACK_SHRINK);
+ m_HBox.pack_end(m_Button_Edit, Gtk::PACK_SHRINK);
#else
m_HBox.hide();
#endif //GLOM_ENABLE_MAEMO
diff --git a/glom/utility_widgets/db_adddel/db_adddel_withbuttons.h b/glom/utility_widgets/db_adddel/db_adddel_withbuttons.h
index f6e9650..06616af 100644
--- a/glom/utility_widgets/db_adddel/db_adddel_withbuttons.h
+++ b/glom/utility_widgets/db_adddel/db_adddel_withbuttons.h
@@ -55,7 +55,7 @@ private:
virtual void show_all_vfunc();
//member widgets:
- Gtk::HBox m_HBox;
+ Gtk::HButtonBox m_HBox;
#ifndef GLOM_ENABLE_MAEMO
typedef Gtk::Button type_button;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]