1. 18 Nov, 2003 1 commit
    • Kristian Rietveld's avatar
      Fixes based on comments from Owen Taylor, #125264. · e9154691
      Kristian Rietveld authored
      Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Fixes based on comments from Owen Taylor, #125264.
      
      	* gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
      	variable,
      	(gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
      	a resize,
      	(gtk_cell_view_get_size_of_row): new function,
      	(gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
      	(gtk_cell_view_set_values), (gtk_cell_view_set_model),
      	(gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
      	s/cellview/cell_view/ in the function definitions, so they match
      	with the header file.
      
      	* gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
      	flag again (:, and use gtk_cell_view_get_size_of_row instead of
      	the measurer, remove _set_size_request call,
      	(gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
      	instead of the measurer,
      	(gtk_combo_box_style_set): queue a resize,
      	(gtk_combo_box_size_request): update of _remeasure call,
      	(gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
      	(gtk_combo_box_cell_layout_pack_end),
      	(gtk_combo_box_cell_layout_clear),
      	(gtk_combo_box_set_model): get rid of the measurer,
      	(gtk_combo_box_cell_layout_add_attribute),
      	(gtk_combo_box_cell_layout_set_cell_data_func),
      	(gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
      	resize instead of calling _remeasure.
      e9154691
  2. 17 Nov, 2003 2 commits
    • Matthias Clasen's avatar
      Add mouse wheel support. (#126517) · 0725ca9d
      Matthias Clasen authored
      Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
      0725ca9d
    • Kristian Rietveld's avatar
      Temporary size requisition fix. Will fix it for real tonight. · 04c21b2c
      Kristian Rietveld authored
      Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Temporary size requisition fix. Will fix it for real tonight.
      
      	* gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
      	(gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
      	a good width for the child,
      	(gtk_combo_box_cell_layout_add_attribute),
      	(gtk_combo_box_set_cell_data_func),
      	(gtk_combo_box_cell_layout_clear_attributes): update.
      04c21b2c
  3. 16 Nov, 2003 1 commit
    • Kristian Rietveld's avatar
      Fixes #124373, Murray Cumming. · d777b5b4
      Kristian Rietveld authored
      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.
      d777b5b4
  4. 24 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      Fix licensing (I managed to put it under GPL licensing instead of · 2e2b780f
      Kristian Rietveld authored
      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).
      2e2b780f
  5. 23 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      Fix includes. · 3a5b5a0f
      Kristian Rietveld authored
      Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
      	gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
      	gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
      3a5b5a0f
  6. 15 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      mention in the docs that -1 is a valid value and what it means. · 8b34c308
      Kristian Rietveld authored
      Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_get_active),
      	(gtk_combo_box_set_active): mention in the docs that -1 is a valid
      	value and what it means.
      
      	* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
      	item to -1 (default),
      	(gtk_combo_box_entry_active_changed): do nothing when the index is
      	< 0.
      8b34c308
  7. 14 Oct, 2003 1 commit
    • Jonathan Blandford's avatar
      New function to set the active row by iter. · 87a1e40e
      Jonathan Blandford authored
      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.
      87a1e40e
  8. 11 Oct, 2003 2 commits
  9. 10 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      Deprecate. Ditto. · e6100ecd
      Kristian Rietveld authored
      Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcombo.h: Deprecate.
      	* gtk/gtkoptionmenu.h: Ditto.
      
      	* gtk/gtkcombobox.c (gtk_combo_box_size_request),
      	(gtk_combo_box_size_allocate): Rework, things behave better now. Still
      	needs some work on requesting enough size when taking the items in
      	the list into account.
      
      	* gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
      	deprecated" guards.
      	* gtk/gtkinputdialog.c: ditto.
      	* gtk/gtkitemfactory.c: ditto.
      	* gtk/gtkoptionmenu.c: ditto.
      
      	* demos/gtk-demo/menus.c: remove the option menu.
      	* demos/gtk-demo/sizegroup.c: replace the option menus with
      	GtkComboBox.
      	* demos/gtk-demo/textview.c: ditto.
      	(A general GtkComboBox demo will be added later on).
      e6100ecd
  10. 03 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      only set the model on ->priv->cell_view if ->priv->cell_view is non-NULL. · 7fc054e9
      Kristian Rietveld authored
      Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
      	on ->priv->cell_view if ->priv->cell_view is non-NULL.
      
      	* gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
      	field to GtkComboBoxEntryPrivate,
      	(gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
      	(gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
      	(gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
      	a construct-only "text_column" property and reorder code to use it
      	and support inheriting this widget.
      7fc054e9
  11. 02 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      Added API doc comments. · 316109ea
      Kristian Rietveld authored
      Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcombobox.c: Added API doc comments.
      
      	* gtk/gtkcomboboxentry.c: Ditto.
      316109ea
  12. 01 Oct, 2003 1 commit
    • Kristian Rietveld's avatar
      implement the GtkCellLayout interface, drop packing/attribute/cell data · 40743e12
      Kristian Rietveld authored
      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.
      40743e12
  13. 30 Sep, 2003 2 commits
    • Kristian Rietveld's avatar
      set popup_in_progress to TRUE, (gtk_combo_box_menu_show): and back to · 039c6b3b
      Kristian Rietveld authored
      Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
      	popup_in_progress to TRUE,
      	(gtk_combo_box_menu_show): and back to FALSE here; the menu now
      	won't disappear on the first button release. (Reported by Matthias
      	Clasen).
      039c6b3b
    • Kristian Rietveld's avatar
      actually show the child. · b78ee57e
      Kristian Rietveld authored
      Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
      
      	* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
      	Marco Pesenti Gritti).
      b78ee57e
  14. 26 Sep, 2003 1 commit
    • Kristian Rietveld's avatar
      Landing the new ComboBox. Note that only gtkcombobox.h and · c920afd9
      Kristian Rietveld authored
      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.
      c920afd9
  15. 20 Jan, 1998 1 commit
  16. 16 Jan, 1998 1 commit
  17. 13 Jan, 1998 1 commit
  18. 08 Jan, 1998 2 commits