summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.c
Commit message (Collapse)AuthorAgeFilesLines
* cell renderer: Strip out :drop(active) stateMatthias Clasen2016-03-011-1/+1
| | | | | | | It does not make sense to render every cell in a treeview as drop target, even when the treeview itself is set as a drop destination. https://bugzilla.gnome.org/show_bug.cgi?id=761686
* introspection: This patch fixes nullable return values fixes for the ↵Alberto Ruiz2016-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | following symbols in gtk gtk_accel_group_query gtk_accel_group_from_accel_closure gtk_accel_label_get_accel_widget gtk_accessible_get_widget gtk_actionable_get_action_name gtk_app_chooser_get_app_info gtk_app_chooser_button_get_heading gtk_app_chooser_dialog_get_heading gtk_application_get_window_by_id gtk_assistant_get_nth_page gtk_binding_set_find gtk_builder_get_object gtk_builder_lookup_callback_symbol gtk_builder_get_application gtk_button_get_image gtk_cell_area_get_focus_from_sibling gtk_cell_renderer_start_editing gtk_cell_view_get_model gtk_cell_view_get_displayed_row gtk_clipboard_get_owner gtk_container_get_focus_child gtk_container_get_focus_vadjustment gtk_container_get_focus_hadjustment gtk_dialog_get_widget_for_response gtk_drag_get_source_widget gtk_drag_dest_get_target_list gtk_drag_source_get_target_list gtk_entry_completion_get_model gtk_entry_completion_compute_prefix gtk_expander_get_label_widget gtk_file_chooser_get_filename gtk_file_chooser_get_current_folder gtk_file_chooser_get_uri gtk_file_chooser_get_current_folder_uri gtk_file_chooser_get_preview_widget gtk_file_chooser_get_preview_file gtk_file_chooser_get_preview_filename gtk_file_chooser_get_preview_uri gtk_file_chooser_get_extra_widget gtk_file_chooser_get_filter gtk_file_chooser_native_get_accept_label gtk_file_chooser_native_get_cancel_label gtk_file_filter_get_name gtk_font_chooser_get_font_family gtk_font_chooser_get_font_face gtk_font_chooser_get_font gtk_font_chooser_get_font_desc gtk_font_chooser_get_font_map gtk_frame_get_label gtk_gesture_get_device gtk_gesture_get_window gtk_gl_area_get_error gtk_header_bar_get_title gtk_header_bar_get_subtitle gtk_header_bar_get_custom_title gtk_icon_info_get_filename gtk_icon_view_get_path_at_pos gtk_icon_view_get_model gtk_image_get_pixbuf gtk_image_get_animation gtk_label_get_mnemonic_widget gtk_label_get_attributes gtk_check_version gtk_menu_button_get_popup gtk_menu_button_get_menu_model gtk_menu_button_get_align_widget gtk_menu_button_get_popover gtk_menu_item_get_submenu gtk_menu_item_get_accel_path gtk_native_dialog_get_title gtk_native_dialog_get_transient_for gtk_notebook_get_nth_page gtk_notebook_get_tab_label_text gtk_notebook_get_menu_label gtk_notebook_get_menu_label_text gtk_notebook_get_group_name gtk_notebook_get_action_widget gtk_offscreen_window_get_surface gtk_offscreen_window_get_pixbuf gtk_paned_get_child1 gtk_paned_get_child2 gtk_places_sidebar_get_location gtk_places_sidebar_get_nth_bookmark gtk_plug_get_socket_window gtk_popover_get_default_widget gtk_progress_bar_get_text gtk_recent_filter_get_name gtk_recent_manager_lookup_item gtk_settings_get_default gtk_socket_get_plug_window gtk_stack_sidebar_get_stack gtk_stack_switcher_get_stack gtk_style_context_get_section gtk_style_context_get_parent gtk_style_context_get_frame_clock gtk_test_find_widget gtk_text_buffer_get_mark gtk_text_tag_table_lookup gtk_text_view_get_tabs gtk_text_view_toggle_cursor_visible gtk_text_view_get_window gtk_toolbar_get_nth_item gtk_tool_button_get_label gtk_tool_button_get_icon_name gtk_tool_button_get_label_widget gtk_tool_button_get_icon_widget gtk_tool_palette_get_drop_item gtk_tool_palette_get_drop_group gtk_tree_model_filter_convert_child_path_to_path gtk_tree_model_filter_convert_path_to_child_path gtk_tree_model_sort_convert_child_path_to_path gtk_tree_model_sort_convert_path_to_child_path gtk_tree_view_get_column gtk_tree_view_get_bin_window gtk_tree_view_column_get_widget gtk_tree_view_column_get_tree_view gtk_widget_get_frame_clock gtk_window_group_get_current_device_grab GtkTextBufferSerializeFunc
* Use stupid quotes instead of dumb quotesMatthias Clasen2015-09-231-1/+1
| | | | | | Following a similar change in GLib a while ago. 'bla' may by stupid, but it looks less dumb than `bla'.
* Fix check for 'y' padding in gtk_cell_renderer_set_padding()Maks Naumov2015-01-111-1/+1
| | | | | | Signed-off-by: Maks Naumov <maksqwe1@ukr.net> https://bugzilla.gnome.org/show_bug.cgi?id=742764
* GtkCellRenderer: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-29/+76
|
* Deprecate GdkColorMatthias Clasen2014-05-221-0/+2
| | | | | It has been replaced by GdkRGBA. Time to make it official. http://bugzilla.gnome.org/show_bug.cgi?id=636695
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* Docs: use // for comments in examplesMatthias Clasen2014-02-141-1/+1
| | | | | Without sgml mode, we can't escape /* as /&ast; anymore, so just switch to // for comments in examples.
* docs: use proper quotations instead of '*'William Jon McCann2014-02-071-1/+1
|
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-2/+2
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-12/+12
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: use proper quotesWilliam Jon McCann2014-02-051-2/+2
|
* docs: use quotes instead of <firstterm>William Jon McCann2014-02-041-2/+2
|
* docs: Identify examples that are C codeWilliam Jon McCann2014-01-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* cell-renderer: Check for NULL return in vfunc start_editing()Jonh Wendell2013-12-191-0/+3
| | | | | | | This virtual function may return NULL, so, let's check if that's the case and exit the function apropriately. https://bugzilla.gnome.org/show_bug.cgi?id=720554
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-4/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* docs: correct various spelling and grammar errorsWill Thompson2013-03-041-1/+1
| | | | | I noticed a few cases of "wether", and while fixing them noticed a few "its" which should be "it's". It all went downhill from there.
* API: Export gtk_cell_renderer_class_set_accessible_type()Benjamin Otte2013-02-251-5/+5
| | | | | This function is necessary to implement cell renderer accessibility support.
* Document "set" properties a bitMatthias Clasen2012-05-261-3/+8
| | | | | | | Both GtkTextTag and GtkCellRenderer make use of "set" properties which are a bit special. Document this. https://bugzilla.gnome.org/show_bug.cgi?id=531319
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* cell-renderer: add the CELL style class to the editing widgetCosimo Cecchi2012-01-311-0/+2
| | | | | When we create an editing widget, add the CELL style class to it, for identification by the themes.
* Deprecate all the public API that is using GdkColor structJavier Jardón2011-12-221-1/+8
|
* cellrenderer: Use the widget state flags as a base for cell renderers' stateRui Matos2011-12-191-1/+6
|
* cellrenderer: Add API to keep the accessible typeBenjamin Otte2011-12-161-0/+40
| | | | | It's private for now, because we require a GType that isn't exported in the API yet.
* API: cellrenderer: Add a private structBenjamin Otte2011-12-161-2/+40
|
* Minor documentation improvementsMurray Cumming2011-02-231-2/+2
| | | | Mostly correcting it's to its and changing some , to .
* gtk: gtk_cell_renderer_get_state(): check the widget's effective sensitivityMichael Natterer2011-02-061-1/+1
|
* gtk: gtk_cell_renderer_get_state(): a row can be both selected and insensitiveMichael Natterer2011-02-061-9/+9
| | | | | | so pull the SELECTED state flag out of the !sensitive branch. Also, don't make FOCUSED depend on SELECTED here, it's up to the widget to decide whether or not that is possible.
* Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()Carlos Garnacho2011-02-061-1/+2
|
* Added default implementation of GtkCellRendererClass.get_request_mode()Tristan Van Berkom2011-02-031-8/+10
| | | | | | Having default implementations on abstract classes that do nothing or print errors make life easier for language bindings implementors, inside GTK+ this makes little or no difference.
* Tiny typo fix.Murray Cumming2011-01-281-2/+2
|
* Set "cell" class and state before rendering a cellrenderer.Carlos Garnacho2011-01-271-1/+11
|
* Add gtk_cell_renderer_get_state()Carlos Garnacho2011-01-271-0/+45
| | | | | | This is a helper function to help retrieve a GtkStateFlags from a GtkCellRendererState, also given the cell renderer and widget sensitivities.
* Silence new gcc warningsMatthias Clasen2011-01-231-4/+4
| | | | | gcc 4.6.0 has started to warn about set-but-unused variables. So don't do that, then.
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-20/+20
|
* [GI] Fixes of existing incorrect annotationsPavel Holejsovsky2011-01-201-1/+1
|
* Fixed assertions in gtk_cell_renderer_get_aligned_area().Tristan Van Berkom2011-01-131-2/+2
| | | | | | The assertions here were not accounting for the possiblility of zero width visible renderers that are aligned completely to the right (i.e. renderers with no content set for a said row).
* Fixed get_size() for GtkCellRendererText to clip to the input areaTristan Van Berkom2011-01-061-0/+5
| | | | | | | | | | For ellipsize cells it's important to clip the result of get_size() so that the returned required rectangle is indeed less than or equal to the input rectangle... this is done so that GtkCellArea can accurately paint focus on cells by calling gtk_cell_renderer_get_aligned_area(). Patch also adds assertions to gtk_cell_renderer_get_aligned_area() to ensure this keeps working correctly.
* Fix some parameter name mismatches in the docsMatthias Clasen2011-01-051-5/+0
|
* Reduce includes of gtktypeutils.h to a minimumMatthias Clasen2011-01-041-0/+1
|
* Clip to cell_area when rendering cell contentKristian Rietveld2010-12-161-0/+3
| | | | | | | | | | | | | | | | | | | This fixes a GTK+ 3.0 regression. In GTK+ 2, the render method on GtkCellRenderer had a expose_area parameter, typically set to cell_area. This parameter was used for clipping cell content to be rendered to the cell area (and thus clipping to within the focus rectangle). During the rendering clean up this parameter was removed and no clipping put back into place. Since expose_area was usually equal to cell_area anyway, it does not make sense to reintroduce the expose_area parameter. Instead, we do clipping at two levels: - in gtk_cell_renderer_render() we clip to background_area. We cannot clip to cell_area here because we want to allow cell renderers to render in the background area (e.g. background color/effect). - cell renderers should clip to clip_area when rendering cell content individually (as they had to individually clip to expose_region before).
* Merge branch 'master' into treeview-refactorTristan Van Berkom2010-12-051-3/+3
|\ | | | | | | | | | | Conflicts: gtk/gtkmarshalers.list tests/Makefile.am
| * cellrenderer: Fix docs to say cairo_t instead of GdkDrawableBenjamin Otte2010-12-021-3/+3
| |
* | Merge branch 'master' into treeview-refactorTristan Van Berkom2010-12-021-1/+1
|\ \ | |/ | | | | | | Conflicts: tests/Makefile.am
| * rgba: Invert the arguments and improve bindabilityEmmanuele Bassi2010-11-281-1/+1
| | | | | | | | | | | | | | | | Since parse() is a method of the Gdk.RGBA class, the GdkRGBA pointer should be the first argument, and the string the second one, to allow a more natural binding. https://bugzilla.gnome.org/show_bug.cgi?id=635879
| * Don't export _gtk_cell_renderer_calc_offsetMatthias Clasen2010-11-091-1/+1
| | | | | | | | | | | | This is just a private convenience function, and exporting _-prefixed functions doesn't work with our libtool setup. Just do the 3 line calculation in gail.
| * docs: Move documentation to inline comments: GtkCellRendererJavier Jardón2010-11-061-0/+39
| |
* | Changed cell area/renderer "can_focus" semantics to "is_activatable" across ↵Tristan Van Berkom2010-11-291-4/+4
| | | | | | | | | | | | | | | | the board. This is because focus in treeviews can be given to cells that cannot do anything with activation (for better keynav), so we dissociate the concept of cell activation and focusing.
* | Added gtk_cell_renderer_get_aligned_area() and class vfunc.Tristan Van Berkom2010-11-251-1/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | Since a cell renderer might use more space than the natural size when recieving expand space it's impossible to know how much space is actually used to render content. Adding this virtual method to allow text renderers to implement it, the base default method uses height-for-width apis and aligns the cell assuming the renderer uses a fixed size. This commit removes the similar code from gtkcellarea and subclasses.
* | Don't export _gtk_cell_renderer_calc_offsetMatthias Clasen2010-11-131-1/+1
| | | | | | | | | | | | This is just a private convenience function, and exporting _-prefixed functions doesn't work with our libtool setup. Just do the 3 line calculation in gail.