[glom/maemo5] Maemo 5: List view: Subtly improve the separating lines.



commit fe8a1c48f8b9025ceb2c638f21f793e88f69b7b3
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Oct 8 22:44:58 2009 +0200

    Maemo 5: List view: Subtly improve the separating lines.
    
    * glom/utility_widgets/db_adddel/db_adddel.cc: treeview_append_column():
    On Maemo, use an x-pad of HILDON_MARGIN_DEFAULT for the cell renderers,
    because Mathias Hasselmann says that is required for Maemo 5.

 ChangeLog                                          |    8 ++++++++
 .../test_sqlite_music/glom_musiccollection21.db    |  Bin 15360 -> 15360 bytes
 glom/utility_widgets/db_adddel/db_adddel.cc        |    4 ++++
 3 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ace23f8..63f5adc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-10-08  Murray Cumming  <murrayc murrayc-x61>
+
+  Maemo 5: List view: Subtly improve the separating lines.
+  
+	* glom/utility_widgets/db_adddel/db_adddel.cc: treeview_append_column(): 
+	On Maemo, use an "x-pad" of HILDON_MARGIN_DEFAULT for the cell renderers, 
+	because Mathias Hasselmann says that is required for Maemo 5.
+
 2009-10-08  Murray Cumming  <murrayc murrayc com>
 
   Maemo: Use a PickerButton with TouchSelector for combo boxes on details views.
diff --git a/examples/sqlite/test_sqlite_music/glom_musiccollection21.db b/examples/sqlite/test_sqlite_music/glom_musiccollection21.db
index e5fc4aa..74ff898 100644
Binary files a/examples/sqlite/test_sqlite_music/glom_musiccollection21.db and b/examples/sqlite/test_sqlite_music/glom_musiccollection21.db differ
diff --git a/glom/utility_widgets/db_adddel/db_adddel.cc b/glom/utility_widgets/db_adddel/db_adddel.cc
index f0f686e..5ecc1f6 100644
--- a/glom/utility_widgets/db_adddel/db_adddel.cc
+++ b/glom/utility_widgets/db_adddel/db_adddel.cc
@@ -1958,6 +1958,10 @@ bool DbAddDel::get_column_to_expand(guint& column_to_expand) const
 guint DbAddDel::treeview_append_column(const Glib::ustring& title, Gtk::CellRenderer& cellrenderer, int model_column_index, int data_model_column_index, bool expand)
 {
   #ifndef GLOM_ENABLE_MAEMO
+  //Mathias Hasselmann says that this is required for the Maemo 5 style, 
+  //though we don't know yet where that is documented. murrayc.
+  cellrenderer->set_property("x-pad", HILDON_MARGIN_DEFAULT);
+  
   DbTreeViewColumnGlom* pViewColumn = Gtk::manage( new DbTreeViewColumnGlom(Utils::string_escape_underscores(title), cellrenderer) );
   pViewColumn->set_sizing(Gtk::TREE_VIEW_COLUMN_FIXED); //Need by fixed-height mode.
 



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