summaryrefslogtreecommitdiff
path: root/gtk/gtktreemodelsort.c
Commit message (Collapse)AuthorAgeFilesLines
* introspection: This patch fixes nullable return values fixes for the ↵Alberto Ruiz2016-01-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* tree model sort: Fix compiler warningsMatthias Clasen2015-06-021-2/+3
| | | | Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-6/+6
| | | | Instead of Return value:
* Docs: use // for comments in examplesMatthias Clasen2014-02-141-13/+11
| | | | | Without sgml mode, we can't escape /* as /* anymore, so just switch to // for comments in examples.
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-14/+14
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: use proper quotations instead of '*'William Jon McCann2014-02-071-2/+2
|
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-3/+3
|
* docs: don't use <warning>William Jon McCann2014-02-061-3/+2
|
* docs: use proper quotesWilliam Jon McCann2014-02-051-5/+5
|
* docs: replace all <examples> with markdown headingsWilliam Jon McCann2014-02-041-6/+4
|
* docs: Identify examples that are C codeWilliam Jon McCann2014-01-291-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* docs: use |[ ]| instead of <programlisting></programlisting>William Jon McCann2014-01-291-4/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* docs: use #*-struct instead of <structname>William Jon McCann2014-01-271-1/+1
|
* Improve struct packing in various placesMatthias Clasen2013-09-211-2/+2
|
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* treemodelsort: destroy the root only if we are removing the latest row of ↵Guillaume Desmottes2013-05-031-1/+1
| | | | | | | | | the level GtkIconView doesn't ref the rows of the model so we have to make sure that a level is actually empty before destroying it. https://bugzilla.gnome.org/show_bug.cgi?id=698846
* treemodelsort: fix iter_previous so it can go back to the first itemCarlos Garnacho2012-04-281-2/+3
| | | | | | | | It was getting the previous element, then checking whether it was the first one, that has to be inverted so it doesn't stop on the second item. https://bugzilla.gnome.org/show_bug.cgi?id=674587
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* treemodelsort: eliminate unread variable assigmentsKristian Rietveld2011-08-221-5/+0
| | | | Courtesy of scan-build/clang.
* Extend documentation about GtkTreeModelSort internalsKristian Rietveld2011-08-221-13/+82
|
* Replace GArray with GSequence in GtkTreeModelSortKristian Rietveld2011-08-221-361/+380
| | | | | | | | This is done in the same way as GArray was replaced with GSequence in GtkTreeModelFilter, in a patch done by Xavier Claessens. All sorting code has been reworked to use the GSequence sorting and insert sort functions, instead of doing a lot on our own.
* Revert usage of parent_elt_index back to parent_elt pointersKristian Rietveld2011-08-221-51/+47
| | | | Based on earlier patch for GtkTreeModelFilter by Xavier Claessens.
* Avoid unreferencing deleted nodesKristian Rietveld2011-08-221-19/+29
| | | | | | | Now that we call unref_node in free_level, we have to take care that free_level may only unref (parent) nodes when these still exist in the child model. After row-deleted has been received for a node, its children may no longer unref this node.
* Bug 611922 - gtk_tree_model_sort_ref_node() is too slowKristian Rietveld2011-08-221-41/+17
| | | | | | | Referencing a parent node for each referenced node is overdone. Instead, we now reference the parent from build_level and unreference in free_level. Each level keeps a single reference on its immediate parent. This both alleviates the performence problems and should perfectly serve the purpose.
* treemodelsort: Remove unnecessary commentKristian Rietveld2011-08-221-6/+0
| | | | (I am no longer 17 years old and have grown up by now).
* In sort model also emit row-deleted after updating the data structuresKristian Rietveld2011-08-221-8/+5
|
* Print failed assertions for failed child iterator conversionsKristian Rietveld2011-08-221-3/+15
|
* Make _get_iter invalidate iterators when FALSE is returnedKristian Rietveld2011-08-221-2/+8
|
* Move documentation to inline comments: GtkTreeModelSortJavier Jardón2011-04-181-0/+107
|
* Add gtk_tree_model_iter_previous() vfuncSzilárd Pfeiffer2011-01-051-0/+28
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=128058
* Remove sealed members from GtkTreeModelSortMatthias Clasen2010-12-171-196/+266
|
* Tons of transfer annotationsMatthias Clasen2010-09-211-3/+3
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Add (out) annotations to GtkTreeIter parametersPhilip Withnall2010-07-071-2/+2
|
* [annotations] Add allow-noneJohan Dahlin2010-02-191-1/+1
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Bug 346800 - Rework sort/filter models to use indices to parents...Kristian Rietveld2009-09-061-70/+99
| | | | | | | Rework the sort and filter models to store their reference to the parent element as an array index instead of a pointer to an array element. These pointers could become invalid with any array modification, whereas indices do not.
* Bug 573321 – additional check in gtk_tree_model_filter_convert_*Kristian Rietveld2009-07-301-0/+2
| | | | | | | | Added checks to see whether the passed iterators are not the same in convert_child_iter_to_iter() and iter_to_child_iter() functions in both the sort and filter models. Fixes bug 573321, suggestion by Vadim Godunko.
* Improve the docsMatthias Clasen2009-01-031-18/+24
| | | | | | | | | | | | 2009-01-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreesortable.c: Improve the docs * gtk/gtktreemodelsort.c: Don't assert when using the "unsorted" sort column id. svn path=/trunk/; revision=22048
* gtk/gtktext.c gtk/gtktextbuffer.c gtk/gtktextlayout.cSven Neumann2008-08-081-5/+5
| | | | | | | | | | | | | | | | | | | | 2008-08-08 Sven Neumann <sven@gimp.org> * gtk/gtktext.c * gtk/gtktextbuffer.c * gtk/gtktextlayout.c * gtk/gtktexttagtable.c * gtk/gtktextview.c * gtk/gtktipsquery.c * gtk/gtktoolbar.c * gtk/gtktoolitem.c * gtk/gtktreeitem.c * gtk/gtktreemodelfilter.c * gtk/gtktreemodelsort.c * gtk/gtktreeviewcolumn.c: use canonical signal names. svn path=/trunk/; revision=21045
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* deprecate GtkDestroyNotify.Michael Natterer2008-06-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-18 Michael Natterer <mitch@imendio.com> * gtk/gtktypeutils.h: deprecate GtkDestroyNotify. * gtk/gtkactiongroup.[ch] * gtk/gtkcombobox.[ch] * gtk/gtkcontainer.[ch] * gtk/gtkliststore.[ch] * gtk/gtkmain.[ch] * gtk/gtkmenu.c * gtk/gtkstock.[ch] * gtk/gtktreedatalist.[ch] * gtk/gtktreemodelfilter.[ch] * gtk/gtktreemodelsort.[ch] * gtk/gtktreeprivate.h * gtk/gtktreeselection.[ch] * gtk/gtktreesortable.[ch] * gtk/gtktreestore.[ch] * gtk/gtktreeview.[ch] * gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g. svn path=/trunk/; revision=20448
* Amendment of bug 485218 - Strange warning encountered.Kristian Rietveld2008-05-281-9/+17
| | | | | | | | | | | | | 2008-05-28 Kristian Rietveld <kris@imendio.com> Amendment of bug 485218 - Strange warning encountered. * gtk/gtktreemodelsort.[ch] (gtk_tree_model_sort_convert_child_iter_to_iter): return a boolean indication whether or not the conversion had succeeded. svn path=/trunk/; revision=20204
* Bug 485218 - Strange warning encounteredMatthias Clasen2008-05-271-4/+33
| | | | | | | | | | * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): (gtk_tree_model_sort_convert_child_iter_to_iter): (gtk_tree_model_sort_build_level): Better warnings. Patch by Kristian Rietveld. svn path=/trunk/; revision=20198
* fix the buildMatthias Clasen2007-09-091-1/+1
| | | | svn path=/trunk/; revision=18774
* Don't assume that a path of depth 0 has no indices. (#467324, SzilardMatthias Clasen2007-09-091-1/+1
| | | | | | | | | | | | | 2007-09-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): Don't assume that a path of depth 0 has no indices. (#467324, Szilard Pfeiffer) svn path=/trunk/; revision=18770
* when (un)reffing an element, also (un)ref its parent elements. (FixesKristian Rietveld2007-03-101-0/+31
| | | | | | | | | | | | 2007-03-10 Kristian Rietveld <kris@gtk.org> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node): when (un)reffing an element, also (un)ref its parent elements. (Fixes #364946, reported by many, testcase by Andreas Koehler). svn path=/trunk/; revision=17457
* ref count nodes the proper way, (gtk_tree_model_sort_ref_node),Kristian Rietveld2006-09-271-38/+50
| | | | | | | | | | | | | | 2006-09-26 Kristian Rietveld <kris@imendio.com> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed), (gtk_tree_model_sort_sort_level): ref count nodes the proper way, (gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node), (gtk_tree_model_sort_free_level): bring zero ref count loops in sync, (gtk_tree_model_sort_free_level): free child levels before decreasing the zero ref count of the current level, (gtk_tree_model_sort_clear_cache): only clear cache if zero_ref_count is > 0.
* Don't leak default_sort_data. (#346341, Christian Weiske)Matthias Clasen2006-07-021-0/+8
| | | | | | | 2006-07-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): Don't leak default_sort_data. (#346341, Christian Weiske)
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-65/+8
|