summaryrefslogtreecommitdiff
path: root/tests/testtreecolumns.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: fix testtreecolumns not to segfault at startupCosimo Cecchi2012-09-271-55/+9
| | | | | The class/object definitions have the wrong size, and we're not using G_DEFINE_TYPE. This fixes the test segfaulting when opening it.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-11-021-5/+5
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-301-5/+5
|
* Use gtk_separator_new() instead gtk_[v|h]separator_new()Javier Jardón2010-10-301-1/+2
|
* Use gtk_button_box_new() instead gtk_[v|h]_button_box_new()Javier Jardón2010-10-301-2/+2
|
* Revert "Add length to gtk_tree_path_get_indices"Colin Walters2010-06-281-3/+3
| | | | | | This reverts commit eebb16eb1af11c5327dd06b23df82f7528566739. Was an accidental commit.
* Add length to gtk_tree_path_get_indicesColin Walters2010-06-281-3/+3
| | | | | | The old version wasn't introspectable as it didn't have a length return parameter. Also, delete gtk_tree_path_get_indices_with_depth, since it's no longer needed.
* Do not use static GTypeInfo and GInterfaceInfoNicola Fontana2009-11-061-4/+4
| | | | | | | | | Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED) and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and GInterfaceInfo structs, while tutorials and source code often use static variables. This commit consistently adopts the former method. https://bugzilla.gnome.org/show_bug.cgi?id=600158
* 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
* Add Copyright/License information.Matthias Clasen2005-07-131-0/+20
|
* modules/engines/ms-windows/msw_rc_style.cManish Singh2004-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 19 15:18:51 2004 Manish Singh <yosh@gimp.org> * modules/engines/ms-windows/msw_rc_style.c * modules/engines/ms-windows/msw_style.c * modules/engines/ms-windows/msw_theme_main.c * modules/engines/pixbuf/pixbuf-main.c * modules/engines/pixbuf/pixbuf-rc-style.c * modules/input/gtkimcontextime.c * modules/input/gtkimcontextxim.c * modules/input/imam-et.c * modules/input/imcedilla.c * modules/input/imcyrillic-translit.c * modules/input/iminuktitut.c * modules/input/imipa.c * modules/input/imthai-broken.c * modules/input/imti-er.c * modules/input/imti-et.c * modules/input/imviqr.c * tests/prop-editor.c * tests/testentrycompletion.c * tests/testfilechooser.c * tests/testmerge.c * tests/testtoolbar.c * tests/testtreecolumns.c * tests/testtreeview.c: get rid of unnecessary casts. * tests/testgtk.c (create_labels): add GTK_LABEL() casts for gtk_label_set_ellipsize() calls. * tests/testicontheme.c (main): remove unused pixbuf variable.
* 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-20/+18
| | | | | | | | | | | | | | | 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
* tests/testtreecolumns.c quit the main loop when the window is destroyed.Sven Neumann2002-04-261-0/+3
| | | | | | | | 2002-04-26 Sven Neumann <sven@gimp.org> * tests/testtreecolumns.c * tests/testtreeview.c: quit the main loop when the window is destroyed. Removed compiler warnings about wrong format in printf().
* Add a "resizable" property, to get rid of theJonathan Blandford2001-11-191-1/+2
| | | | | | | | | | | | | | | | Mon Nov 19 15:30:51 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a "resizable" property, to get rid of the GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag. (gtk_tree_view_column_set_resizable): New function to set resizable. (gtk_tree_view_column_set_resizable): getter. * tests/testtreecolumns.c (add_clicked): modify for above change. * Makefile.am (install-data-hook): remove old .pc files before installing the new one. We used to symlink this, and it will break old installs.
* Add row_draggable() vfunc, and wrapper function.Owen Taylor2001-11-061-56/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 5 22:34:29 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): Add row_draggable() vfunc, and wrapper function. * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make row_drop_possible take a GtkSelectionData, rather than model/row pair. * gtk/gtktreestore.c gtk/gtkliststore.c: Update for new DND interfaces. * gtk/gtktreeview.[ch]: Remove the row_draggable_func location_dropable_func from gtk_tree_view_set_rows_drag_source/dest. and rename them to enable_model_drag_source/dest. * gtk/treeviewcolumn.c: Add DND of columns between rows. Still can't drop _to_ the left tree, but other places work. * gtk/gtktreeview.c (unset_reorderable): Unset the reorderable property if unset/enable_model_drag_source/dest are called manually. * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): Correct for change in depth count handling. * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): Pass in a expose area to gtk_tree_view_column_cell_render()
* Make a GtkCellEditable (get_widget_window_size): Change to let it honorJonathan Blandford2001-09-251-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkentry.c: Make a GtkCellEditable (get_widget_window_size): Change to let it honor size_allocate when a CellEditable. * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and editable changes. (gtk_tree_view_set_cursor): Now you can set the cursor horizontally, as well as start editing. * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing code to look more like the other check buttons. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size): Change the way we calculate cell size. * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller. * demos/gtk-demo/sizegroup.c: Add mnemonics. * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs. Fix logic. * gtk/gtkcellrenderertext.c: Change to be editable. * gtk/gtkcellrenderertoggle.c: Change to be activatable. * test/testtreesort.c: Fix misspelling * test/testreecolumns.c: Add mnemonics. * test/testreeedit.c: New test program.
* Rename interface signals to make them more clear. Also, changeJonathan Blandford2001-09-121-7/+7
| | | | | | | | | | | | | | | | Wed Sep 12 19:01:05 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface signals to make them more clear. Also, change ::range_changed to ::row_changed. * gtk/gtktreemodel.c: Adjust to interface change * gtk/gtktreemodel.h: ditto * gtk/gtktreemodelsort.c: ditto * gtk/gtktreestore.c: ditto * gtk/gtkliststore.c: ditto * gtk/gtktreeview.c: ditto * tests/testtreecolumns.c: ditto * gtk/gtkmarshal.list: Actually remove a marshaller!
* Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>>Jonathan Blandford2001-08-191-1/+1
| | | | | | | | | | | | | | | | | * 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
* changed new_with_types to just plain new, fixing the number of columns,Jonathan Blandford2001-06-301-2/+2
| | | | | | | | | | | | | | | | | | 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-8/+8
| | | | | | | | | 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/)
* up version to 1.3.7, interface age 0, binary age 0. depend on glib 1.3.7.Tim Janik2001-06-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org> * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface age 0, binary age 0. depend on glib 1.3.7. * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack. * gtk/gtkmenubar.c: same here. * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival. * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage. * gtk/gtkentry.c (gtk_entry_focus_in): same here. * gtk/gtkmenubar.c (add_to_window): likewise. * gtk/gtktextbtree.c: and here... * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing. * gtk/gtktoolbar.c (gtk_toolbar_init): once more. * gtk/gtktreemodel.c (connect_ref_callbacks): and another time. * gtk/gtktreeviewcolumn.c: (_gtk_tree_view_column_set_tree_view): yet again. * demos/gtk-demo/images.c (progressive_timeout): demonstrate signal connections without g_signal_connect_data(). * demos/gtk-demo/stock_browser.c (do_stock_browser): second demo of the matter. * demos/testpixbuf.c (main): running out of equality phrases for the ChangeLog, but had to adapt connections here as well. * demos/testanimation.c (progressive_timeout): and for the fun of it, tackled this the same way. * tests/testtext.c (create_view): ok, it's becoming a pain at this point, but had enough enery for one more fix. * tests/testtreecolumns.c (main): stand up man, do your work! * tests/testtreeview.c (set_columns_type): ok, this is the last file i fix, either that's been all of it or CVS gtk is broken yet again.
* New function to reflect that you can (hypothetically) pack cell renderersJonathan Blandford2001-06-271-3/+3
| | | | | | | | | | | | | | | | | | 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.
* s/RESIZEABLE/RESIZABLE/Havoc Pennington2001-06-251-1/+1
| | | | | | | | | 2001-06-25 Havoc Pennington <hp@redhat.com> * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c: s/RESIZEABLE/RESIZABLE/ * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
* Rename gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.Jonathan Blandford2001-06-151-2/+22
| | | | | | | | | | | | | | | | | | | | | | 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!!!!!
* Now it's a GObject instead of a GtkObject. TheJonathan Blandford2001-06-071-8/+8
| | | | | | | | | | | | | | 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.
* Remove almost all instances of GtkCellRenderer in code (all but dnd iconJonathan Blandford2001-05-251-1/+1
| | | | | | | | | | | | | | Fri May 25 19:04:17 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all instances of GtkCellRenderer in code (all but dnd icon code). Virtualized in GtkTreeViewColumn. Now I need to move focus in there, and I can do multiple Cells per column. * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug when model was unreffed prior to removing the row reference.
* Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS macros toJonathan Blandford2001-05-221-5/+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.
* Evil function to deal with very large (TM) amounts of text. May be movedJonathan Blandford2001-05-221-18/+390
| | | | | | | | | | | | | | | | | | | | | Tue May 22 15:13:52 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_fixed_size): Evil function to deal with very large (TM) amounts of text. May be moved to GtkCellRenderer in the future, though I'm not sure it wants to be this accessible. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): More sanity brought to this class. I like it. * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test case. Kids, don't try this at home. * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new convenience function. * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
* You can now set all sorts of properties in any order you wan, whether orJonathan Blandford2001-05-161-4/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | Tue May 15 20:13:24 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties in any order you wan, whether or not the column is added to the tree, or the tree is realized. Yay! * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_setup_sort_column_id_callback): handle sorting columns a lot saner * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable): new function to actually set wether or not a column is reorderable. * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things if we have 'em. * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view): Fix nasty bug where we were showing the button just before realizing it. As a result, the parent window was tree_view->window instead of tree_view->priv->header_window. * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property to let you easily reorder a list or tree.
* Bug fix to make trees work again when not sorted.Jonathan Blandford2001-04-021-1/+1
| | | | | | | | | | | | | | | | Mon Apr 2 19:36:57 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_init): Bug fix to make trees work again when not sorted. * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row" and "expand_row" signal, closing bug 52578. * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal support. * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal support.
* add prerequesite on gobjects.Jonathan Blandford2001-03-081-3/+3
| | | | | | | | | | | | | Thu Mar 8 16:36:00 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite on gobjects. * tests/testtreefocus.c (main): New test file. * tests/testtreeview.c: update to latest glib changes. * tests/testtreecolumns.c: update to latest glib changes.
* renamed "child_toggled" to "has_child_toggled".Jonathan Blandford2001-03-051-2/+18
| | | | | | | | | | | | | | 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.
* Move handling of buttons fully in gtktreeviewcolumn. This code is lessJonathan Blandford2001-03-021-19/+173
| | | | | | | | | | | | | 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.
* Proxy out to _gtk_tree_row_reference_deleted. (inserted_callback): ProxyJonathan Blandford2001-02-281-0/+127
Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.c (deleted_callback): Proxy out to _gtk_tree_row_reference_deleted. (inserted_callback): Proxy out to _gtk_tree_row_reference_inserted. (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to get around signal emission ordering problem. * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all): fix to work with SINGLE (_gtk_tree_selection_internal_select_node): Major sanitization on selections. SINGLE now seems to work. * tests/Makefile.am: add testtreecolumn.c: * tests/testtreecolumn.c: New test. Mostly points out selection bugs currently, but will test columns later. * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty selection bug. I hate touching this code -- it's scary.