[glom/glom-1-18] Correct the sizing of the ... date button.



commit 3db719ae29256ade58ab0282e82955d864d26c7f
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Apr 12 17:15:34 2011 +0200

    Correct the sizing of the ... date button.
    
    * glom/mode_data/datawidget/datawidget.cc: There is a button next to
    all date fields, for selecting the date. Make sure that it does not expand.
    Of course, a real date selection widget would be nicer.

 ChangeLog                               |    8 ++++++++
 glom/mode_data/datawidget/datawidget.cc |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 84a2ac0..3177da0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-04-12  Murray Cumming  <murrayc murrayc com>
+
+	Correct the sizing of the ... date button.
+
+	* glom/mode_data/datawidget/datawidget.cc: There is a button next to
+	all date fields, for selecting the date. Make sure that it does not expand.
+	Of course, a real date selection widget would be nicer.
+
 2011-04-08  Murray Cumming  <murrayc murrayc com>
 
 	Fix use of bool python return types.
diff --git a/glom/mode_data/datawidget/datawidget.cc b/glom/mode_data/datawidget/datawidget.cc
index 936743e..0209182 100644
--- a/glom/mode_data/datawidget/datawidget.cc
+++ b/glom/mode_data/datawidget/datawidget.cc
@@ -228,7 +228,7 @@ DataWidget::DataWidget(const sharedptr<LayoutItem_Field>& field, const Glib::ust
       #endif
       button_date->set_tooltip_text(_("Choose a date from an on-screen calendar."));
       button_date->show();
-      hbox_parent->pack_start(*button_date);
+      hbox_parent->pack_start(*button_date, Gtk::PACK_SHRINK);
       button_date->signal_clicked().connect(sigc::mem_fun(*this, &DataWidget::on_button_choose_date));
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]