summaryrefslogtreecommitdiff
path: root/tests/testcombo.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop an unnecessary includeMatthias Clasen2014-04-021-1/+0
| | | | These tests are better if they can be built standalone.
* Add a big combobox test caseMatthias Clasen2014-04-021-0/+14
| | | | | I've seen many bugs about long combo box popups getting misplaced or wrongly sized. Time to add a testcase.
* Don't call deprecated combobox apiMatthias Clasen2013-09-051-1/+0
| | | | | gtk_combo_box_set_title is not needed anymore, since we dropped the tearoff support.
* tests: don't use tearoff menus in comboboxWilliam Jon McCann2013-07-181-6/+0
|
* Remove most of the stock API usage from the testsWilliam Jon McCann2013-06-241-76/+38
| | | | With the exception of GtkActions and the tests for stock items.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* tests/testcombo.c: Use GdkRGBA instead GdkColorJavier Jardón2011-12-201-4/+5
|
* tests: use GdkRGBA instead GdkColorJavier Jardón2011-06-131-5/+5
|
* Silence more compiler warningsMatthias Clasen2011-02-121-2/+0
|
* Added LISTMODE env var check to testcombo.c so that one can easily test ↵Tristan Van Berkom2011-01-041-0/+14
| | | | listmode.
* Added aligned food menu test to testcombo.cTristan Van Berkom2011-01-041-0/+77
|
* Oops one of my last commits disabled some tests, re-enabling them.Tristan Van Berkom2011-01-041-4/+1
|
* Getting closer to updating the treemenu view properly from the model signalsTristan Van Berkom2011-01-041-2/+4
|
* tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()Benjamin Otte2010-12-151-32/+32
|
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-10-311-11/+11
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-301-11/+11
|
* Use new GtkComboBoxEntry in all testsChristian Dywan2010-10-181-36/+28
|
* Allow GtkComboBox popup to be wider than the combo itself.Tristan Van Berkom2010-10-171-0/+54
| | | | | | | | | | This patch adds a GtkComboBox:popup-fixed-width to decide if the popup's width should be a fixed width matching the combo's allocated width. The patch includes a kindof hack to work around treeviews currently not supporting height-for-width geometry (for list-mode only), this hack can be safely removed once treeviews start reporting natural widths properly.
* Deprecate GtkComboBoxEntry in favor of added properties to GtkComboBoxTristan Van Berkom2010-10-131-3/+11
| | | | | | | | | | | | | GtkComboBox now sports a construct-only "has-entry" property which decides if it uses a GtkEntry to allow additional user input. Also it has a new "entry-text-column" to fetch strings for the entry from the model. This patch deprecates the GtkComboBoxEntry and updates the rest of GTK+ to use the new semantics on GtkComboBox instead. GtkComboBoxEntry will be removed altogether before GTK+ 3, in a later commit.
* Revert "Add length to gtk_tree_path_get_indices"Colin Walters2010-06-281-2/+2
| | | | | | This reverts commit eebb16eb1af11c5327dd06b23df82f7528566739. Was an accidental commit.
* Add length to gtk_tree_path_get_indicesColin Walters2010-06-281-2/+2
| | | | | | 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.
* 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
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-1/+1
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* connect to notify::popup-shown instead of popup-show (the latter does notKristian Rietveld2006-10-181-1/+1
| | | | | | | 2006-10-18 Kristian Rietveld <kris@imendio.com> * tests/testcombo.c (main): connect to notify::popup-shown instead of popup-show (the latter does not exist).
* plug small leak (#339132) dittoPaolo Borelli2006-04-201-9/+28
| | | | | | | 2006-04-20 Paolo Borelli <pborelli@katamail.com> * gtk/gtkcombobox.c: plug small leak (#339132) * tests/testcombo.c: ditto
* Add a tearoff-title property, with getter and setter. (#316482, OlexiyMatthias Clasen2005-11-211-0/+1
| | | | | | | | | | 2005-11-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkcombobox.[hc]: Add a tearoff-title property, with getter and setter. (#316482, Olexiy Avramchenko) * tests/testcombo.c (main): Test gtk_combo_box_set_title
* Add show-popup and hide-popup signals and emit them when the popup isMatthias Clasen2005-11-101-1/+130
| | | | | | | | 2005-11-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.c: Add show-popup and hide-popup signals and emit them when the popup is shown or hidden. (#162531, Tommi Komulainen)
* Demonstrate custom widgets in a GtkComboBox.Matthias Clasen2005-10-091-0/+74
|
* Add Copyright/License information.Matthias Clasen2005-07-131-0/+18
|
* remove unused function.Manish Singh2005-02-041-1/+0
| | | | | | | | | | | | | | | Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org> * gtk/gtkaccelgroup.c (substitute_underscores): remove unused function. * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Add some extra parens for bitop order of operations disambiguiation. * gtk/gtkstock.c: Fix const confusion, make our own copy of the domain when setting a translate function. * tests/testcombo.c: removed unused variable.
* Don't use gtk_cell_renderer_set_values().Matthias Clasen2004-12-141-14/+2
| | | | | | 2004-12-14 Matthias Clasen <mclasen@redhat.com> * tests/testcombo.c (main): Don't use gtk_cell_renderer_set_values().
* 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.