1. 07 Oct, 2003 9 commits
  2. 06 Oct, 2003 6 commits
  3. 05 Oct, 2003 3 commits
  4. 04 Oct, 2003 5 commits
  5. 03 Oct, 2003 6 commits
  6. 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
  7. 01 Oct, 2003 9 commits
    • Matthias Clasen's avatar
      Doc tweaks- · 186f883d
      Matthias Clasen authored
      186f883d
    • Matthias Clasen's avatar
      Add gtkcellview.h and gtkcellviewmenuitem.h. · cd6f16f5
      Matthias Clasen authored
      2003-10-02  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/Makefile.am (IGNORE_HFILES): Add gtkcellview.h and
      	gtkcellviewmenuitem.h.
      
      	* gtk/tmpl/gtkentrycompletion.sgml:
      	* gtk/tmpl/gtktreemodelfilter.sgml:
      	* gtk/tmpl/gtkcelllayout.sgml:
      	* gtk/tmpl/gtkcombobox.sgml:
      	* gtk/tmpl/gtkcomboboxentry.sgml: New templates.
      
      	* gtk/gtk-sections.txt:
      	* gtk/gtk-docs.sgml: Add sections for GtkEntryCompletion,
      	GtkTreeModelFilter, GtkCellLayout, GtkComboBox, GtkComboBoxEntry.
      
      	* gtk/tmpl/gtktreednd.sgml: Add short description.
      
      	* gtk/gtk-docs.sgml: Move GtkItemFactory to the "Deprecated" chapter.
      
      	* gtk/tmpl/gtktoggletoolbutton.sgml: Fix section title.
      cd6f16f5
    • Federico Mena Quintero's avatar
      Simplify with a macro. This bloats the compiled code, but at least it · feb412c1
      Federico Mena Quintero authored
      2003-10-01  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtkfilechooserimpldefault.c (name_sort_func): Simplify with a
      	macro.  This bloats the compiled code, but at least it makes the
      	human-readable code not egregiously ugly.
      	(size_sort_func): Likewise.
      	(mtime_sort_func): Likewise.
      feb412c1
    • 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
    • cinamod's avatar
      c0addc2e
    • Federico Mena Quintero's avatar
      Use enum values instead of plain numbers for the file lists's sort · da293525
      Federico Mena Quintero authored
      2003-10-01  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtkfilechooserimpldefault.c (tree_selection_changed): Use enum
      	values instead of plain numbers for the file lists's sort columns.
      	(create_file_list): Likewise.
      	(tree_selection_changed): Make the file list start up sorted by
      	name, and don't specify a default sorting function, so that there
      	is no unsorted order.  This is for consistency with Nautilus.
      	(list_sort_column_changed_cb): Callback; we cache whether the sort
      	order for the file list's name column is ascending or not.
      	(compare_with_folders_first): New helper function to sort
      	directories before files.
      	(name_sort_func): Use compare_with_folders_first().
      	(size_sort_func): Likewise.
      	(mtime_sort_func): Likewise.
      
      	Of course this callback mess would be easy in a real language:
      
      	  (set-sort-func sortable NAME_COLUMN
      	    (make-comparer impl (lambda (a b) (strcmp (get-name a) (get-name b)))))
      	  (set-sort-func sortable SIZE_COLUMN
      	    (make-comparer impl (lambda (a b) (compare (get-size a) (get-size b)))))
      	  ... etc ...
      
      	  (define (make-comparer impl f)
      	    (lambda (a b)
      	      (if (eq (is-dir? a) (is-dir? b))
      	          (f a b)
      		  (if (sort-ascending? impl)
      		      (if (is-dir? a) -1 1)
      		      (if (is-dir? a) 1 -1)))))
      da293525
    • Matthias Clasen's avatar
      Introduce a separate "hide_if_empty" property for empty menu handling. · 6e87629f
      Matthias Clasen authored
      2003-10-01  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkaction.c (gtk_action_class_init):
      	(gtk_action_[gs]et_property): Introduce a separate
      	"hide_if_empty" property for empty menu handling.
      	(_gtk_action_sync_menu_visible): ...and use it here.
      
      	* tests/testmerge.c (main): ...and here.
      6e87629f
    • Federico Mena Quintero's avatar
      Added fields for the shortcuts tree and its model. (create_file_list): · 39e208d8
      Federico Mena Quintero authored
      2003-09-30  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtkfilechooserimpldefault.c (struct _GtkFileChooserImplDefault):
      	Added fields for the shortcuts tree and its model.
      	(create_file_list): Don't call
      	gtk_tree_view_column_set_sort_column_id() twice.
      	(create_shortcuts_model): New function.
      	(list_icon_data_func): Use an ICON_SIZE macro instead of a
      	hardcoded value.
      	(list_row_activated): Use _gtk_file_chooser_set_current_folder_path()
      	to avoid converting the GtkFilePath to a URI string.
      	(gtk_file_chooser_impl_default_set_current_folder): Select the
      	appropriate item from the shortcuts list when the current folder
      	changes, to let the user know where he is.
      	(tree_selection_changed): Likewise.
      
      	* gtkfilesystem.h (struct _GtkFileSystemIface): Added methods for
      	::supports_shortcuts(), ::list_shortcuts(), ::set_shortcuts().
      39e208d8
    • Matthias Clasen's avatar
      Fix signal doc comments to pacify gtk-doc. · e8ea4808
      Matthias Clasen authored
      	* gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc
      	comments to pacify gtk-doc.
      e8ea4808
  8. 30 Sep, 2003 1 commit