Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed gtk-doc statement in GtkCellArea header | Tristan Van Berkom | 2010-12-06 | 1 | -1/+1 |
| | |||||
* | Added gtk_cell_area_foreach_alloc() to further simplify GtkCellArea subclasses | Tristan Van Berkom | 2010-12-06 | 3 | -179/+267 |
| | | | | | | | | | | | | gtk_cell_area_foreach_alloc() itterates over an allocated list of cells and calls a callback with the cell's allocation until the callback returns TRUE. - Removed vfunc get_cell_allocation() and implemented gtk_cell_area_get_cell_allocation() using foreach_alloc() - Added gtk_cell_area_get_cell_at_position() using foreach_alloc() - Removed GtkCellAreaBox ->event() implementation and implemented mouse "click" cell activation in GtkCellArea class directly using gtk_cell_area_get_cell_at_position(). | ||||
* | Changed gtk_cell_area_forall to gtk_cell_area_foreach since thats more ↵ | Tristan Van Berkom | 2010-12-06 | 4 | -31/+40 |
| | | | | | | widely used semantics. Also gave a boolean return value to the callback to allow breaking out of the loop. | ||||
* | Bring back _gtk_tree_view_column_get_cell_at_pos | Kristian Rietveld | 2010-12-05 | 2 | -0/+40 |
| | | | | | | The function has been re-implemented around GtkCellArea. This commits also brings back the invocation of this function in gtk_tree_view_button_press(). I shouldn't have removed this. | ||||
* | Replace FIRST_PIXEL macros with something that's more clear | Kristian Rietveld | 2010-12-05 | 1 | -13/+45 |
| | |||||
* | Clean up and clarify row height calculations | Kristian Rietveld | 2010-12-05 | 1 | -38/+65 |
| | |||||
* | Clean up _gtk_tree_view_column_cell_event | Kristian Rietveld | 2010-12-05 | 3 | -23/+0 |
| | |||||
* | Remove the need for _gtk_tree_view_column_get_focus_area | Kristian Rietveld | 2010-12-05 | 3 | -53/+18 |
| | |||||
* | Clarify start_pos parameter gtk_tree_view_column_cell_get_position | Kristian Rietveld | 2010-12-05 | 2 | -5/+5 |
| | | | | By renaming it to x_offset. | ||||
* | Remove private accessor for focus column | Kristian Rietveld | 2010-12-05 | 2 | -7/+0 |
| | |||||
* | Move _gtk_tree_view_column_cell_focus to gtktreeview.c | Kristian Rietveld | 2010-12-05 | 3 | -55/+54 |
| | |||||
* | Use structure bitfield instead of GtkTreeViewFlags | Kristian Rietveld | 2010-12-05 | 1 | -80/+59 |
| | |||||
* | Turn TREE_VIEW_DRAW_EXPANDERS into an inline function | Kristian Rietveld | 2010-12-05 | 1 | -12/+22 |
| | |||||
* | Remove unused TREE_VIEW_COLUMN_REQUESTED_WIDTH macro | Kristian Rietveld | 2010-12-05 | 1 | -1/+0 |
| | |||||
* | Turn TREE_VIEW_HEADER_HEIGHT into an inline function | Kristian Rietveld | 2010-12-05 | 1 | -18/+28 |
| | |||||
* | Fixed conflicts from rebasing GtkTreeViewColumn changes from treeview-refactor. | Tristan Van Berkom | 2010-12-05 | 1 | -8/+4 |
| | |||||
* | Removing hack and fixing gtk_tree_view_column_cell_get_size(). | Tristan Van Berkom | 2010-12-05 | 1 | -15/+5 |
| | | | | | | | | Now consult gtk_cell_area_context_get_preferred_height(). It can be that height-for-widths requested here were too large when multiple cells are in play because of the alignments stored in the context... removing the temporary focus-line-width hack. | ||||
* | Added GtkTreeViewColumn:cell-area construct-only property. | Tristan Van Berkom | 2010-12-05 | 1 | -25/+74 |
| | | | | | | | | | | | | | | | | | | Allow feeding treeviewcolumn a custom cell-area (or not a custom one, but allow sharing the cell-area with say, the combo-box area). This patch also: - Fixes signal connections to the area (now they do eventually get disconnected at dispose time, they are handled regardless if a treeview is set but execute safely, at least there is only one connection/disconnection). - Fixes refcounting on the cell_area (GtkCellArea is GInitiallyUnowned). - Adds a constructor() in order to build the cell-area if one has not been provided by the caller before hand at g_object_new() construct time. | ||||
* | Fixed GtkTreeViewColumn allocation to only subtract the depth ↵ | Tristan Van Berkom | 2010-12-05 | 1 | -3/+8 |
| | | | | padding/indentation from the expander column. | ||||
* | Changed GtkTreeView to bookkeep the deepest expanded depth instead of ↵ | Tristan Van Berkom | 2010-12-05 | 1 | -18/+32 |
| | | | | recalculating it at column allocation time. | ||||
* | Allocate proper inner cell area to the GtkTreeViewColumn. | Tristan Van Berkom | 2010-12-05 | 1 | -5/+67 |
| | | | | | | | | This is a premature patch, it traverses the tree's expanded rows and fetches the deepest depth every time we allocate a column. The deepest depth should rather be cached and pushed when a row expands, then recalculated when the deepest expanded row collapses. | ||||
* | Created _gtk_tree_view_column_request_width(). | Tristan Van Berkom | 2010-12-05 | 3 | -52/+43 |
| | | | | | | | | Removed gtk_tree_view_get_real_requested_width_from_column() from gtktreeview.c in favor of this function in the treeviewcolumn domain (since this function goes and checks treeviewcolumn internals, settings and derives the real requested width, seems logical this should be done by the treeviewcolumn instead). | ||||
* | Use gtk_tree_view_get_real_requested_width_from_column() all around | Tristan Van Berkom | 2010-12-05 | 1 | -29/+1 |
| | | | | | GtkTreeView duplicated the contents of this function word-for-word inside gtk_tree_view_update_size(). | ||||
* | Changed _gtk_tree_view_column_set_width for _gtk_tree_view_column_allocate | Tristan Van Berkom | 2010-12-05 | 3 | -34/+36 |
| | | | | | | Now the GtkTreeViewColumn takes care of move/resizing its window and allocating its button (except for the special case of current drag_column where the column doesnt actually get reallocated). | ||||
* | Removed GtkTreeViewPrivate from gtktreeprivate.h and added a few more accessors. | Tristan Van Berkom | 2010-12-05 | 5 | -365/+420 |
| | | | | | This actually much simplifies interaction with GtkTreeSelection (at least reduces code size where dealing width the treeview anchor path). | ||||
* | Removed the private sharing of internal treeview macros from gtktreeprivate.h | Tristan Van Berkom | 2010-12-05 | 3 | -114/+124 |
| | | | | Added them directly to gtktreeview.c. | ||||
* | Removed all variables from GtkTreeViewColumn and created ↵ | Tristan Van Berkom | 2010-12-05 | 4 | -641/+944 |
| | | | | | | | | | GtkTreeViewColumnPrivate Some details: - button_request was not needed, consult the minimum request of the button - gtk_tree_view_column_get_button() needed to be public as people can set tooltips on the button (and libgail accesses the button). | ||||
* | Added proper handling of right to left layouting of cells to GtkCellAreaBox. | Tristan Van Berkom | 2010-12-05 | 2 | -24/+80 |
| | |||||
* | Merge branch 'master' into treeview-refactor | Tristan Van Berkom | 2010-12-05 | 7 | -15/+63 |
|\ | |||||
| * | Add internal accessor for GtkEntry->is_cell_renderer | Javier Jardón | 2010-12-04 | 3 | -0/+28 |
| | | | | | | | | This fixes commit fb3429e5072508570d78dcc7cccb6ef425586bb2 | ||||
| * | Fix call to gtk_widget_override_cursor() | Carlos Garnacho | 2010-12-04 | 1 | -1/+13 |
| | | |||||
| * | Make gtk_widget_override_cursor() take GdkRGBAs | Carlos Garnacho | 2010-12-04 | 4 | -14/+22 |
| | | | | | | | | | | | | Even though the style properties have the GdkColor type, the other gtk_widget_override_* API takes RGBA colors, so it is consistent now. | ||||
* | | Merge branch 'master' into treeview-refactor | Tristan Van Berkom | 2010-12-05 | 83 | -3119/+21889 |
|\ \ | |/ | | | | | | | | | Conflicts: gtk/gtkmarshalers.list tests/Makefile.am | ||||
| * | GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color() | Carlos Garnacho | 2010-12-04 | 2 | -8/+7 |
| | | |||||
| * | GtkCssProvider: Improve error handling and reporting. | Carlos Garnacho | 2010-12-04 | 1 | -164/+212 |
| | | | | | | | | | | | | Nicer error reports are provided, and a GError can be spread from anywhere in parsing, so over time more precise and meaningful messages can be produced. | ||||
| * | GtkThemingEngine: Be a bit more robust against missing essential properties. | Carlos Garnacho | 2010-12-04 | 1 | -5/+9 |
| | | |||||
| * | GtkWidget: add gtk_widget_render_icon_pixbuf() | Carlos Garcia Campos | 2010-12-04 | 2 | -20/+45 |
| | | | | | | | | and deprecate gtk_widget_render_icon() | ||||
| * | GtkIconFactory: add gtk_icon_set_render_icon_pixbuf() | Carlos Garcia Campos | 2010-12-04 | 4 | -96/+131 |
| | | | | | | | | and deprecate gtk_icon_set_render_icon(). | ||||
| * | GtkStyle: set style context state before calling gtk_render_icon_pixbuf() | Carlos Garcia Campos | 2010-12-04 | 1 | -0/+15 |
| | | |||||
| * | GtkStyle: make context property readable | Carlos Garcia Campos | 2010-12-04 | 1 | -1/+27 |
| | | |||||
| * | GtkWidget: queue a resize when style context changed | Carlos Garcia Campos | 2010-12-04 | 1 | -0/+1 |
| | | |||||
| * | GtkStyleContext: invalidate icon caches when resetting widgets | Carlos Garcia Campos | 2010-12-04 | 1 | -0/+3 |
| | | |||||
| * | Use gtk_style_context_reset_widgets() instead of gtk_rc_reset_styles() | Carlos Garcia Campos | 2010-12-04 | 3 | -8/+5 |
| | | |||||
| * | GtkSettings: add _gtk_settings_get_screen() private method | Carlos Garcia Campos | 2010-12-04 | 2 | -0/+8 |
| | | |||||
| * | Block direct #including in style headers | Carlos Garnacho | 2010-12-04 | 7 | -1/+29 |
| | | |||||
| * | Add helper API for getting colors/borders in GtkStyleContext/GtkThemingEngine | Carlos Garnacho | 2010-12-04 | 6 | -0/+416 |
| | | |||||
| * | GtkStyleProperties: Refactor color/gradient resolution | Carlos Garnacho | 2010-12-04 | 1 | -53/+39 |
| | | |||||
| * | GtkWidget: Add gtk_widget_override_cursor(). | Carlos Garnacho | 2010-12-04 | 2 | -7/+47 |
| | | | | | | | | This function replaces gtk_widget_modify_cursor(). | ||||
| * | Add GtkModifierStyle as a private object | Carlos Garnacho | 2010-12-04 | 4 | -82/+412 |
| | | | | | | | | | | | | | | | | This object backs up gtk_widget_override_* operations. This object is not meant to be public because any intention to modify widgets' style in a themeable way should involve using regions/classes, so they're modifiable through CSS. As such, the API is really short-scoped. | ||||
| * | Gtk9Slice: Fix stretch rendering. | Carlos Garnacho | 2010-12-04 | 1 | -14/+15 |
| | | | | | | | | | | "Nearest" filter used when scaling the image, so image borders aren't blurred. |