summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Fixed gtk-doc statement in GtkCellArea headerTristan Van Berkom2010-12-061-1/+1
|
* Added gtk_cell_area_foreach_alloc() to further simplify GtkCellArea subclassesTristan Van Berkom2010-12-063-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 Berkom2010-12-064-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_posKristian Rietveld2010-12-052-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 clearKristian Rietveld2010-12-051-13/+45
|
* Clean up and clarify row height calculationsKristian Rietveld2010-12-051-38/+65
|
* Clean up _gtk_tree_view_column_cell_eventKristian Rietveld2010-12-053-23/+0
|
* Remove the need for _gtk_tree_view_column_get_focus_areaKristian Rietveld2010-12-053-53/+18
|
* Clarify start_pos parameter gtk_tree_view_column_cell_get_positionKristian Rietveld2010-12-052-5/+5
| | | | By renaming it to x_offset.
* Remove private accessor for focus columnKristian Rietveld2010-12-052-7/+0
|
* Move _gtk_tree_view_column_cell_focus to gtktreeview.cKristian Rietveld2010-12-053-55/+54
|
* Use structure bitfield instead of GtkTreeViewFlagsKristian Rietveld2010-12-051-80/+59
|
* Turn TREE_VIEW_DRAW_EXPANDERS into an inline functionKristian Rietveld2010-12-051-12/+22
|
* Remove unused TREE_VIEW_COLUMN_REQUESTED_WIDTH macroKristian Rietveld2010-12-051-1/+0
|
* Turn TREE_VIEW_HEADER_HEIGHT into an inline functionKristian Rietveld2010-12-051-18/+28
|
* Fixed conflicts from rebasing GtkTreeViewColumn changes from treeview-refactor.Tristan Van Berkom2010-12-051-8/+4
|
* Removing hack and fixing gtk_tree_view_column_cell_get_size().Tristan Van Berkom2010-12-051-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 Berkom2010-12-051-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 Berkom2010-12-051-3/+8
| | | | padding/indentation from the expander column.
* Changed GtkTreeView to bookkeep the deepest expanded depth instead of ↵Tristan Van Berkom2010-12-051-18/+32
| | | | recalculating it at column allocation time.
* Allocate proper inner cell area to the GtkTreeViewColumn.Tristan Van Berkom2010-12-051-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 Berkom2010-12-053-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 aroundTristan Van Berkom2010-12-051-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_allocateTristan Van Berkom2010-12-053-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 Berkom2010-12-055-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.hTristan Van Berkom2010-12-053-114/+124
| | | | Added them directly to gtktreeview.c.
* Removed all variables from GtkTreeViewColumn and created ↵Tristan Van Berkom2010-12-054-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 Berkom2010-12-052-24/+80
|
* Merge branch 'master' into treeview-refactorTristan Van Berkom2010-12-057-15/+63
|\
| * Add internal accessor for GtkEntry->is_cell_rendererJavier Jardón2010-12-043-0/+28
| | | | | | | | This fixes commit fb3429e5072508570d78dcc7cccb6ef425586bb2
| * Fix call to gtk_widget_override_cursor()Carlos Garnacho2010-12-041-1/+13
| |
| * Make gtk_widget_override_cursor() take GdkRGBAsCarlos Garnacho2010-12-044-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-refactorTristan Van Berkom2010-12-0583-3119/+21889
|\ \ | |/ | | | | | | | | Conflicts: gtk/gtkmarshalers.list tests/Makefile.am
| * GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()Carlos Garnacho2010-12-042-8/+7
| |
| * GtkCssProvider: Improve error handling and reporting.Carlos Garnacho2010-12-041-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 Garnacho2010-12-041-5/+9
| |
| * GtkWidget: add gtk_widget_render_icon_pixbuf()Carlos Garcia Campos2010-12-042-20/+45
| | | | | | | | and deprecate gtk_widget_render_icon()
| * GtkIconFactory: add gtk_icon_set_render_icon_pixbuf()Carlos Garcia Campos2010-12-044-96/+131
| | | | | | | | and deprecate gtk_icon_set_render_icon().
| * GtkStyle: set style context state before calling gtk_render_icon_pixbuf()Carlos Garcia Campos2010-12-041-0/+15
| |
| * GtkStyle: make context property readableCarlos Garcia Campos2010-12-041-1/+27
| |
| * GtkWidget: queue a resize when style context changedCarlos Garcia Campos2010-12-041-0/+1
| |
| * GtkStyleContext: invalidate icon caches when resetting widgetsCarlos Garcia Campos2010-12-041-0/+3
| |
| * Use gtk_style_context_reset_widgets() instead of gtk_rc_reset_styles()Carlos Garcia Campos2010-12-043-8/+5
| |
| * GtkSettings: add _gtk_settings_get_screen() private methodCarlos Garcia Campos2010-12-042-0/+8
| |
| * Block direct #including in style headersCarlos Garnacho2010-12-047-1/+29
| |
| * Add helper API for getting colors/borders in GtkStyleContext/GtkThemingEngineCarlos Garnacho2010-12-046-0/+416
| |
| * GtkStyleProperties: Refactor color/gradient resolutionCarlos Garnacho2010-12-041-53/+39
| |
| * GtkWidget: Add gtk_widget_override_cursor().Carlos Garnacho2010-12-042-7/+47
| | | | | | | | This function replaces gtk_widget_modify_cursor().
| * Add GtkModifierStyle as a private objectCarlos Garnacho2010-12-044-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 Garnacho2010-12-041-14/+15
| | | | | | | | | | "Nearest" filter used when scaling the image, so image borders aren't blurred.