summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add a tearoff-title property, with getter and setter. (#316482, OlexiyMatthias Clasen2005-11-211-0/+5
| | | | | | | | | | 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
* Make gtk_combo_box_get_active_text do the right thing for GtkComboBoxEntryMatthias Clasen2005-04-011-1/+3
| | | | | | | | | | | | | | | | 2005-04-01 Matthias Clasen <mclasen@redhat.com> Make gtk_combo_box_get_active_text do the right thing for GtkComboBoxEntry (#171373, Robert Staudinger) * gtk/gtkcombobox.h: Add a get_active_text vfunc. * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And implement it here. * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text): Implement get_active_text by always returning the content of the entry.
* 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.
* Fix #150125:Matthias Clasen2004-08-161-0/+3
| | | | | | | | | | | Mon Aug 16 01:35:25 2004 Matthias Clasen <maclas@gmx.de> Fix #150125: * gtk/gtkcombobox.[hc]: Add a ::focus-on-click property and change the default behaviour to focus on click. * gtk/gtkbutton.c (gtk_button_set_focus_on_click): Typo fix.
* Change the api for separators to use a separator function instead of aMatthias Clasen2004-07-301-3/+5
| | | | | | | | | | 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.
* New function necessary to make GtkComboBox accessible. (#132847, PadraigMatthias Clasen2004-07-271-0/+1
| | | | | | | | | 2004-07-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.h: * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New function necessary to make GtkComboBox accessible. (#132847, Padraig O'Briain)
* Add a combo box cell renderer.Matthias Clasen2004-07-161-0/+3
|
* Support separators in combo boxes and more generally in tree viewsMatthias Clasen2004-07-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Rename function parameters from index to index_ to prevent clash with BSDMatthias Clasen2004-06-021-1/+1
| | | | | | | | | | | | Tue Jun 1 23:14:46 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktoolbar.h: * gtk/gtktoolbar.c: * gtk/gtkentrycompletion.h: * gtk/gtkentrycompletion.c: * gtk/gtkcombobox.h: * gtk/gtkcombobox.c: Rename function parameters from index to index_ to prevent clash with BSD index(). (#143001)
* Support tearoffable combo boxes (in menu mode). Add a new property,Matthias Clasen2004-05-101-0/+4
| | | | | | | | 2004-05-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.h: * gtk/gtkcombobox.c: Support tearoffable combo boxes (in menu mode). Add a new property, add-tearoffs, for this. (#135956)
* Reverse accidental commit.Matthias Clasen2004-05-061-11/+0
|
* Add missing getters for readwrite properies. (#135649)Matthias Clasen2004-05-061-0/+3
| | | | | | | | | Thu May 6 00:02:21 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width): (gtk_combo_box_get_row_span_column): (gtk_combo_box_get_column_span_column): Add missing getters for readwrite properies. (#135649)
* Add gtk_combo_box_get_active_text() convenience function. (#136372,Matthias Clasen2004-05-061-0/+12
| | | | | | | | | Wed May 5 23:42:42 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcombobox.h: * gtk/gtkcombobox.c (gtk_combo_box_get_active_text): Add gtk_combo_box_get_active_text() convenience function. (#136372, Christian Neumeir, patch by Olivier Andrieu)
* A forgotten file.Matthias Clasen2004-02-171-0/+4
|
* move function to a somewhat more logical place,Kristian Rietveld2003-11-191-0/+2
| | | | | | | | Wed Nov 19 23:19:23 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function to a somewhat more logical place, (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
* Fixes #124373, Murray Cumming.Kristian Rietveld2003-11-161-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 17 00:11:21 2003 Kristian Rietveld <kris@gtk.org> Fixes #124373, Murray Cumming. * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property is no longer construct only, (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal), (gtk_combo_box_menu_fill): new functions, (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy), (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup), (gtk_combo_box_list_destroy): updated, (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed functions, (gtk_combo_box_set_model): is now public, updated, (gtk_combo_box_get_model): small update. * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the text_column property is no longer construct only, (gtk_combo_box_entry_set_text_column): now public, (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model): new/changed functions. * tests/testcombo.c: updated.
* Fix licensing (I managed to put it under GPL licensing instead ofKristian Rietveld2003-10-241-8/+8
| | | | | | | | | | Fri Oct 24 20:31:35 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch], gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch], gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it under GPL licensing instead of LGPL...). (Fixes #125381, Soeren Sandmann).
* add padding to the class structure. ditto. ditto.Kristian Rietveld2003-10-151-0/+6
| | | | | | | | Wed Oct 15 22:31:09 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcombobox.h: add padding to the class structure. * gtk/gtkcomboboxentry.h: ditto. * gtk/gtkentrycompletion.h: ditto.
* New function to set the active row by iter.Jonathan Blandford2003-10-141-0/+4
| | | | | | | | | | Tue Oct 14 16:10:21 2003 Jonathan Blandford <jrb@redhat.com> * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function to set the active row by iter. * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function to get the active row by iter.
* Move GET_PRIVATE macros from header to implementation.Matthias Clasen2003-10-111-1/+0
| | | | | | | | | | Sun Oct 12 01:10:29 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkalignment.[hc]: * gtk/gtkcombobox.[hc]: * gtk/gtkcomboboxentry.[hc]: * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros from header to implementation.
* implement the GtkCellLayout interface, drop packing/attribute/cell dataKristian Rietveld2003-10-011-12/+0
| | | | | | | | | | | | | | | | | 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/+102
| | | | | | | | | | | | | | | | 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.
* Conversion to use Paolo Molaro's GtkCombo instead of GtkComboBoxOwen Taylor1998-01-201-67/+0
|
* misc modsElliot Lee1998-01-131-2/+2
|
* copyright noticesElliot Lee1998-01-081-0/+1
|
* New widget (GtkComboBox) and fixed gdk_window_init to initialize ↵Elliot Lee1998-01-081-0/+66
gdk_root_parent some more