1. 26 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Make the GtkComboBox in list mode scroll if the list is too large to fit · 9ccad0c9
      Matthias Clasen authored
      Mon Jul 26 00:38:27 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Make the GtkComboBox in list mode scroll if the list is too
      	large to fit in the popup.  (#135543)
      
      	* gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add a
      	scrolled window to the popup in list mode.
      	(gtk_combo_box_list_position): Calculate the height of the
      	popup so that it fits on the screen, set the scrollbar policy
      	of the scrolled window appropriately.
      	(gtk_combo_box_popup): Use the height calculated by
      	gtk_combo_box_list_position().
      	(gtk_combo_box_remeasure): Don't add unnecessary padding.
      	(gtk_combo_box_size_request): But add the focus with here.
      	(gtk_combo_box_list_setup): Connect to enter notify on the
      	popup window to activate auto scrolling.
      	(gtk_combo_box_list_enter_notify): Activate auto scrolling.
      	(gtk_combo_box_list_button_pressed): Setup a timeout for
      	auto scrolling.
      	(gtk_combo_box_list_scroll_timeout): Timeout function for
      	auto scrolling.
      	(gtk_combo_box_list_auto_scroll): Scroll the list when the
      	pointer leaves the window.
      9ccad0c9
  2. 22 Jul, 2004 4 commits
  3. 19 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Make GtkCellView public, since people seem to have uses for it, it is · fe842a54
      Matthias Clasen authored
      2004-07-19  Matthias Clasen  <mclasen@redhat.com>
      
      	Make GtkCellView public, since people seem to have uses for it,
      	it is clean API and we were just conservative in not making it
      	public initially. At the same time, get rid of GtkCellViewMenuItem,
      	which doesn't have any function which can't be served by a
      	GtkMenuItem with a GtkCellView child.
      
      	* gtk/gtk.h: Include gtkcellview.h
      
      	* gtk/Makefile.am (gtk_public_h_sources):
      
      	* gtk/Makefile.am (gtk_private_h_sources):
      	(gtk_c_sources): Remove gtkcellviewmenuitem.[hc]
      	* gtk/gtkcombobox.c: Replace all uses of GtkCellViewMenuItem by
      	GtkMenuItem with a GtkCellView child.
      
      	* gtk/gtkcellviewmenuitem.[hc]: Removed.
      fe842a54
  4. 18 Jul, 2004 1 commit
    • Soeren Sandmann's avatar
      Create an empty target list if targets is NULL. · 19523008
      Soeren Sandmann authored
      Sun Jul 18 15:28:24 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkdnd.c (gtk_drag_source_set, gtk_drag_dest_set): Create an
      	empty target list if targets is NULL.
      
      	* configure.in: Add check for X11/extensions/sync.h. (#147416,
      	Morten Welinder)
      19523008
  5. 16 Jul, 2004 3 commits
  6. 13 Jul, 2004 2 commits
  7. 12 Jul, 2004 1 commit
  8. 07 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Support separators in combo boxes and more generally in tree views · 1aa00e52
      Matthias Clasen authored
      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.
      1aa00e52
  9. 03 Jul, 2004 1 commit
  10. 26 Jun, 2004 2 commits
    • Matthias Clasen's avatar
      Reflect the last change in the docs. · e1a24313
      Matthias Clasen authored
      Sat Jun 26 00:04:36 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
      	* gtk/gtkcombobox.c (gtk_combo_box_set_model): Reflect the
      	last change in the docs.
      e1a24313
    • Matthias Clasen's avatar
      Allow passing NULL to unset the model. (#137211, patch by Mariano · 57e15782
      Matthias Clasen authored
      Fri Jun 25 23:35:42 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
      	* gtk/gtkcombobox.c (gtk_combo_box_set_model): Allow passing
      	NULL to unset the model.  (#137211, patch by  Mariano Suárez-Alvarez)
      
      Fri Jun 25 23:33:05 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Fix the
      	placement policy for GtkComboBoxEntry to be: if it fits below,
      	place below, if it fits above place above, else place in the
      	larger space and scroll so that the scroll arrow appear at the
      	far end.  (#144362, David A. Knight)
      57e15782
  11. 15 Jun, 2004 1 commit
  12. 08 Jun, 2004 1 commit
  13. 04 Jun, 2004 1 commit
  14. 02 Jun, 2004 1 commit
  15. 27 May, 2004 2 commits
  16. 11 May, 2004 2 commits
  17. 10 May, 2004 4 commits
  18. 09 May, 2004 1 commit
  19. 08 May, 2004 1 commit
    • Hans Breuer's avatar
      finally also create the correct mask for 'pseudo mime' icons · 805abff3
      Hans Breuer authored
      2004-05-08  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkfilesystemwin32.c (extract_icon) : finally also
      	create the correct mask for 'pseudo mime' icons
      
      	* gdk/win32/gdkwindow-win32.c(show_window_internal) : also
      	take focus_on_map into account
      
      	* gtk/gtkselection.c : g_message() only with DEBUG_SELECTION
      
      	* gtk/gtkactiongroup.c gtk/gtkcombobox.c :
      	... must return a value
      
      	* gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
      805abff3
  20. 06 May, 2004 3 commits
  21. 14 Apr, 2004 3 commits
    • Matthias Clasen's avatar
      Make all style properties readonly. · a1fd4e4b
      Matthias Clasen authored
      2004-04-14  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcombobox.c:
      	* gtk/gtkwidget.c:
      	Make all style properties readonly.
      a1fd4e4b
    • Matthias Clasen's avatar
      Make the arrow and separator regular children of an hbox inside the · b18a684f
      Matthias Clasen authored
      2004-04-14  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcombobox.c: Make the arrow and separator regular
      	children of an hbox inside the button, and propagate state
      	changes from the button to the cell view.  (part of the fix
      	for #138650, should also fix #137535)
      
      	* gtk/gtkcellview.c (gtk_cell_view_expose): Pass the PRELIT
      	state to gtk_cell_renderer_render() when prelighted. (part
      	of the fix for #138650)
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
      	Use PRELIGHT state when appropriate.  (part of the fix for
      	#138650)
      b18a684f
    • Matthias Clasen's avatar
      Don't spit out warnings if called before the combo box is realized. · 5dc40ee3
      Matthias Clasen authored
      2004-04-14  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't spit
      	out warnings if called before the combo box is
      	realized.  (#139742, Philip Langdale)
      5dc40ee3
  22. 12 Apr, 2004 1 commit
  23. 14 Mar, 2004 1 commit
  24. 13 Mar, 2004 1 commit