[glom/glom-1-18] Details: Avoid an outdent after group titles



commit eadc4d842107f9cbf598558ce9bb3b0c44302db9
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 17 12:58:55 2011 +0200

    Details: Avoid an outdent after group titles
    
    * glom/mode_data/flowtablewithfields.cc: add_layout_group(): Work around
      the GtkFrame bug #644199
    
    Conflicts:
    
    	ChangeLog
    	glom/mode_data/flowtablewithfields.cc

 ChangeLog                             |    7 +++++++
 glom/mode_data/flowtablewithfields.cc |    6 +++++-
 2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9130d18..330f9f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-17  Murray Cumming  <murrayc murrayc com>
+
+	Details: Avoid an outdent after group titles
+
+	* glom/mode_data/flowtablewithfields.cc: add_layout_group(): Work around 
+	the GtkFrame bug #644199
+
 2011-10-15  Murray Cumming  <murrayc murrayc com>
 
 	Related records portals: Allow navigation via read-only relationships.
diff --git a/glom/mode_data/flowtablewithfields.cc b/glom/mode_data/flowtablewithfields.cc
index 698e8d6..1b15ff3 100644
--- a/glom/mode_data/flowtablewithfields.cc
+++ b/glom/mode_data/flowtablewithfields.cc
@@ -197,10 +197,14 @@ void FlowTableWithFields::add_layout_group_at_position(const sharedptr<LayoutGro
 
     if(!group->get_title().empty()) //Don't indent if it has no title, to allow use of groups just for positioning.
     {
-      alignment->set_padding(Glom::Utils::DEFAULT_SPACING_SMALL, 0, 6, 0); //Use left-padding of 6 even on Maemo because indentation is important.
       #ifdef GLOM_ENABLE_MAEMO
       std::cerr << "DEBUG: Unexpected group with title causing extra spacing on Maemo." << std::endl;
       #endif
+
+      //Add some indenting just to avoid the out-denting caused by this GtkFrame bug:
+      //https://bugzilla.gnome.org/show_bug.cgi?id=644199
+      const int BASE_INDENT = 3;
+      alignment->set_padding(Glom::Utils::DEFAULT_SPACING_SMALL, 0, BASE_INDENT, 0);
     }
 
     alignment->show();



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