Enlightenment CVS committal Author : moom16 Project : e17 Module : proto
Dir : e17/proto/etk/src/lib Modified Files: etk_tree.c Log Message: * [Tree] Fix some horizontal scrolling problems * [Tree] Fix the visible width of the last visible col =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_tree.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- etk_tree.c 21 Dec 2005 16:47:38 -0000 1.21 +++ etk_tree.c 21 Dec 2005 19:44:49 -0000 1.22 @@ -335,7 +335,10 @@ col->requested_width = ETK_MAX(width, ETK_TREE_MIN_HEADER_WIDTH); etk_object_notify(ETK_OBJECT(col), "width"); if (col->tree) + { + etk_signal_emit_by_name("scroll_size_changed", ETK_OBJECT(col->tree->grid), NULL); etk_widget_redraw_queue(ETK_WIDGET(col->tree->grid)); + } } /** @@ -357,12 +360,15 @@ */ void etk_tree_col_min_width_set(Etk_Tree_Col *col, int min_width) { - if (!col) + if (!col || (col->min_width == min_width)) return; col->min_width = min_width; etk_object_notify(ETK_OBJECT(col), "min_width"); if (col->tree) + { + etk_signal_emit_by_name("scroll_size_changed", ETK_OBJECT(col->tree->grid), NULL); etk_widget_redraw_queue(ETK_WIDGET(col->tree->grid)); + } } /** @@ -384,12 +390,10 @@ */ void etk_tree_col_resizable_set(Etk_Tree_Col *col, Etk_Bool resizable) { - if (!col) + if (!col || (col->resizable == resizable)) return; col->resizable = resizable; etk_object_notify(ETK_OBJECT(col), "resizable"); - if (col->tree) - etk_widget_redraw_queue(ETK_WIDGET(col->tree->grid)); } /** @@ -411,7 +415,7 @@ */ void etk_tree_col_expand_set(Etk_Tree_Col *col, Etk_Bool expand) { - if (!col) + if (!col || (col->expand == expand)) return; col->expand = expand; etk_object_notify(ETK_OBJECT(col), "expand"); @@ -438,12 +442,15 @@ */ void etk_tree_col_visible_set(Etk_Tree_Col *col, Etk_Bool visible) { - if (!col) + if (!col || (col->visible == visible)) return; col->visible = visible; etk_object_notify(ETK_OBJECT(col), "visible"); if (col->tree) + { + etk_signal_emit_by_name("scroll_size_changed", ETK_OBJECT(col->tree->grid), NULL); etk_widget_redraw_queue(ETK_WIDGET(col->tree->grid)); + } } /** @@ -1305,7 +1312,6 @@ } } - grid_width += widget->left_inset + widget->right_inset; freespace = ETK_MAX(0, geometry.w - grid_width); if (num_expandable_cols > 0) extra_width = (float)freespace / num_expandable_cols; @@ -1960,6 +1966,8 @@ { col->tree->column_to_resize->requested_width = new_size; etk_object_notify(ETK_OBJECT(col->tree->column_to_resize), "width"); + /* TODO */ + etk_signal_emit_by_name("scroll_size_changed", ETK_OBJECT(col->tree->grid), NULL); etk_widget_redraw_queue(ETK_WIDGET(col->tree->grid)); } } ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs