1. 14 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      Whoops. Forgot this a couple months ago. Now GtkTreeStore sort of sorts. · 426ac9c6
      Jonathan Blandford authored
      Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
      	this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
      	finish it off tonight, though it basically works now when it's a
      	list.  Also, I have a sinking feeling neither GtkTreeStore or
      	GtkListStore actually resort when adding a new item.  I'll look
      	into it.
      426ac9c6
  2. 12 Jun, 2001 1 commit
  3. 11 Jun, 2001 1 commit
  4. 08 Jun, 2001 3 commits
    • Jonathan Blandford's avatar
      New keybinding. (gtk_tree_view_focus): Fix merge conflict. · a055d062
      Jonathan Blandford authored
      Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
      	keybinding.
      	(gtk_tree_view_focus): Fix merge conflict.
      a055d062
    • Jonathan Blandford's avatar
      new function to clean up cursor handling. · f92ccfc0
      Jonathan Blandford authored
      Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
      	clean up cursor handling.
      
      	Pretty much nailed single selection motion, and multi-selection
      	focus minus the fact that the anchor isn't quite right.
      f92ccfc0
    • Havoc Pennington's avatar
      geez, don't call g_list funcs on GSList · 74e7da21
      Havoc Pennington authored
      2001-06-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
      	don't call g_list funcs on GSList
      
      	* gtk/gtkwidget.c (gtk_widget_child_focus): replaces
      	gtk_container_focus(), since some widgets have focusable locations
      	which are not other widgets. These widgets should not have to be
      	containers just to manage the focus. For example, GtkHSV is
      	currently a container for no good reason. Also, this cleans
      	up the "if (is_container && is_sensitive && is_drawable)
      	container_focus ()" mess in widget implementations.
      
      	* gtk/gtkcontainer.c (gtk_container_focus): deprecate this
      	function, and have it just call gtk_widget_child_focus().
      
      	* gtk/gtkhsv.c: derive from widget not container
      
      	Throughout: fix to reflect GtkContainer::focus change
      74e7da21
  5. 07 Jun, 2001 5 commits
  6. 05 Jun, 2001 1 commit
  7. 01 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      Initial stab at getting the focus code to work. · 11043de6
      Jonathan Blandford authored
      Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
      	getting the focus code to work.
      	(gtk_tree_view_class_init): Add a bunch of keybindings.
      
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_set_cell_data_func):
      	s/GtkCellDataFunc/GtkTreeCellDataFunc.
      	(_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
      	of "properties_changed" to help justify the death of the latter
      	signal. (-:
      
      	* tests/testtreefocus.c (main): Let some columns be focussable to
      	test focus better.
      11043de6
  8. 25 May, 2001 2 commits
    • Jonathan Blandford's avatar
      Remove almost all instances of GtkCellRenderer in code (all but dnd icon · 710fb020
      Jonathan Blandford authored
      Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
      	instances of GtkCellRenderer in code (all but dnd icon code).
      	Virtualized in GtkTreeViewColumn.  Now I need to move focus in
      	there, and I can do multiple Cells per column.
      
      	* gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
      
      	* gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
      	when model was unreffed prior to removing the row reference.
      710fb020
    • Havoc Pennington's avatar
      get sizes an icon set can render without falling back to missing image · 87684f95
      Havoc Pennington authored
      2001-05-25  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
      	set can render without falling back to missing image icon
      
      	* gtk/gtktextview.c (gtk_text_view_size_request): request full
      	size of text, instead of random values
      
      	* gtk/gtktreeview.c (gtk_tree_view_size_request): request full
      	size of tree view, instead of random values
      
      	* gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
      	image in an appropriate size
      
              * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
      	etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
      
              Throughout: fix GTK_STOCK_BUTTON_ instances
      
      	* gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
      	gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
      	Add a bunch of new stock items/icons
      
      	* gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
      	new function, convenience for inserting columns with a data func
      
      	* gtk/gtkiconfactory.c: keep a list of all existing icon factories
      	(_gtk_icon_factory_list_ids): use list of all factories to
      	generate a list of all known IDs
      
      	* gtk/gtkstock.c (gtk_stock_list_ids): replace
      	gtk_stock_list_items() with a function that returns all IDs known
      	including those for GtkIconFactory.
      87684f95
  9. 16 May, 2001 1 commit
    • Jonathan Blandford's avatar
      You can now set all sorts of properties in any order you wan, whether or · 2970a2fe
      Jonathan Blandford authored
      Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
      	in any order you wan, whether or not the column is added to the
      	tree, or the tree is realized.  Yay!
      
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_setup_sort_column_id_callback): handle
      	sorting columns a lot saner
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
      	new function to actually set wether or not a column is
      	reorderable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
      	if we have 'em.
      
      	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
      	Fix nasty bug where we were showing the button just before
      	realizing it.  As a result, the parent window was
      	tree_view->window instead of tree_view->priv->header_window.
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
      	to let you easily reorder a list or tree.
      2970a2fe
  10. 09 May, 2001 2 commits
    • Jonathan Blandford's avatar
      New function to let user control where columns are dragged. · 6e705640
      Jonathan Blandford authored
      Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
      	function to let user control where columns are dragged.
      
      	* gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
      	Escape is pressed.
      6e705640
    • Jonathan Blandford's avatar
      New "columns_changed" signal. · 3340826a
      Jonathan Blandford authored
      Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@webwynk.net>
      
      	* gtk/gtktreeview.c (gtk_tree_view_class_init): New
      	"columns_changed" signal.
      	(gtk_tree_view_motion_draw_column_motion_arrow): Change column
      	motion code to draw arrows to the side if indicator is outside the
      	widget.
      	(gtk_tree_view_map_expanded_rows): Implement.
      3340826a
  11. 05 May, 2001 1 commit
    • Owen Taylor's avatar
      Fix typo in filename. · d15b4aa5
      Owen Taylor authored
      Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* demos/gtk-demo/images.c (progressive_timeout): Fix
      	typo in filename.
      
      	* gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
      	out FIXME warning; just too annoying.
      d15b4aa5
  12. 02 May, 2001 1 commit
  13. 01 May, 2001 1 commit
  14. 30 Apr, 2001 1 commit
  15. 28 Apr, 2001 2 commits
  16. 26 Apr, 2001 1 commit
    • Jonathan Blandford's avatar
      clean up column dragging code. Revealed some (potential) GdkWindow bugs. · 06817999
      Jonathan Blandford authored
      Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
      	dragging code.  Revealed some (potential) GdkWindow bugs.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
      	_gdk_window_init_position to the end of reparent to fix the case
      	of reparenting when new_x != old_x and new_y != old_y.
      06817999
  17. 23 Apr, 2001 1 commit
    • Jonathan Blandford's avatar
      add missing '}' that got munched by #endif. · 60051ff6
      Jonathan Blandford authored
      Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
      	got munched by #endif.
      
      	* gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
      
      	* gtk/gtktreeview.c: Refactored code to clean up a number of
      	events.
      
      	* gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
      	values to make consistent with other functions.  Spotted by Jeff
      	Franks <jcf@tpg.com.au>.
      
      	* gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
      	declaration spotted by Jeff Franks <jcf@tpg.com.au>.
      60051ff6
  18. 12 Apr, 2001 2 commits
    • Tim Janik's avatar
      get this to compile. · 6070d96d
      Tim Janik authored
      Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
              this to compile.
      6070d96d
    • Jonathan Blandford's avatar
      fix a fixme. · 31210813
      Jonathan Blandford authored
      Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@webwynk.net>
      
              * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
      
              * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
              GTK_TYPE_STRING.
      
              * gtk/gtktreeview.c: New functions to allow initial column
              dragging work.
      
              * gtk/gtktreeviewcolumn.c: Initial column dragging support.
      
              * tests/testtreefocus.c: give dave some love.
      
              * tests/testtreesort.c: Modify test to check really long samples.
      31210813
  19. 02 Apr, 2001 2 commits
    • Jonathan Blandford's avatar
      Bug fix to make trees work again when not sorted. · 461216d4
      Jonathan Blandford authored
      Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
      	work again when not sorted.
      
      	* gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
      	and "expand_row" signal, closing bug 52578.
      
      	* gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
      	support.
      
      	* gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
      	support.
      461216d4
    • Jonathan Blandford's avatar
      BOXED,BOXED,BOXED,BOXED): new marshaller. · 29985af0
      Jonathan Blandford authored
      Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
      	marshaller.
      
      	* gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
      	"changed" signal to "range_changed".
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
      	removing a tree from one model would remove all trees from that
      	model.
      	* gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
      	changed signal instead.
      29985af0
  20. 30 Mar, 2001 1 commit
  21. 29 Mar, 2001 1 commit
    • Jonathan Blandford's avatar
      Massive reordering/sorting work. Now pretty much works. · f19af6f4
      Jonathan Blandford authored
      Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@webwynk.net>
      
      	* gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
      	reordering/sorting work.  Now pretty much works.
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
      	reorder mostly work.  Still need to get the parity correct.
      
      	* gtk/gtktreeviewcolumn.c: Listen for "model" property changed
      	signal, so I can listen for the sort_column_changed signal so I
      	can change my "sort_indicator" property.  Cool.
      f19af6f4
  22. 28 Mar, 2001 3 commits
  23. 24 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      make this somewhat key-navigable · 207e3bb9
      Havoc Pennington authored
      2001-03-23  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtkhsv.c: make this somewhat key-navigable
      
      	* gtk/gtkfontsel.c: mnemonics
      
      	* gtk/gtkgamma.c: mnemonics
      
      	* gtk/gtkcolorsel.c: add mnemonics to labels
      
      2001-03-22  Havoc Pennington  <hp@pobox.com>
      
      	Applied big patch from Seth Lytle to fix event handler return
      	values, slightly modified.
      
      	* gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
      	handled.
      	(gtk_calendar_key_press): return TRUE for GDK_space triggers
      	select_day
      
      	* gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
      	(gtk_clist_button_release): return TRUE if handled
      
      	* gtk/gtkcolorsel.c (mouse_release):
      	(palette_activate):
      	(palette_press):
      	(palette_new):
      	(mouse_press):
      	(get_screen_color):
      	fixed return type (void to gboolean), return TRUE,
      	added GTK_SIGNAL_FUNC cast
      
      	* gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
      	(void to gboolean), and return TRUE
      	(gtk_combo_button_release): changed return value to TRUE after
      	gtk_grab_add on combo->popwin
      
      	* gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
      	collapse or expand
      
      	* gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
      	button/motion
      
      	* gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
      	press/release and motion that trigger act
      
      	* gtk/gtkentry.c (gtk_entry_button_release): return TRUE
      
      	* gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
      	for GDK_Return
      
      	* gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
      	(gtk_list_button_release): return TRUE if selection
      
      	* gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
      	press
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_button_press):
      	(gtk_menu_shell_button_release): chain parent_menu_shell retval
      
      	* gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
      	nothing triggered
      	(gtk_notebook_button_release): return TRUE if we do anything
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_button_press):
      	(gtk_spin_button_button_release): return TRUE or chained retval
      
      	* gtk/gtktext.c (gtk_text_button_press):
      	(gtk_text_button_release): return TRUE
      	(gtk_text_key_press): remove redundant retval code
      
      	* gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
      	and sensitive
      	(gtk_tree_item_subtree_button_click): changed type to gint, and return
      	TRUE if sensitive
      
      	* gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
      	return TRUE
      207e3bb9
  24. 23 Mar, 2001 1 commit
    • Jonathan Blandford's avatar
      fix braino. New interface to add cleanup sortable support. · 21fd434c
      Jonathan Blandford authored
      Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
      	fix braino.
      	* gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
      	support.
      
      	* gtk/gtktreeview.c: Addition of initial sortable support.
      
      	* gtk/gtktreestore.c: Addition of initial sortable support.
      
      	* gtk/gtkliststore.c: Addition of initial sortable support.
      
      	* gtk/gtkmarshal.list: yet another marshaller.
      
      	* gtk/gtktreedatallist.[ch]: shared code between the store models
      	for handling sorting headers.
      21fd434c
  25. 19 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Handle quoting of / with \; properly handle __ in paths, quote " and \n in · 489c376b
      Owen Taylor authored
      Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
      	handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
      
      	* gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
      	  gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
      	  gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
      	  gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
      	Change float to double everywhere with the exception of 0<->1.0 alignment
      	and GtkCurve.
      489c376b
  26. 16 Mar, 2001 2 commits
    • Jonathan Blandford's avatar
      modified to use "row_activated" signal. · 73dc88d2
      Jonathan Blandford authored
      Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* demos/gtk-demo/main.c (row_activated_cb): modified to use
      	"row_activated" signal.
      
      	* gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
      	stupidity.  Lets actually pass in the row with this signal...
      73dc88d2
    • Jonathan Blandford's avatar
      s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN · 4d4af294
      Jonathan Blandford authored
      Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
      
      	* gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
      
      	* gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
      	everything into the ::destroy function, and freed a lot more.
      4d4af294