[glom] Notebook: Avoid truncating related records buttons.



commit 50bdded97533c23c931a4c7e70c5f554e94f00c7
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Oct 27 13:57:52 2011 +0200

    Notebook: Avoid truncating related records buttons.
    
    * glom/mode_data/box_data_list_related.cc: Use
    Gtk::Frame::unset_label() instead of just hiding the frame's label,
    because that apparently leads to an incorrect allocation, causing the
    buttons to be cut in half horizontally at the bottom.
    I will investigate.

 ChangeLog                               |   10 ++++++++++
 glom/mode_data/box_data_list_related.cc |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5bb7492..107d232 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-10-27  Murray Cumming  <murrayc murrayc com>
+
+	Notebook: Avoid truncating related records buttons.
+
+	* glom/mode_data/box_data_list_related.cc: Use
+	Gtk::Frame::unset_label() instead of just hiding the frame's label,
+	because that apparently leads to an incorrect allocation, causing the 
+	buttons to be cut in half horizontally at the bottom.
+	I will investigate.
+
 1.19.16:
 
 2011-10-27  Murray Cumming  <murrayc murrayc com>
diff --git a/glom/mode_data/box_data_list_related.cc b/glom/mode_data/box_data_list_related.cc
index 454bdbd..ad5bd7b 100644
--- a/glom/mode_data/box_data_list_related.cc
+++ b/glom/mode_data/box_data_list_related.cc
@@ -98,6 +98,7 @@ bool Box_Data_List_Related::init_db_details(const Glib::ustring& parent_table, b
   {
     m_Label.set_markup(Glib::ustring());
     m_Label.hide();
+    m_Frame.unset_label(); //Otherwise the allocation is calculated wrong. TODO: Investigate in GTK+.
 
     m_Alignment.set_padding(0.0f, 0.0f, 0.0f, 0.0f); //The box itself has padding of 6.
   }



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