summaryrefslogtreecommitdiff
path: root/tests/treestoretest.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Deprecation cleanupManish Singh2002-10-131-29/+29
| | | | | | | | | | | | | | | Sun Oct 13 16:20:41 2002 Manish Singh <yosh@gimp.org> * tests/pixbuf-randomly-modified.c tests/prop-editor.c tests/testcalendar.c tests/testdnd.c tests/testgtk.c tests/testinput.c tests/testmultidisplay.c tests/testmultiscreen.c tests/testrgb.c tests/testselection.c tests/testsocket.c tests/testsocket_common.c tests/testtext.c tests/testtextbuffer.c tests/testtreecolumns.c tests/testtreeedit.c tests/testtreeflow.c tests/testtreefocus.c tests/testtreesort.c tests/testtreeview.c tests/testxinerama.c tests/treestoretest.c: Deprecation cleanup * tests/Makefile.am: Added disable deprecation flags
* more changes in an attempt to get it right. It's not yet ready for generalKristian Rietveld2001-10-241-1/+30
| | | | | | | | | | | | | | | Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtktreemodelsort.c: more changes in an attempt to get it right. It's not yet ready for general consumption. * tests/treestoretest.c: add a button and entry for the new iter_change function (iter_change): new function, to test the row_changed signal implementation of the GtkTreeModelSort * tests/testtreesort.c: cleanups, changes to test more features of the GtkTreeModelSort at once
* Fix to use GtkSelectionMode. ditto ditto ditto.Jonathan Blandford2001-08-271-1/+1
| | | | | | | | | Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com> * tests/testtreefocus.c (main): Fix to use GtkSelectionMode. * tests/treestoretest.c (make_window): ditto * demos/gtk-demo/main.c (create_tree): ditto * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
* gtk/gtktooltips.c tests/testtreesort.c inserted some casts to get rid ofSven Neumann2001-08-191-27/+36
| | | | | | | | | 2001-08-19 Sven Neumann <sven@gimp.org> * gtk/gtktooltips.c * tests/testtreesort.c * tests/treestoretest.c: inserted some casts to get rid of compiler warnings.
* Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>>Jonathan Blandford2001-08-191-4/+0
| | | | | | | | | | | | | | | | | * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell. * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column. (_gtk_tree_view_find_node): If *node is NULL, *tree should be NULL too. * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref column/renderers. * tests/testtreecolumns.c: ditto * tests/testtreefocus.c: ditto * tests/testtreesort.c: ditto * tests/testtreeview.c: ditto * tests/treestoretest.c: ditto
* Ignore the sgml directory made by gtkdoc. Use gtk_window_set_resizableDarin Adler2001-07-181-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * .cvsignore: Ignore the sgml directory made by gtkdoc. * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable instead of the deprecated gtk_window_set_policy. * demos/testpixbuf-scale.c: Add missing <stdlib.h> include. * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize function to get rid of warning and some code too. * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add missing const. * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove unused local. * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing const. * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list), (gdk_utf8_to_compound_text): Add missing const. * gtk/gtkimage.c: (gtk_image_expose): Remove unused local. * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing cast and get rid of an unnecessary one. * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local. * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused local. * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level): Remove unused local. * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add missing const. * tests/testsocket.c: (add_child): Add cast so the printf format doesn't make us implicitly depend on what integer type gtk_socket_get_id returns. * tests/testtextbuffer.c: Add missing const. * tests/testtreefocus.c: (main): Remove unused local. * tests/treestoretest.c: (iter_remove): Remove unused local. (uppercase_value): Remove unused function. (make_window): Add statement to quiet the compiler's uninitialized variable warning.
* changed new_with_types to just plain new, fixing the number of columns,Jonathan Blandford2001-06-301-1/+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.
* fixes to compile with G_DISABLE_COMPATHavoc Pennington2001-06-291-12/+12
| | | | | | | | | 2001-06-29 Havoc Pennington <hp@redhat.com> * Throughout: fixes to compile with G_DISABLE_COMPAT (s/g_signal_connectc/g_signal_connect/, s/g_signal_newc/g_signal_new/, s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
* New function to reflect that you can (hypothetically) pack cell renderersJonathan Blandford2001-06-271-1/+1
| | | | | | | | | | | | | | | | | | Wed Jun 27 19:40:31 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start_cell_renderer): New function to reflect that you can (hypothetically) pack cell renderers into a column. (gtk_tree_view_column_pack_end_cell_renderer): ditto. (gtk_tree_view_column_cell_is_visible): Move more functionality to the column. (gtk_tree_view_column_cell_can_focus): Move more functionality to the column. * gtk/gtktreeview.c: Move to use new column-packing code. (gtk_tree_view_real_expand_row): remove totally braindead code. (gtk_tree_view_real_collapse_row): ditto.
* Fix bug where collapsing a selected row would result in the cursor/anchorJonathan Blandford2001-06-181-2/+3
| | | | | | | | Mon Jun 18 19:41:38 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug where collapsing a selected row would result in the cursor/anchor getting screwed up.
* Rename gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.Jonathan Blandford2001-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename gtk_tree_sortable_sort_column_id_set_func. It's much shorter now. * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!! Now I can really reorder/sort all Store widgets. treesorttest seems to just work now. * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops. testtreesort worked through a big coincidence all this time. * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty code. * tests/testtreecolumns.c: Big 'ol warning at the top letting people know that this code should never ever ever be copied. HA! While everyone else was busy flaming eash other over configuration engines, I secretly got sorting completely working with store widgets and GtkTreeView. GtkTreeModelSort, here I come!!!!!
* Whoops. Forgot this a couple months ago. Now GtkTreeStore sort of sorts.Jonathan Blandford2001-06-141-6/+14
| | | | | | | | | | | Thu Jun 14 19:21:27 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops. Forgot this a couple months ago. Now GtkTreeStore sort of sorts. I'll finish it off tonight, though it basically works now when it's a list. Also, I have a sinking feeling neither GtkTreeStore or GtkListStore actually resort when adding a new item. I'll look into it.
* Now it's a GObject instead of a GtkObject. TheJonathan Blandford2001-06-071-4/+4
| | | | | | | | | | | | | | Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c: Now it's a GObject instead of a GtkObject. The GtkTreeSelection::selection_changed signal is now the GtkTreeSelection::changed signal. * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection object. * tests/gtktree*.c: Modified to deal with new GtkTreeSelection object.
* added accumulator data argument to g_signal_newc() functions.Tim Janik2001-03-081-12/+12
| | | | | | | | | | | | | | | Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org> * *.c: added accumulator data argument to g_signal_newc() functions. * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): * gtk/gtktreeview.c (gtk_tree_view_setup_model): * gtk/treestoretest.c (make_window): s/g_signal_connect/g_signal_connectc/. * gtk/gtktextbuffer.c: completed signal arg fixups, they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
* Move handling of buttons fully in gtktreeviewcolumn. This code is lessJonathan Blandford2001-03-021-12/+12
| | | | | | | | | | | | | Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button): Move handling of buttons fully in gtktreeviewcolumn. This code is less interrelated then it was, but it still requires the GtkTreeView to map it. * test/testtreecolumn.c: Now I can add a column to one view, remove it, add it to the another view, remove it, then re-add it to the first. Nifty.
* Add a "markup" property.Alexander Larsson2001-02-201-6/+2
| | | | | | | | | | | 2001-02-20 Alexander Larsson <alexl@redhat.com> * gtk/gtkcellrenderertext.[ch]: Add a "markup" property. * gtk/treestoretest.c: Use the markup property, remove some leftover stuff from GtkTreeModelMapping.
* removed gtk_*_store_get, and moved to GtkTreeModel.Jonathan Blandford2001-02-171-24/+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
* New files. Implement GtkTreeModelMapping.Alexander Larsson2001-02-161-17/+67
| | | | | | | | | | | | | | | | 2001-02-16 Alexander Larsson <alexl@redhat.com> * gtk/gtktreemodelmapping.[ch]: New files. Implement GtkTreeModelMapping. * gtk/Makefile.am: Add gtktreemodelmapping.[ch]. * gtk/gtk.h: Add gtktreemodelmapping.h * gtk/treestoretest.c: Test the GtkTreeModelMapping
* Rename some stuff:Havoc Pennington2001-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-04 Havoc Pennington <hp@redhat.com> Rename some stuff: s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g; s/GtkModelSimple/GtkTreeModelSimple/g; s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g; s/gtk_model_simple/gtk_tree_model_simple/g; s/gtkmodelsimple/gtktreemodelsimple/g; s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g; s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g; s/column_set_col_type/column_set_sizing/g; s/GtkTreeSelectionType/GtkTreeSelectionMode/g; s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g; s/GtkCellRendererType/GtkCellRendererState/g; * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h (gtk_cell_renderer_toggle_class_init): change "state" property to "active", to match GtkToggleButton (gtk_cell_renderer_toggle_get_active): new function, bug 40269 (gtk_cell_renderer_toggle_set_active): new function (gtk_cell_renderer_toggle_set_property): route changes to toggle state through gtk_cell_renderer_set_active
* :get_property): remove g_value_init calls, as they are no longer needed.Jonathan Blandford2000-12-211-10/+14
| | | | | | | | | | | | | | 2000-12-20 Jonathan Blandford <jrb@redhat.com> * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init calls, as they are no longer needed. * gtk/gtktreemodelsort.c: Fix up the comparison code. * gtk/gtktreemodel.h: Start work on ::reordered signal. Need to figure out how to emit a signal on an interface.
* sync to homeJonathan Blandford2000-11-221-11/+20
|
* Add convertion functions to let you convert to and from relative path'sJonathan Blandford2000-11-211-33/+83
| | | | | | | | | | 2000-11-20 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodelsort.h: Add convertion functions to let you convert to and from relative path's and iters. * gtk/treestoretest.c: move to having a sorted/unsorted view. Start testing sorting functions a bit better. Currently broken -- will fix in morning.
* use the new BOXED marshallers.Jonathan Blandford2000-11-101-1/+1
| | | | | | | | | | | | | | | | | | Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new BOXED marshallers. * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this. (gtk_list_store_class_init): use the new BOXED marshallers. * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change new_with_values to new_with_types. (gtk_tree_store_get_column_type): add this. (gtk_tree_store_class_init): use the new BOXED marshallers. * gtk/gtkmarshal.list: Added a number of BOXED marshallers to mirror some POINTER marshallers.
* added more fields to allow more interesting iterators. Also, made theJonathan Blandford2000-11-091-6/+14
| | | | | | | | | | | | | Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to allow more interesting iterators. Also, made the lifecycle of iterators more explicit. * gtk/gtktreemodelsort.[ch]: New model for sorting. * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed types.
* Not sure how this ever worked. Fixed it to use new iter stuff, and addedJonathan Blandford2000-10-271-46/+41
| | | | | | | | | | 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-60/+131
| | | | | | | | | | | | | | | | | | | | | | | 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.
* New function proposed by Guy Harris <gharris@flashcom.net>. Also, addedJonathan Blandford2000-10-161-1/+1
| | | | | | | | 2000-10-15 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function proposed by Guy Harris <gharris@flashcom.net>. Also, added API docs to all public functions.
* Forgot this fileJonathan Blandford2000-10-061-25/+17
|
* Checked in initial draft of the new tree widget.42000-10-051-0/+206
2000-10-04 <jrb@redhat.com> * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new tree widget.