summaryrefslogtreecommitdiff
path: root/tests/testcombo.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix many sparse warnings.Matthias Clasen2004-10-281-5/+5
|
* Some trees in combo boxes.Matthias Clasen2004-08-021-11/+759
| | | | | | 2004-08-02 Matthias Clasen <mclasen@redhat.com> * tests/testcombo.c: Some trees in combo boxes.
* Change the api for separators to use a separator function instead of aMatthias Clasen2004-07-301-8/+19
| | | | | | | | | | 2004-07-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.h: * gtk/gtkcombobox.c: Change the api for separators to use a separator function instead of a boolean column. * tests/testcombo.c: Update to match the api change.
* Don't leak models. (#148128, Tommi Komulainen)Matthias Clasen2004-07-221-2/+7
| | | | | | | Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de> * tests/testcombo.c (main): Don't leak models. (#148128, Tommi Komulainen)
* === Released 2.5.0 ===GTK_2_5_0Soeren Sandmann2004-07-201-1/+0
| | | | | | | | | | Sun Jul 18 17:21:10 2004 Soeren Sandmann <sandmann@daimi.au.dk> * === Released 2.5.0 === * NEWS: updates * tests/testcombo.c: Fix compilation
* Support separators in combo boxes and more generally in tree viewsMatthias Clasen2004-07-071-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-07 Matthias Clasen <mclasen@redhat.com> Support separators in combo boxes and more generally in tree views (#135873): * gtk/gtkcombobox.h: * gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column): * gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column): Add a ::row-separator-column property with getter and setter, which can indicate a boolean model column to determine which rows are separators. * gtk/gtkcombobox.c: Display separator rows as separator menu items in menu mode, and by using the new treeview separator functionality in list mode. * gtk/gtktreeview.h: * gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func): * gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func): Add a callback to determine whether a row is a separator. * gtk/gtktreeview.c (gtk_tree_view_bin_expose): * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): * gtk/gtktreeview.c (validate_row): Use the new callback to determine whether a row is a separator, and draw it as a separator then. Since separators should take up less vertical space than regular rows, this requires removing the redundant MAX(...,expander_size) calls which appear in many places. Instead, the MAX() is now only done in validate_row(), and only if the row is not a separator. To catch possible side effects of this intrusive change, I have left EXPANDER_MAX() calls in place of the MAX() calls which will emit a warning if something breaks. They should be removed before 2.6. * gtk/gtktreeselection.c (row_is_selectable): Don't let separator rows be selected. * tests/testcombo.c (create_blaat): Add a separator column.
* Support insensitive cells in tree views and combo boxes.Matthias Clasen2004-05-271-1/+28
|
* 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>
* New convenience API to construct simple text combos, implemented by DamonMatthias Clasen2004-02-261-27/+16
| | | | | | | | | | | Thu Feb 26 22:20:44 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcomboboxentry.h: * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New convenience API to construct simple text combos, implemented by Damon Chaplin. * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
* grrrr. broken pipe.Kristian Rietveld2003-11-161-3/+3
|
* implement the GtkCellLayout interface, drop packing/attribute/cell dataKristian Rietveld2003-10-011-18/+22
| | | | | | | | | | | | | | | | | Wed Oct 1 22:43:40 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop packing/attribute/cell data functions from the header, (gtk_cell_view_set_cell_data): added support for cell data funcs. * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop packing/attribute/cell data functions from the header, implemented cell data func support. * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated for the move to GtkCellLayout. * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
* Landing the new ComboBox. Note that only gtkcombobox.h andKristian Rietveld2003-09-261-0/+313
Fri Sep 26 23:49:44 2003 Kristian Rietveld <kris@gtk.org> Landing the new ComboBox. Note that only gtkcombobox.h and gtkcomboboxentry.h are public. * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch], gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files. * gtk/Makefile.am, gtk/gtk.h: adding the new files. * tests/testcombo.c: and a new test. * tests/Makefile.am: adding the new test.