Enlightenment CVS committal

Author  : lok
Project : e17
Module  : libs/etk

Dir     : e17/libs/etk/src/lib


Modified Files:
        etk_tree.c etk_tree_model.c 


Log Message:
Better handling of the text alignement in treeviews.

===================================================================
RCS file: /cvs/e/e17/libs/etk/src/lib/etk_tree.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -3 -r1.100 -r1.101
--- etk_tree.c  10 Jul 2007 02:30:51 -0000      1.100
+++ etk_tree.c  4 Aug 2007 14:13:35 -0000       1.101
@@ -2389,6 +2389,7 @@
                   col = tree->columns[i];
                   if (col->visible && col->expand)
                   {
+                     col->width += freespace / num_expand_cols;
                      columns_width += freespace / num_expand_cols;
                      col->visible_width += freespace / num_expand_cols;
                   }
@@ -2604,7 +2605,7 @@
                {
                   cell_geometry.x = geometry.x + col->xoffset + CELL_HMARGINS;
                   cell_geometry.y = geometry.y + row_y + CELL_VMARGINS;
-                  cell_geometry.w = col->width - (2 * CELL_HMARGINS);
+                  cell_geometry.w = col->visible_width - (2 * CELL_HMARGINS);
                   cell_geometry.h = tree->rows_height - (2 * CELL_VMARGINS);
                   
                   /* Render the expander of the row */
===================================================================
RCS file: /cvs/e/e17/libs/etk/src/lib/etk_tree_model.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- etk_tree_model.c    4 Aug 2007 12:43:04 -0000       1.20
+++ etk_tree_model.c    4 Aug 2007 14:13:35 -0000       1.21
@@ -379,8 +379,8 @@
       return ETK_FALSE;
    
    edje_object_part_text_set(cell_objects[0], "etk.text.label", *text_data);
+   evas_object_resize(cell_objects[0], geometry.w, geometry.h - (geometry.y / 
2));
    evas_object_move(cell_objects[0], geometry.x, geometry.y + (geometry.h / 
2));
-   evas_object_resize(cell_objects[0], geometry.w + (geometry.x / 2), 
geometry.h - (geometry.y / 2));
    evas_object_show(cell_objects[0]);
    
    return ETK_FALSE;



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to