summaryrefslogtreecommitdiff
path: root/gtk/gtkliststore.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge libgdk and libgtkMatthias Clasen2010-12-211-1/+0
| | | | | | | | | | | This commit does a number of things: - remove some dead wchar configury from configure.ac and gdkconfig.h - repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo macros for each included backend, include it in gdk.h and install it in $includedir instead of below $libdir - drop the backend from the library names - build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la It does not yet enable building multiple backends at the same time.
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-4/+4
|
* GtkListStore: move public members to private structureJavier Jardón2010-07-131-13/+2
|
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* reviewed by: <Carlos Garnacho <garnacho@gnome.org>Kjartan Maraas2008-06-201-1/+1
| | | | | | | | | | | | | | | | | 2008-06-20 Kjartan Maraas <kmaraas@gnome.org> reviewed by: <Carlos Garnacho <garnacho@gnome.org> * gtk/gtkbuilder.h: * gtk/gtkliststore.h: * gtk/gtkobject.h: * gtk/gtktextchild.h: * gtk/gtktreemodelfilter.h: * gtk/gtktreemodelsort.h: * gtk/gtktreestore.h: #include <gdkconfig.h> not <gdk/gdkconfig.h> svn path=/trunk/; revision=20653
* Fixed wrongly resolved merge conflicts.Tim Janik2008-06-201-1/+1
| | | | | | * Fixed wrongly resolved merge conflicts. svn path=/trunk/; revision=20633
* Switch to "guint GSEAL (foo) : width;" when packing fields in guints.Tim Janik2008-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gtk/gtkbox.h: * gtk/gtkbutton.h: * gtk/gtkcellrenderer.h: * gtk/gtkcellrenderertext.h: * gtk/gtkcheckmenuitem.h: * gtk/gtkcontainer.h: * gtk/gtkentry.h: * gtk/gtkhandlebox.h: * gtk/gtkimcontextsimple.h: * gtk/gtklabel.h: * gtk/gtkliststore.h: * gtk/gtkmenu.h: * gtk/gtkmenuitem.h: * gtk/gtkmenushell.h: * gtk/gtknotebook.h: * gtk/gtkpaned.h: * gtk/gtkplug.h: * gtk/gtkprintjob.h: * gtk/gtkprogressbar.h: * gtk/gtkrange.h: * gtk/gtkscale.h: * gtk/gtkscrolledwindow.h: * gtk/gtksizegroup.h: * gtk/gtksocket.h: * gtk/gtkspinbutton.h: * gtk/gtkstatusbar.h: * gtk/gtktable.h: * gtk/gtktearoffmenuitem.h: * gtk/gtktextbuffer.h: * gtk/gtktextview.h: * gtk/gtktogglebutton.h: * gtk/gtktoolbar.h: * gtk/gtktreestore.h: * gtk/gtktreeviewcolumn.h: * gtk/gtkwindow.h: Do not specify width inside GSEAL() when packing fields in guints. svn path=/trunk/; revision=20621
* Seal GtkListStoreTim Janik2008-06-201-13/+14
| | | | | | | * gtk/gtkliststore.h: include gdkconfig.h to get GSEAL defined; seal public member fields. svn path=/trunk/; revision=20516
* deprecate GtkDestroyNotify.Michael Natterer2008-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* whitespace cleanup: remove trailing whitespace and excess newlines andMichael Natterer2008-05-281-3/+3
| | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and excess newlines and sprinkled some newlines where needed. Zero code or formatting changes included. svn path=/trunk/; revision=20225
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other headers. * gtk/gtktypebuiltins.h.template * gtk/gtkversion.h.in * gtk/gtk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gtk/gtkprintbackend.h * gtk/gtkprinter-private.h * gtk/gtktextlayout.h * gtk/gtktexttagprivate.h * gtk/gtktexttypes.h * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual headers in these private or semi-private headers. * gtk/gtkimmodule.h: also here because it's not in gtk.h. * gtk/gtkpagesetupunixdialog.h * gtk/gtkprinter.h * gtk/gtkprintjob.h * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers. * gtk/gtkclist.h * gtk/gtkcombo.h * gtk/gtkctree.h * gtk/gtkfilesel.h * gtk/gtkitemfactory.h * gtk/gtklist.h * gtk/gtklistitem.h * gtk/gtkoldeditable.h * gtk/gtkoptionmenu.h * gtk/gtkpixmap.h * gtk/gtkpreview.h * gtk/gtksignal.h * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h> instead of individual headers in these deprecated headers. They don't get included at all when GTK_DISABLE_DEPRECATED is defined, so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED and include them individually, which should continue to work. * gtk/gtkclist.c: include "gtkctree.h" because of the change above. svn path=/trunk/; revision=20221
* Fix #399071, suggestion from Benoit Dejean.Kristian Rietveld2007-06-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | 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
* Trivial cleanups. (#169647, #303455, Fabricio Barros Cabral, BenoitMatthias Clasen2005-06-211-6/+4
| | | | | | | 2005-06-21 Matthias Clasen <mclasen@redhat.com> * gtk/*.h: Trivial cleanups. (#169647, #303455, Fabricio Barros Cabral, Benoit Carpentier)
* Add functions which allow faster insertion of rows in sorted list stores.Matthias Clasen2004-12-091-0/+10
| | | | | | | | | 2004-12-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkliststore.h: * gtk/gtkliststore.c (gtk_list_store_insert_with_values): (gtk_list_store_insert_with_valuesv): Add functions which allow faster insertion of rows in sorted list stores. (#160063)
* Mark as const.Matthias Clasen2004-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkuimanager.h (gtk_ui_manager_get_type): * gtk/gtktreeview.h (gtk_tree_view_get_type): * gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type): * gtk/gtktreestore.h (gtk_tree_store_get_type): * gtk/gtktreeselection.h (gtk_tree_selection_get_type): * gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type): * gtk/gtktreemodel.h (gtk_tree_iter_get_type): (gtk_tree_path_get_type): (gtk_tree_row_reference_get_type): * gtk/gtktoolitem.h (gtk_tool_item_get_type): * gtk/gtktoolbutton.h (gtk_tool_button_get_type): * gtk/gtktoggleaction.h (gtk_toggle_action_get_type): * gtk/gtkthemes.h (gtk_theme_engine_get_type): * gtk/gtktextiter.h (gtk_text_iter_get_type): * gtk/gtksettings.h (gtk_settings_get_type): * gtk/gtkselection.h (gtk_selection_data_get_type): * gtk/gtkradioaction.h (gtk_radio_action_get_type): * gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type): * gtk/gtkliststore.h (gtk_list_store_get_type): * gtk/gtkiconview.h (gtk_icon_view_get_type): * gtk/gtkicontheme.h (gtk_icon_info_get_type): * gtk/gtkiconfactory.h (gtk_icon_factory_get_type): (gtk_icon_set_get_type): (gtk_icon_source_get_type): * gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type): * gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type): * gtk/gtkfilesystem.h (gtk_file_folder_get_type): (gtk_file_info_get_type, gtk_file_path_get_type): (gtk_file_system_get_type): * gtk/gtkfilefilter.h (gtk_file_filter_get_type): * gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type): * gtk/gtkfilechooser.h (gtk_file_chooser_get_type): * gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type): * gtk/gtkexpander.h (gtk_expander_get_type): * gtk/gtkentrycompletion.h (gtk_entry_completion_get_type): * gtk/gtkcombobox.h (gtk_combo_box_get_type): * gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type): * gtk/gtkclipboard.h (gtk_clipboard_get_type): * gtk/gtkcellview.h (gtk_cell_view_get_type): * gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type): * gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type): * gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type): * gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type): * gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type): * gtk/gtkcelllayout.h (gtk_cell_layout_get_type): * gtk/gtkactiongroup.h (gtk_action_group_get_type): * gtk/gtkaction.h (gtk_action_get_type): * gtk/gtkaccessible.h (gtk_accessible_get_type): * gtk/gtkaccelmap.h (gtk_accel_map_get_type): * gtk/gtkaccelgroup.h (gtk_accel_group_get_type): * gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const. * gtk/gtkicontheme.h: Don't mark gtk_icon_theme_error_quark() as const, to be consistent with all the other error_quark functions. (technically they are const, but since these are called only in error paths, giving the compiler better optimization opportunities doesn't matter much) * gtk/gtk.symbols: * gdk/gdk.symbols: Add attribute annotations. * gtk/makegtkalias.pl: * gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE. * gtk/Makefile.am (gtk.def): * gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep PRIVATE.
* gtk/gtkexpander.cSoeren Sandmann2004-08-221-1/+1
| | | | | | | | | | | | | | | | | | | | Sun Aug 22 16:55:15 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkexpander.c * gtk/gtkalignment.c: * gtk/gtktexttag.c Make enums match property names. Found by a script by Tommi Komulainen. * gtk/gtkpaned.c (gtk_paned_class_init): fix min/max mixup. Sun Aug 22 16:09:49 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkliststore.h (struct _GtkListStore): * gtk/gtkliststore.c (gtk_list_store_init): * gtk/gtkliststore.c (gtk_list_store_insert): * gtk/gtkliststore.c (gtk_list_store_remove): Restore length field; PyGTK and maybe others use it directly.
* New function.Soeren Sandmann2004-08-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | Sat Aug 14 17:56:33 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkentry.c (gtk_entry_get_pixel_ranges): New function. * gtk/gtkentry.c (in_selection): New function using gtk_entry_get_pixel_ranges() to determine whether a click is in the selection. Improve entry behavior wrt. dragging and selecting. Bug #143249. Sat Aug 14 17:53:46 2004 Soeren Sandmann <sandmann@daimi.au.dk> * configure.in: Require glib 2.5.2 * gtk/gtksequence.[ch]: New internal data structure. * gtk/gtkliststore.[hc]: Reimplement in terms of new data structure * tests/Makefile.am (testtreemodel_SOURCES): * tests/testtreemodel.c: New test program written by Matthias.
* modify and free tmp instead of path ... (patch from #97927).Kristian Rietveld2002-11-181-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Deprecation cleanupManish Singh2002-10-071-6/+6
| | | | | | | | | Mon Oct 7 11:59:33 2002 Manish Singh <yosh@gimp.org> * gtk/gtkliststore.[ch] gtk/gtktreedatalist.[ch] gtk/gtktreednd.c gtk/gtktreemodel.[ch] gtk/gtktreemodelsort.[ch] gtk/gtktreeselection.[ch] gtk/gtktreesortable.[ch] gtk/gtktreestore.[ch]: Deprecation cleanup
* API additions: _move, _reorder and _swap for stores, path constructor.Kristian Rietveld2002-07-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* Discussed in #76249.Kristian Rietveld2002-06-041-1/+3
| | | | | | | | | | | | | | | 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.
* Massive padding addition to class structures.Owen Taylor2002-02-231-0/+6
| | | | | | | | Sat Feb 23 11:54:12 2002 Owen Taylor <otaylor@redhat.com> * gtk/*.h gdk/*.h: Massive padding addition to class structures. * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
* fix evil ref bug where the wrong row and a deleted row was unreffed. FoundJonathan Blandford2002-02-091-0/+3
| | | | | | | | Fri Feb 8 21:25:56 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix evil ref bug where the wrong row and a deleted row was unreffed. Found by Darin Adler <darin@bentspoon.com>
* s/obj/klass/ where appropriatejacob berkman2001-12-121-1/+1
| | | | | | 2001-12-12 jacob berkman <jacob@ximian.com> * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
* new "model" construct property for language bindings.Jonathan Blandford2001-11-141-31/+35
| | | | | | | | | | | | | Tue Nov 13 21:00:59 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new "model" construct property for language bindings. * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New function to let you set the column types of a GtkTreeStore for language bindings. * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
* Write documentation Write documentationJonathan Blandford2001-09-081-8/+8
| | | | | | | | | Sat Sep 8 14:19:49 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c: Write documentation * gtk/gtktreestore.c: Write documentation Quick Documentation cleanup pass.
* handle default sort featureJonathan Blandford2001-09-031-0/+3
| | | | | | | | | | | | | | | Mon Sep 3 18:03:56 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func): handle default sort feature * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func): new function to handle default sort. (gtk_tree_sortable_has_default_sort_func): check if default sort is set. * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): handle default sort feature
* use GtkSortType instead of GtkTreeSortOrder. (#59173).Kristian Rietveld2001-08-231-1/+1
| | | | | | | | | Thu Aug 23 20:01:41 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch], gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch], gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder. (#59173).
* Fix a small typo. It's LIST_STORE, not LISTSTORE.Anders Carlsson2001-08-221-1/+1
| | | | | | | 2001-08-22 Anders Carlsson <andersca@gnu.org> * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo. It's LIST_STORE, not LISTSTORE.
* add missing gtk_list_store_newv prototype.James Henstridge2001-07-041-0/+2
| | | | | | 2001-07-04 James Henstridge <james@daa.com.au> * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
* changed new_with_types to just plain new, fixing the number of columns,Jonathan Blandford2001-06-301-7/+1
| | | | | | | | | | | | | | | | | | Fri Jun 29 22:13:28 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types to just plain new, fixing the number of columns, and column types at creation time. * gtk/gtkliststore.c (gtk_list_store_new): ditto. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the height to a specific font. * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness. * tests/*c: change to work with new store models.
* New functions to clear a model.Jonathan Blandford2001-06-191-1/+1
| | | | | | | | Tue Jun 19 19:13:19 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c (gtk_list_store_clear): * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to clear a model.
* Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS macros toJonathan Blandford2001-05-221-0/+1
| | | | | | | | | | Tue May 22 16:25:27 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview*.h: * gtk/gtkcell*.h: * gtk/gtk*store.h: Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS macros to all objects.
* Forgot to namespace this.Jonathan Blandford2001-03-231-15/+1
| | | | | | | | | | | | | Fri Mar 23 16:13:43 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace this. * gtk/gtktreestore.c (gtk_tree_store_set_value): change from set_cell to set_value * gtk/gtkliststore.c (gtk_list_store_set_value): change from set_cell to set_value
* fix braino. New interface to add cleanup sortable support.Jonathan Blandford2001-03-231-1/+5
| | | | | | | | | | | | | | | | | | | | Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): fix braino. * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable support. * gtk/gtktreeview.c: Addition of initial sortable support. * gtk/gtktreestore.c: Addition of initial sortable support. * gtk/gtkliststore.c: Addition of initial sortable support. * gtk/gtkmarshal.list: yet another marshaller. * gtk/gtktreedatallist.[ch]: shared code between the store models for handling sorting headers.
* renamed "child_toggled" to "has_child_toggled".Jonathan Blandford2001-03-051-11/+11
| | | | | | | | | | | | | | Mon Mar 5 14:38:54 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.c: renamed "child_toggled" to "has_child_toggled". * gtk/gtktreeview.c: Handle removing columns better. Updated to handle new signal name. * gtk/gtktreestore.c: Updated to handle new signal name. * gtk/gtklisttore.c: Updated to handle new signal name. * gtk/gtktreemodelsort.c: Updated to handle new signal name.
* removed signals. Moved to inherit from GObject instead of GtkObject.Jonathan Blandford2001-02-211-2/+2
| | | | | | | | | | | | | | Wed Feb 21 15:41:34 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c: removed signals. Moved to inherit from GObject instead of GtkObject. * gtk/gtkliststore.c: ditto. * gtk/gtktreemodelsort.c: ditto. * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to GtkTreeModelIface, instead of in each model.
* removed gtk_*_store_get, and moved to GtkTreeModel.Jonathan Blandford2001-02-171-6/+0
| | | | | | | | | | | | | | | | | | | | | Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed gtk_*_store_get, and moved to GtkTreeModel. * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added. * gtk/Makefile.am: remove gtktreemodelmapping.[ch] * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you set the func. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data): freeze/thaw notify between setting all the properties for a cell. * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
* fix bug in here where prev pointer was set to the wrong thingHavoc Pennington2001-01-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-30 Havoc Pennington <hp@redhat.com> * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in here where prev pointer was set to the wrong thing * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function (gtk_tree_path_is_descendant): new function * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return cached length (gtk_list_store_get_iter): don't modify iter if we can't get the path. * gtk/gtkliststore.h (struct _GtkListStore): cache the length * gtk/gtktreednd.h: add virtual function row_drop_possible() to GtkTreeDragDest * gtk/gtktreestore.c (copy_node_data): fix varargs type error that was causing segfault * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next pointer to NULL * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter on returning FALSE (gtk_list_store_iter_children): ditto (gtk_list_store_iter_nth_child): ditto (gtk_list_store_iter_nth_child): ditto (gtk_list_store_iter_parent): ditto * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail on iter->user_data != NULL instead of silently accepting it. (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless we are returning TRUE. (gtk_tree_store_iter_children): ditto (gtk_tree_store_iter_nth_child): ditto (gtk_tree_store_iter_parent): ditto (gtk_tree_store_insert): remove handling of parent->user_data == NULL, replace with parent == NULL * gtk/gtktreemodel.c (inserted_callback): put some fixes in here, and a comment explaining things * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest interface support to GtkTreeStore. * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return FALSE if no prev, fix * gtk/gtktreeview.c (set_source_row): use a row reference (set_dest_row): use a row reference
* handle case where sibling == iter (gtk_tree_store_insert_after): handleHavoc Pennington2001-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-10 Havoc Pennington <hp@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case where sibling == iter (gtk_tree_store_insert_after): handle sibling == iter (gtk_tree_store_prepend): remove stamp checks (gtk_tree_store_insert_before): ditto (gtk_tree_store_append): ditto (gtk_tree_store_get_path): ditto (gtk_tree_store_get_value): ditto (gtk_tree_store_iter_has_child): ditto (gtk_tree_store_iter_n_children): ditto (gtk_tree_store_iter_nth_child): ditto (gtk_tree_store_insert_after): ditto (gtk_tree_store_is_ancestor): ditto (gtk_tree_store_iter_depth): ditto (gtk_tree_store_insert_before): assert that sibling's parent is the same as the passed-in parent (gtk_tree_store_insert_after): assert that sibling's parent is the same as the passed-in parent * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience function to get the first iterator in a model * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove, conventionally the "root" in this sense is just NULL afaict. * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case where sibling == iter (gtk_list_store_insert_after): handle case where sibling == iter * tests/testtreeview.c (run_automated_tests): fairly lame basic automated tests for ListStore, TreeStore * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer (gtk_list_store_insert): update tail pointer, and fix it to work (gtk_list_store_insert_before): update tail pointer, and fix it to work (gtk_list_store_append): use tail to be faster (gtk_list_store_prepend): fix it, update tail pointer (gtk_list_store_insert_after): fix it, update tail pointer * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for the list
* hack on this someHavoc Pennington2001-01-081-0/+12
| | | | | | | | | | | | | | 2001-01-08 Havoc Pennington <hp@redhat.com> * tests/testtreeview.c: hack on this some * gtk/gtktreestore.c (gtk_tree_store_setv): rename gtk_tree_store_set_valist, v is for arrays, valist for varargs list (gtk_tree_store_getv): rename gtk_tree_store_get_valist * gtk/gtkliststore.h: Add varargs set() and get() convenience functions
* Not sure how this ever worked. Fixed it to use new iter stuff, and addedJonathan Blandford2000-10-271-37/+40
| | | | | | | | | | Fri Oct 27 17:56:26 2000 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c: Not sure how this ever worked. Fixed it to use new iter stuff, and added all the appropriate signals et al. * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this code is internal to gtk only.
* Got rid of GtkTreeNode, and changed it to GtkTreeIter. Added iteratorsJonathan Blandford2000-10-261-24/+25
| | | | | | | | | | | | | | | | | | | | | | | Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to GtkTreeIter. Added iterators everywhere. * gtk/gtktreeviewcolumn.c: Changed to use the iterators. * gtk/gtktreeviewselection.c: Changed to use the iterators. * gtk/gtktreestore.c: Changed to use the iterators. * gtk/gtkliststore.c: Commented out the code. Will convert to iterators tomorrow. * gtk/gtkmodelsimple.c: Commented out the code. Will convert to iterators tomorrow. * gtk/treestoretest.c: Changed to use iterators. * demos/testgtk/main.c: Moved to use the new iterator system.
* Move GtkTreeModel from object to interface.62000-10-161-2/+16
| | | | | | | 2000-10-16 <jrb@redhat.com> * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move GtkTreeModel from object to interface.
* Fix GtkTreeNode *node ->GtkTreeNode node issue.52000-10-151-24/+24
| | | | | | | | | | | 2000-10-15 <jrb@redhat.com> * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h, gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c, gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c, gtk/gtktreemodel.h, gtk/gtktreeselection.c, gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node issue.
* Checked in initial draft of the new tree widget.42000-10-051-0/+87
2000-10-04 <jrb@redhat.com> * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new tree widget.