summaryrefslogtreecommitdiff
path: root/gtk/gtktreestore.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix #399071, suggestion from Benoit Dejean.Kristian Rietveld2007-06-041-16/+77
| | | | | | | | | | | | | | | | | | | | | | | 2007-06-05 Kristian Rietveld <kris@gtk.org> Fix #399071, suggestion from Benoit Dejean. * gtk/gtkliststore.[ch] (gtk_list_store_set_vector_internal): new function, factored out code iterating (columns, values) vectors from gtk_list_store_new_with_valuesv to here, (gtk_list_store_set_valuesv): new public function to set list store values using (columns, values) vectors, (gtk_list_store_new_with_valuesv): call new _set_vector_internal instead. * gtk/gtktreestore.[ch] (gtk_tree_store_set_vector_internal), (gtk_tree_store_set_valuesv), (gtk_tree_store_new_with_valuesv): likewise. * gtk/gtk.symbols: updated. svn path=/trunk/; revision=18041
* Recognize negative column indices as invalid. (#415260, Chris Wilson)Matthias Clasen2007-04-281-1/+1
| | | | | | | | | | | | 2007-04-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkliststore.c (gtk_list_store_set_valist_internal): * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal): Recognize negative column indices as invalid. (#415260, Chris Wilson) svn path=/trunk/; revision=17681
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-6/+4
|
* Make the insert and set functions somewhat more convenient. (#343841,Kristian Rietveld2006-06-261-4/+12
| | | | | | | | | | | | | | 2006-06-26 Kristian Rietveld <kris@gtk.org> Make the insert and set functions somewhat more convenient. (#343841, David Necas). * gtk/gtkliststore.c (gtk_list_store_insert_with_values): allow a NULL iter, (gtk_list_store_insert_with_valuesv): likewise. * gtk/gtktreestore.c (gtk_tree_store_insert_with_values): ditto, (gtk_tree_store_insert_with_valuesv): likewise.
* Small refactoring. (#340428, Paolo Borelli).Kristian Rietveld2006-05-271-28/+21
| | | | | | | | | | | | | 2006-05-27 Kristian Rietveld <kris@gtk.org> Small refactoring. (#340428, Paolo Borelli). * gtk/gtkliststore.c (gtk_list_store_set_valist_internal), (gtk_list_store_insert_with_valuesv): refactor code to determine iter compare func into gtk_list_store_get_compare_func(). * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal), (gtk_tree_store_insert_with_valuesv): likewise.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-75/+10
|
* Fixes #324099, Tommi Komulainen.Kristian Rietveld2006-01-151-31/+239
| | | | | | | | | | | | | | | | | | 2006-01-15 Kristian Rietveld <kris@gtk.org> Fixes #324099, Tommi Komulainen. * gtk/gtktreestore.[ch] (gtk_tree_store_insert_with_values), (gtk_tree_store_insert_with_valuesv): new functions, analog to those found in GtkListStore. * gtk/gtktreestore.c (gtk_tree_store_real_set_value), (gtk_tree_store_set_valist), (gtk_tree_store_set_valist_internal), (gtk_tree_store_sort_iter_changed): refactored. * gtk/gtk.symbols: updated. * tests/treestoretest.c: added a test for this new functionality.
* Always call the get_path and get_iter implementations directly, ratherMatthias Clasen2005-12-301-28/+30
| | | | | | | | | 2005-12-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkliststore.c: * gtk/gtktreestore.c: Always call the get_path and get_iter implementations directly, rather than the current mixture whith some calls going through the GtkTreeModel interface.
* Remove excessive g_return_if_fail() checks in static functions.Matthias Clasen2005-12-291-77/+32
| | | | | | | | 2005-12-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkliststore.c: * gtk/gtktreestore.c: Remove excessive g_return_if_fail() checks in static functions.
* Use the slice allocater for GtkTreeDataSortHeader.Matthias Clasen2005-12-291-34/+7
| | | | | | | | | | | | | | 2005-12-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreedatalist.c: Use the slice allocater for GtkTreeDataSortHeader. * gtk/gtktreedatalist.h: * gtk/gtktreedatalist.c (_gtk_tree_data_list_set_header): New function. * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): * gtk/gtkliststore.c (gtk_list_store_set_sort_func): * gtk/gtktreestore.c (gtk_tree_store_set_sort_func): Use it here.
* Fix a memory leak. (#321032, Peter Zelezny)Matthias Clasen2005-11-151-6/+6
| | | | | * gtk/gtktreestore.c (gtk_tree_store_move): Fix a memory leak. (#321032, Peter Zelezny)
* Intern some more strings.Matthias Clasen2005-09-011-1/+2
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* Fix for #312924, by John Finlay.Kristian Rietveld2005-08-111-0/+13
| | | | | | | | | | | | 2005-08-11 Kristian Rietveld <kris@gtk.org> Fix for #312924, by John Finlay. * gtk/gtkliststore.c (gtk_list_store_increment_stamp), (gtk_list_store_clear): increment stamp on store clearance. * gtk/gtktreestore.c (gtk_tree_store_increment_stamp), (gtk_tree_store_clear): ditto.
* Fix #305737, patch from Tomislav Jonjic. This makes theKristian Rietveld2005-07-091-10/+50
| | | | | | | | | | | | | | 2005-07-09 Kristian Rietveld <kris@gtk.org> Fix #305737, patch from Tomislav Jonjic. This makes the gtk_tree_store_insert* family of functions emit row_has_child_toggled when needed (they didn't do that before). * gtk/gtktreestore.c (gtk_tree_store_insert): emit row_has_child_toggled when needed, (gtk_tree_store_insert_before): fix a possible memleak, emit row_has_child_toggled when needed, (gtk_tree_store_insert_after): ditto.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Update the documentation to specify a more useful behaviour, which can beMatthias Clasen2004-11-301-4/+5
| | | | | | | | | | | | | | 2004-11-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreesortable.c (gtk_tree_sortable_get_sort_column_id): Update the documentation to specify a more useful behaviour, which can be implemented with the multiple special values we have now. (#159984, Nicholas Rahn) * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_sort_column_id): * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id): * gtk/gtkliststore.c (gtk_list_store_get_sort_column_id): Update the implementations.
* Allow sorting of tree models to be turned off again. (#151139, TorstenMatthias Clasen2004-09-051-13/+17
| | | | | | | | | | | | | | Sun Sep 5 01:04:01 2004 Matthias Clasen <maclas@gmx.de> Allow sorting of tree models to be turned off again. (#151139, Torsten Schoenfeld) * gtk/gtktreesortable.h: Add GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID. * gtk/gtktreestore.c (gtk_tree_store_sort): * gtk/gtkliststore.c (gtk_list_store_sort): Don't sort if the list store is not sorted.
* Don't use an uninitialized tree iter. (#150414, Torsten Schoenfeld)Matthias Clasen2004-08-221-1/+2
| | | | | | | Sat Aug 21 23:53:39 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an uninitialized tree iter. (#150414, Torsten Schoenfeld)
* Underscore-prefix gtk_tree_data_list_compare_func.Matthias Clasen2004-08-111-3/+3
| | | | | | | | | | | | 2004-08-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreedatalist.[hc]: * gtk/gtkliststore.c: * gtk/gtktreestore.c: Underscore-prefix gtk_tree_data_list_compare_func. * gtk/gtk.symbols: Remove gtk_tree_data_list_compare_func. * gtk/makegtkalias.pl: No need to include gtktreedatalist.h any more.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* s/childs/children/g.Matthias Clasen2004-08-041-2/+2
| | | | | | | | | Wed Aug 4 01:37:57 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktreeview.c: * gtk/gtktreestore.c: * gtk/gtktreemodelfilter.c: * gtk/gtknotebook.c: s/childs/children/g.
* Don't crash if somebody tries to move a node after itself in a list ofMatthias Clasen2004-07-041-1/+2
| | | | | | | | Sun Jul 4 01:11:07 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktreestore.c (gtk_tree_store_move): Don't crash if somebody tries to move a node after itself in a list of length 1. (#145291, Sampo Nurmentaus)
* Avoid uninitialized use of &parent_iter. (#145007, John Finlay)Matthias Clasen2004-06-261-5/+10
| | | | | | | Fri Jun 25 22:49:58 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized use of &parent_iter. (#145007, John Finlay)
* Commit a forgotten fix.Matthias Clasen2004-06-251-10/+25
|
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* gtk/gtktreestore.c (gtk_tree_store_reorder) Fix up the interpretation ofOwen Taylor2004-03-021-2/+4
| | | | | | | | | | | | | | | | | | Tue Mar 2 16:18:43 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_reorder) * gtk/gtkliststore.c (gtk_list_store_reorder): Fix up the interpretation of new_order to match what it means elsewhere, document the meaning of new_order. * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered): Fix interpretation of new_order. * tests/testcombochange.c (on_reorder): Fix interpretation of new_order. * tests/testcombochange.c (on_reorder): Fix hitting "reorder" with an empty list.
* Fixes #132975.Federico Mena Quintero2004-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-30 Federico Mena Quintero <federico@ximian.com> Fixes #132975. * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL, not FALSE. (gtk_file_system_volume_render_icon): Likewise. * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path): Likewise. * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0, not FALSE. * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not FALSE. * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0, not FALSE. (gtk_text_iter_get_bytes_in_line): Likewise. * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size): Likewise. * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not 0.
* Big TreeView DnD fixage, makes drops on empty models work, makes TreeStoreKristian Rietveld2003-09-091-24/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Sep 10 01:06:44 2003 Kristian Rietveld <kris@gtk.org> Big TreeView DnD fixage, makes drops on empty models work, makes TreeStore DnD work and gets rid of gtk-tree-model-drop-append. Related bugs #95362 and #113314. I don't want to touch this code ever again. * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field. * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check for selection_data->length. * gtk/gtktreeview.c (struct DestRow), (dest_row_free), (set_dest_row), (get_dest_row): we don't store just the row ref anymore, but a struct with the row ref and additional info, (set_destination_row): handle drops on empty space and some style fixes, (get_logical_dest_row): also return path_down_mode/drop_append_mode flags, handle dropping childs on their new parents, rewrite drop append handling into something saner, (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty spaces, (gtk_tree_view_drag_drop): updates for updated backend, (gtk_tree_view_drag_data_received): updates for updated backend, path down mode (treestore DnD) handling, (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag, when we are trying to drop a row on an empty model, (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag. * gtk/gtkliststore.c (gtk_list_store_drag_data_received), (gtk_list_store_row_drop_possible): style and drop-append fixes. * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
* Document restriction on types.Matthias Clasen2003-06-041-1/+4
| | | | | | | | 2003-06-05 Matthias Clasen <maclas@gmx.de> * gtk/gtktreestore.c (gtk_tree_store_new): * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on types.
* ChangeLog too long to mention here. Bugs fixed: #100973, #83195, #87556,Kristian Rietveld2003-01-271-9/+19
| | | | | #99803, #100458. And a couple of non-bugzilla'd bugs (I am soooo sure I misspelled that).
* Fixes #102168.Murray Cumming2003-01-141-0/+9
| | | | | | | | | | | | | | 2002-12-29 Murray Cumming <murrayc@usa.net> Fixes #102168. * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c: Actually implement the GtkTreeDragSource::row_draggable virtual function in GtkListStore and GtkTreeStore instead of just checking whether it's implemented at all. This means that DnD isn't broken by gtkmm's virtual function wrappers. The alternative would be to hard-code the TRUE return value into gtkmm's wrappers, but that's part of GTK+'s implementation, not it's API.
* The full changelog for this commit is too long to paste here, so to avoidKristian Rietveld2003-01-141-6/+6
| | | | | | | | | | | annoying everybody I will write a short summary here. Fixes for: #102890, #103198, #102618, #93629, #100172, #101235, #96650, #102379. Other than that also a ListStore fix and a TreeView scrolling fix. Those interested in the hairy details can checkout gtk+/ChangeLog.
* Document 2.2 API additions.Matthias Clasen2002-11-281-0/+10
|
* add a gtk_list_store_sort_iter_changed line for some special case ...Kristian Rietveld2002-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Nov 26 22:26:04 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtk{tree,list}store.c (gtk_{tree,list}_store_real_set_value): add a gtk_list_store_sort_iter_changed line for some special case ... (#96647 (issue 1), testcases from Soeren Sandmann and Daniel Elstner). Tue Nov 26 22:18:06 2002 Kristian Rietveld <kris@gtk.org> Inconsistent state for toggle renderers, requested by Paolo Bacchilega in #88130. * gtk/gtktreeprivate.h: move GtkCellRendererInfo here. * gtk/gtkcellrenderer.c: moved GtkCellRendererInfo away, fix some indentation issues. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init), (gtk_cell_renderer_toggle_set_property), (gtk_cell_renderer_toggle_get_property), (gtk_cell_renderer_toggle_render): add an inconsistent property. * gtk/gtkstyle.c (gtk_default_draw_check), (gtk_default_draw_option): support drawing inconsistent options/checks for cells. Tue Nov 26 22:14:14 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done), (gtk_cell_renderer_text_start_editing): add a focus_out_id to avoid calling _editing_done twice (which has nasty side-effects). (#96647, (issue 2) testcase from Soeren Sandmann). Tue Nov 26 22:12:21 2002 Kristian Rietveld <kris@gtk.org> #82739, patch from Padraig O'Briain. * gtk/gtktreeviewcolumn.[ch]: add gtk_tree_view_column_cell_get_position() Tue Nov 26 22:06:29 2002 Kristian Rietveld <kris@gtk.org> Yes, this chunk breaks ABI compatibility. Owen knows about it and agreed with it. It doesn't break ABI that bad though, things will still work. Please keep it silent :P. This patch fixes some keynav issues reported by Narayana Pattipati in #81633. (Also mentioned in #92037 (Sun tracking bug)). * gtk/gtkmarshalers.list: add two silly marshalers * gtk/gtktreeview.[ch] (gtk_tree_view_real_select_all), (gtk_tree_view_real_unselect_all), (gtk_tree_view_real_select_cursor_row), (gtk_tree_view_real_toggle_cursor_row), (gtk_tree_view_real_expand_collapse_cursor_row), (gtk_tree_view_real_start_interactive_search): change the return type from void to gboolean, update prototypes, functions, signals and entries in GtkTreeViewClass, (gtk_tree_view_class_init): add select_cursor_row binding for enter key, (gtk_tree_view_key_press): only navigate the header button if the header is also visible ... Tue Nov 26 22:05:48 2002 Kristian Rietveld <kris@gtk.org> API bit of #75745, reported by Richard Hult. * gtk/gtkcellrenderer.h (GtkCellRendererState): add GTK_CELL_RENDERER_FOCUSED, rest of this bug fix will follow later.
* return a value in the range of [-1, 1] instead [0, 1],Kristian Rietveld2002-11-201-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Nov 20 19:29:50 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtkrbtree.c (gtk_rbtree_reorder_sort_func): return a value in the range of [-1, 1] instead [0, 1], (gtk_rbtree_reorder_invert_func): ditto, This makes treeview reordering working on platforms as FreeBSD and solaris, thanks go to Heiner Eichmann for finding this out and sending in a patch (#98251). Wed Nov 20 19:27:07 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreestore.c (node_free): only free the data list if node->data is not NULL, (gtk_tree_store_remove): free the data list from the node if needed. (#94728, pointed out by Peter Bloomfield). Wed Nov 20 19:23:13 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_remove_column): stop editing and set the edited_column to NULL if edited_column is set. (#91288, modified patch from Josh Parsons). Wed Nov 20 19:20:34 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do a full redraw if vadjustment->value is bigger than tree_view->priv->height, (gtk_tree_view_row_deleted): free the row ref if it isn't valid anymore. (#83726, reported by Robert Kinsella).
* modify and free tmp instead of path ... (patch from #97927).Kristian Rietveld2002-11-181-81/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 18 20:42:27 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_expand_to_path): modify and free tmp instead of path ... (patch from #97927). Mon Nov 18 20:31:20 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): only _set_text if celltext->text is not NULL. (#97815, reported and testcase provided by Vitaly Tishkov). Mon Nov 18 20:28:28 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range): also update the anchor_path, makes behaviour consistent with the other selection modification functions. (#96801, reported and testcase provided by Vitaly Tishkov). Mon Nov 18 20:17:56 2002 Kristian Rietveld <kris@gtk.org> Hrm, this fixes up lots of mistakes in my swap/move code ... Some of these mistakes where pointed out by Vitaly Tishkov in bugs #97403, #97404, #97412, #97618. * gtktreestore.[ch]: gtk_tree_store_move is now private, use gtk_tree_store_move_{before,after} instead now. Lots of fixes (more like a rewrite :) in the _move and _swap functions. * gtkliststore.[ch]: likewise.
* Behaviour change, apply changes if the entry of the editable gets a focusKristian Rietveld2002-10-141-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Oct 15 00:53:14 2002 Kristian Rietveld <kris@gtk.org> Behaviour change, apply changes if the entry of the editable gets a focus out event (#82405). * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event): new function, (gtk_cell_renderer_text_start_editing): stop editing and apply changes on focus-out. Tue Oct 15 00:47:35 2002 Kristian Rietveld <kris@gtk.org> Fixes an *evil* GtkTreeModelSort bug, #93629. * gtk/gtktreemodel.c (release_row_references): return if the refs->list is NULL. * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed): if we are swapping two rows (re-insertion on row_changed), also *emit* a rows_reordered signal. oops. Tue Oct 15 00:45:03 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtkliststore.c (gtk_list_store_remove_silently): free the actual link after the node has been removed (#92014). * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_column_finalize): free the cell_list and the child if the exists (#92014). Tue Oct 15 00:40:25 2002 Kristian Rietveld <kris@gtk.org> Don't accept drops if the model has been sorted, #93758) * gtk/gtkliststore.c (gtk_list_store_row_drop_possible): return FALSE if the list has been sorted. * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): check if drag_dest is a TreeStore, return FALSE if the tree has been sorted. Tue Oct 15 00:33:59 2002 Kristian Rietveld <kris@gtk.org> Compiler warning fixage, (#85858, #85859, #85860, #85872) * gtk/gtkcellrendererpixbuf (gtk_cell_renderer_pixbuf_render): s/guint/GtkCellRendererState/. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): ditto. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render), (gtk_cell_renderer_toggle_activate): ditto. * gtk/gtkliststore.c (gtk_list_store_get_flags): a s/guint/GtkTreeModelFlags/ on the return type.
* Documentation improvements.Matthias Clasen2002-10-101-30/+30
|
* Deprecation cleanupManish Singh2002-10-101-10/+13
| | | | | | | | Thu Oct 10 15:13:48 2002 Manish Singh <yosh@gimp.org> * gtk/gtkimcontext.[ch] gtk/gtkimcontextsimple.[ch] gtk/gtkimmodule.c gtk/gtkimmulticontext.[ch] gtk/gtktreestore.[ch]: Deprecation cleanup
* Make GtkTreeRowReference a boxed type.Jonathan Blandford2002-09-111-0/+2
| | | | | | | | | | | | | Wed Sep 11 15:48:38 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.c (gtk_tree_row_reference_get_type): Make GtkTreeRowReference a boxed type. * gtk/gtkliststore.c (gtk_list_store_finalize): free the root list. * gtk/gtktreestore.c (gtk_tree_store_finalize): free the root nodes.
* Minor documentation fixesSoren Sandmann2002-08-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-10 Soren Sandmann <sandmann@daimi.au.dk> * docs/reference/gtk/tree_widget.sgml, docs/reference/gtk/tmpl/gtkdialog.sgml, docs/reference/gtk/tmpl/gtkentry.sgml, docs/reference/gtk/tmpl/gtkfilesel.sgml, docs/reference/gtk/tmpl/gtkfontsel.sgml, docs/reference/gtk/tmpl/gtkfontseldlg.sgml, docs/reference/gtk/tmpl/gtktreemodel.sgml, docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c, gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c, gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c, gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c, gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c, gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c, gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c, gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c, gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c, gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c, gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c, gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c, gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h, gtk/gtkwindow.c: Minor documentation fixes (#89254, patch from Brett Nash; #85809, patch from daten@dnetc.org; #76391, patch from Ross Burton; #74559, Manuel Clos; #73569, #72005, Alexey A. Malyshev; #70061, patch from Dennis Bj"orklund; #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov; #78932, Vitaly Tishkov, patch from Ross Burton; #73306)
* API additions: _move, _reorder and _swap for stores, path constructor.Kristian Rietveld2002-07-261-3/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jul 26 22:53:37 2002 Kristian Rietveld <kris@gtk.org> API additions: _move, _reorder and _swap for stores, path constructor. * gtk/gtktreemodel.[ch] (gtk_tree_path_new_from_indices): new function. * gtk/gtkliststore.[ch]: added gtk_list_store_reorder_func (private), gtk_list_store_reorder, gtk_list_store_swap, gtk_list_store_move. * gtk/gtktreestore.[ch]: added gtk_tree_store_reorder_func (private), gtk_tree_store_reorder, gtk_tree_store_swap, gtk_tree_store_move. Fri Jul 26 22:32:57 2002 Kristian Rietveld <kris@gtk.org> Merge from stable: * gtk/gtktreestore.c (node_free): return FALSE, (gtk_tree_store_finalize): use g_node_traverse instead of g_node_children_foreach, so the whole tree will be freed (#88854, patch from Emmanuel Briot). Fri Jul 26 22:32:24 2002 Kristian Rietveld <kris@gtk.org> Merge from stable: * gtk/gtktreeview.c (gtk_tree_view_button_press): fix some memleaks, (#84426, patch from Matthias Clasen). Fri Jul 26 22:31:25 2002 Kristian Rietveld <kris@gtk.org> Merge from stable: * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): _iter_children check shouldn't be in g_return_return_val_if_fail (pointed out by Josh Green, #88997), (gtk_tree_view_set_model): call _gtk_tree_view_column_unset_model for each column when we unset the model (part of #82484), (gtk_tree_view_get_cell_area): return if we ran out of tree or if we got an invalid path (#82376). * gtk/gtktreeprivate.h: add _gtk_tree_view_column_unset_model. * gtk/gtktreeviewcolumn.c: implement _gtk_tree_view_column_unset_model which disconnects the sort_column_changed_signal (part of #82484). * gtk/gtkliststore.c (gtk_list_store_insert): append row if the given postion is off the end of the tree (#85813). * gtk/gtkentry.c (gtk_cell_editable_key_press_event): let's use 2-space indent, commit changes if up/down keys has been pressed, this overrides the focus key foo so the user won't be surprised (#84665).
* fix warning. (gtk_tree_view_search_iter): fix warning, #85884Jonathan Blandford2002-07-051-2/+2
| | | | | | | | | | | | | | | | Fri Jul 5 02:50:24 2002 Jonathan Blandford <jrb@gnome.org> * gtk/gtktreeview.c (gtk_tree_view_collapse_all): fix warning. (gtk_tree_view_search_iter): fix warning, #85884 * gtk/gtktreestore.c (gtk_tree_store_get_flags): change return value to GtkTreeModelFlags to fix compiler warning, #85883 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags): change return value to GtkTreeModelFlags to fix compiler warning, #85882 * gtk/gtktreemodel.c (gtk_tree_path_prepend_index): fix compiler warning, #85881
* sync up white space/variable names to match tree_store equiv.Jonathan Blandford2002-07-011-6/+10
| | | | | | | | | | Mon Jul 1 17:04:09 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up white space/variable names to match tree_store equiv. * gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we set the value.
* traverse all nodes, not just the leafs (pointed out by Josh Parsons)Kristian Rietveld2002-06-131-1/+1
| | | | | | | Thu Jun 13 16:42:40 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes, not just the leafs (pointed out by Josh Parsons)
* Discussed in #76249.Kristian Rietveld2002-06-041-3/+57
| | | | | | | | | | | | | | | Tue Jun 4 19:24:41 2002 Kristian Rietveld <kris@gtk.org> Discussed in #76249. * gtk/gtkliststore.[ch]: made gtk_list_store_remove return a gboolean, added gtk_list_store_iter_is_valid. * gtk/gtktreestore.[ch]: made gtk_tree_store_remove return a gboolean, added gtk_tree_store_iter_is_valid. * gtk/gtktreemodelsort.[ch]: added VALID_ITER macro as in liststore and treestore sources, added gtk_tree_model_sort_iter_is_valid.
* Merged from gtk-2-0.Kristian Rietveld2002-05-161-0/+2
| | | | | | | | | | Thu May 16 23:59:56 2002 Kristian Rietveld <kris@gtk.org> Merged from gtk-2-0. * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed): set the prev of the next node correctly, so we don't corrupt the list and cause bad things. (fixes #71374)
* fix docsKristian Rietveld2002-04-161-4/+4
| | | | | | Wed Apr 17 00:21:36 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreestore.c (gtk_tree_store_insert_before): fix docs