1. 03 Aug, 2014 1 commit
    • Emmanuele Bassi's avatar
      treeview: Deprecated rules-hint · 0ed766ec
      Emmanuele Bassi authored
      The rules-hint property has always been a fairly bad application API, as
      it set some wrong expectations for the developers; deferring to the
      theme makes it impossible to design application reliably, and if this is
      a usability setting we should either impose this setting on every theme,
      or simply drop it.
      
      Our own default theme does not honour the zebra striping, which makes
      this function even more questionable.
      
      In practice, usability studies on zebra striping have demonstrated that
      alternating colors on a list it improves readability just as much as
      clear ruling between rows, or by visually differentiating the selected
      row. Zebra striping improves readability (or, at least, it does not
      hinder it) on static displays, like a table on paper or a document; on a
      dynamic display, like an application's UI, there are different
      strategies that yield similar, if not better, results.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=733312
      0ed766ec
  2. 07 Feb, 2014 1 commit
  3. 05 May, 2013 1 commit
  4. 20 Jan, 2013 1 commit
  5. 28 Dec, 2012 1 commit
  6. 27 Feb, 2012 2 commits
  7. 16 Dec, 2011 1 commit
  8. 16 Nov, 2011 1 commit
  9. 10 Nov, 2011 1 commit
  10. 18 Jan, 2011 1 commit
  11. 07 Jan, 2011 1 commit
    • Kristian Rietveld's avatar
      Introduce gtk_tree_view_is_blank_at_pos() · 4ed78177
      Kristian Rietveld authored
      This function is useful to figure out whether the tree view is "blank"
      at a given location.  For such locations you might want to popup a
      custom popup menu, clear the current selection or start rubber banding.
      In the future, we are planning on updating GtkTreeView's user
      interactions to take advantage of this new function.
      
      Part of bug 350618.
      4ed78177
  12. 08 Nov, 2010 1 commit
  13. 06 Nov, 2010 1 commit
  14. 30 Oct, 2010 1 commit
  15. 26 Oct, 2010 1 commit
  16. 22 Oct, 2010 1 commit
    • Tadej Borovšak's avatar
      Add GtkScrollable interface · 55196a70
      Tadej Borovšak authored
      The GtkScrollable interface provides "hadjustment" and "vadjustment"
      properties that are used by GtkScrolledWindow. It replaces
      the ::set_scroll_adjustment signal. The scrollable interface
      also has ::min-display-width/height properties that can be
      used to control the minimally visible part inside a scrolled window.
      55196a70
  17. 19 Oct, 2010 1 commit
  18. 26 Sep, 2010 1 commit
  19. 14 Jul, 2010 1 commit
  20. 02 May, 2010 2 commits
  21. 24 Jun, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkassistant.h gtk/gtkcellrenderer.h gtk/gtkfilechooserentry.h · a13f698b
      Michael Natterer authored
      2008-06-24  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkassistant.h
      	* gtk/gtkcellrenderer.h
      	* gtk/gtkfilechooserentry.h
      	* gtk/gtkprivate.h
      	* gtk/gtktooltip.h
      	* gtk/gtktreeview.h
      	* gtk/gtkwindow.h: no need to include gtkwidget.h or gtkobject.h
      	if there is any other widget included, they all have to include
      	their respective parent classes (the is-a relation works for
      	includes too).
      
      
      svn path=/trunk/; revision=20679
      a13f698b
  22. 20 Jun, 2008 1 commit
    • Tim Janik's avatar
      Seal GtkTreeView · c6bcd622
      Tim Janik authored
      * gtk/gtktreeview.h: seal private pointer.
      
      svn path=/trunk/; revision=20520
      c6bcd622
  23. 18 Jun, 2008 1 commit
    • Michael Natterer's avatar
      deprecate GtkDestroyNotify. · fe8a946e
      Michael Natterer authored
      2008-06-18  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktypeutils.h: deprecate GtkDestroyNotify.
      
      	* gtk/gtkactiongroup.[ch]
      	* gtk/gtkcombobox.[ch]
      	* gtk/gtkcontainer.[ch]
      	* gtk/gtkliststore.[ch]
      	* gtk/gtkmain.[ch]
      	* gtk/gtkmenu.c
      	* gtk/gtkstock.[ch]
      	* gtk/gtktreedatalist.[ch]
      	* gtk/gtktreemodelfilter.[ch]
      	* gtk/gtktreemodelsort.[ch]
      	* gtk/gtktreeprivate.h
      	* gtk/gtktreeselection.[ch]
      	* gtk/gtktreesortable.[ch]
      	* gtk/gtktreestore.[ch]
      	* gtk/gtktreeview.[ch]
      	* gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g.
      
      
      svn path=/trunk/; revision=20448
      fe8a946e
  24. 28 May, 2008 2 commits
    • Michael Natterer's avatar
      whitespace cleanup: remove trailing whitespace and excess newlines and · 2c5f8a5c
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and
      	excess newlines and sprinkled some newlines where needed. Zero
      	code or formatting changes included.
      
      
      svn path=/trunk/; revision=20225
      2c5f8a5c
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      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
      eff99c28
  25. 19 Jul, 2007 1 commit
    • Kristian Rietveld's avatar
      add more convenience API. · b1ec5f75
      Kristian Rietveld authored
      2007-07-19  Kristian Rietveld  <kris@imendio.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtktreeprivate.h:
      	* gtk/gtktreeview.[ch] (gtk_tree_view_get_tooltip_context),
      	(gtk_tree_view_[sg]et_tooltip_column): add more convenience API.
      
      	* tests/testtooltip.c (query_tooltip_tree_view_cb): use
      	gtk_tree_view_get_tooltip_context().
      
      	* demos/gtk-demo/demo.ui: add a tooltip column to the list store,
      	set tooltip-column on the tree view.
      
      
      svn path=/trunk/; revision=18496
      b1ec5f75
  26. 13 Jul, 2007 1 commit
    • Kristian Rietveld's avatar
      #408327, improve tooltip positioning. · da989212
      Kristian Rietveld authored
      2007-07-13  Kristian Rietveld  <kris@imendio.com>
      
      	#408327, improve tooltip positioning.
      
      	* gtk/gtk.symbols: updated.
      
      	* gtk/gtktooltip.[ch] (gtk_tooltip_position): factor out
      	positioning code in here,
      	(gtk_tooltip_set_tip_area): new function to set the tooltip
      	area,
      	(gtk_tooltip_reset), (_gtk_tooltip_handle_event): hide tooltip
      	once the pointer leaves the tip area.
      
      	* gtk/gtktreeview.[ch] (gtk_tree_view_set_tooltip_row),
      	(gtk_tree_view_set_tooltip_cell): convenience functions to set
      	tip area for row/column/cell.
      
      	* tests/testtooltips.c (query_tooltip_tree_view_cb): use
      	gtk_tree_view_set_tooltip_row.
      
      
      svn path=/trunk/; revision=18464
      da989212
  27. 02 Jul, 2007 1 commit
  28. 13 Jun, 2007 1 commit
    • Kristian Rietveld's avatar
      Audit of GtkTreeView coordinate system usage. (#142494). · 4e4748e8
      Kristian Rietveld authored
      2007-06-13  Kristian Rietveld  <kris@imendio.com>
      
      	Audit of GtkTreeView coordinate system usage. (#142494).
      
      	* gtk/gtktreeview.[ch]: general documentation updates,
      	(gtk_tree_view_scroll_to_cell), (gtk_tree_view_get_dest_row_at_pos):
      	update coordinate translations,
      	(gtk_tree_view_tree_to_widget_coords),
      	(gtk_tree_view_widget_to_tree_coords): Deprecated,
      	(gtk_tree_view_convert_.*_coords): 6 new functions for doing
      	transformations between coordinate systems.
      
      	* gtk/gtk.symbols: updated.
      
      	* tests/testtooltips.c (query_tooltip_tree_view_cb): fix testcase
      	with new gtk_tree_view_convert_widget_to_bin_window_coords().
      
      	* docs/reference/gtk/Makefile.am
      	* docs/reference/gtk/images/tree-view-coordinates.png: add new image.
      
      	* docs/reference/gtk/tmpl/gtktreeview.sgml: eloborate on the
      	different coordinate systems.
      
      
      svn path=/trunk/; revision=18119
      4e4748e8
  29. 08 Oct, 2006 1 commit
    • Kristian Rietveld's avatar
      add getter/setter for show-expanders property, queue a redraw when this · fb598354
      Kristian Rietveld authored
      2006-10-08  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
      	(gtk_tree_view_set_show_expanders),
      	(gtk_tree_view_get_show_expanders): add getter/setter for
      	show-expanders property, queue a redraw when this property
      	is toggled (#351167, Martin Ejdestig),
      	(gtk_tree_view_set_level_indentation),
      	(gtk_tree_view_get_level_indentation): also add getter/setter
      	and docs for level-indentation property.
      fb598354
  30. 12 Jun, 2006 1 commit
    • Kristian Rietveld's avatar
      Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell). · 7a6a6ebc
      Kristian Rietveld authored
      2006-06-12  Kristian Rietveld  <kris@imendio.com>
      
      	Introduce grid and tree lines in GtkTreeView. (#106406,
      	Martyn Russell).
      
      	* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
      
      	* gtk/gtkenums.h: add GtkTreeViewGridLines.
      
      	* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
      	(gtk_tree_view_get_grid_lines),
      	(gtk_tree_view_set_enable_tree_lines),
      	(gtk_tree_view_get_enable_tree_lines): new API,
      	(gtk_tree_view_class_init): new properties,
      	(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
      	(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
      	(gtk_tree_view_bin_expose): implement.
      
      	* gtk/gtk.symbols: update.
      7a6a6ebc
  31. 02 Jun, 2006 1 commit
    • Kristian Rietveld's avatar
      Rubber banding for GtkTreeView, #80127. Uses same method as GtkIconView. · f6c583f7
      Kristian Rietveld authored
      2006-06-02  Kristian Rietveld  <kris@imendio.com>
      
      	Rubber banding for GtkTreeView, #80127.  Uses same method as
      	GtkIconView.
      
      	* gtk/gtktreeview.c (gtk_tree_view_class_init),
      	(gtk_tree_view_init), (gtk_tree_view_get_property),
      	(gtk_tree_view_set_property), (gtk_tree_view_set_rubber_banding),
      	(gtk_tree_view_get_rubber_banding): add property,
      	(gtk_tree_view_button_press): start rubber banding if enabled and
      	press is on a non-selected node,
      	(gtk_tree_view_button_release): stop rubber banding,
      	(gtk_tree_view_motion_bin_window), (scrool_row_timeout): enable/update
      	the rubber band,
      	(gtk_tree_view_bin_expose): draw rubber band if active,
      	(gtk_tree_view_stop_rubberband),
      	(gtk_tree_view_update_rubber_band_selection_range),
      	(gtk_tree_view_update_rubber_band_selection),
      	(gtk_tree_view_update_rubber_band),
      	(gtk_tree_view_paint_rubber_band): new functions.
      
      	* gtk/gtktreeview.h: add new set/get function for rubber banding
      	property.
      
      	* gtk/gtktreeprivate.h: add a bunch of new private fields.
      f6c583f7
  32. 24 Jan, 2006 1 commit
    • Kristian Rietveld's avatar
      #322591, Jonathan Blandford. · 58e77fe2
      Kristian Rietveld authored
      2006-01-24  Kristian Rietveld  <kris@gtk.org>
      
      	#322591, Jonathan Blandford.
      
      	* gtk/gtktreeview.[ch] (gtk_tree_view_get_search_entry),
      	(gtk_tree_view_set_search_entry),
      	(gtk_tree_view_get_search_position_func),
      	(gtk_tree_view_set_search_position_func): New functions,
      	and small adaptions to the tree view code to allow for setting
      	the entry and search position function.
      
      	* gtk/gtktreeprivate.h: Removed GtkTreeViewSearchDialogPositionFunc
      	typedef, which is now in gtktreeview.h as
      	GtkTreeViewSearchPositionFunc.  Add/update fields.
      
      	* gtk/gtk.symbols: Add new functions.
      
      	* tests/testtreesort.c: Add a little test for _set_search_entry().
      58e77fe2
  33. 10 Nov, 2005 1 commit
  34. 13 Jul, 2005 1 commit
  35. 21 Jun, 2005 1 commit
  36. 08 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Use G_GNUC_NULL_TERMINATED where appropriate. (#165682, Marc Meissner) · c8830f25
      Matthias Clasen authored
      2005-03-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkwidget.h:
      	* gtk/gtktreeview.h:
      	* gtk/gtktreeviewcolumn.h:
      	* gtk/gtktextbuffer.h:
      	* gtk/gtkobject.h:
      	* gtk/gtkfilechooserdialog.h:
      	* gtk/gtkdialog.h:
      	* gtk/gtkcontainer.h:
      	* gtk/gtkcelllayout.h:
      	* gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
      	appropriate.  (#165682, Marc Meissner)
      c8830f25
  37. 23 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · b69987f2
      Matthias Clasen authored
      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.
      b69987f2