1. 20 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Allow custom initialization of cell editables. (#147221) · 9aeba99d
      Matthias Clasen authored
      
      2004-07-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Allow custom initialization of cell editables.  (#147221)
      
      	* gtk/gtkcellrenderer.h (struct _GtkCellRendererClass):
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Add a
      	::editing-started signal as a hook for setting up the
      	GtkCellEditable.
      	(gtk_cell_renderer_start_editing): ...and emit it here.
      9aeba99d
  2. 27 May, 2004 1 commit
  3. 16 Jan, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #130969. · fb526d23
      Federico Mena Quintero authored
      2004-01-16  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #130969.
      
      	* gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
      	editing_canceled signal.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
      	"editing-canceled" signal.
      	(gtk_cell_renderer_editing_canceled): New function.
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
      	Call gtk_cell_renderer_editing_canceled().
      fb526d23
  4. 30 Sep, 2003 1 commit
    • Murray Cumming's avatar
      The render vfunc takes a GdkDrawable* instead of a GdkWindow*, because · fa7b7509
      Murray Cumming authored
      2003-09-30  Murray Cumming  <murrayc@usa.net>
      
              * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
              instead of a GdkWindow*, because that what it is given. The
              documentation was already correct. This should cause no API/ABI
              breakage with C compilers.
              * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c,
              gtkcellrenderertogger.c: Updated the declarations of the render vfunc
              implementation accordingly.
      fa7b7509
  5. 26 Nov, 2002 1 commit
    • Kristian Rietveld's avatar
      add a gtk_list_store_sort_iter_changed line for some special case ... · a09f497c
      Kristian Rietveld authored
      Tue Nov 26 22:26:04 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtk{tree,list}store.c (gtk_{tree,list}_store_real_set_value):
              add a gtk_list_store_sort_iter_changed line for some special
              case ... (#96647 (issue 1), testcases from Soeren Sandmann and
              Daniel Elstner).
      
      Tue Nov 26 22:18:06 2002  Kristian Rietveld  <kris@gtk.org>
      
              Inconsistent state for toggle renderers, requested by Paolo Bacchilega
              in #88130.
      
              * gtk/gtktreeprivate.h: move GtkCellRendererInfo here.
      
              * gtk/gtkcellrenderer.c: moved GtkCellRendererInfo away,
              fix some indentation issues.
      
              * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
              (gtk_cell_renderer_toggle_set_property),
              (gtk_cell_renderer_toggle_get_property),
              (gtk_cell_renderer_toggle_render): add an inconsistent property.
      
              * gtk/gtkstyle.c (gtk_default_draw_check),
              (gtk_default_draw_option): support drawing inconsistent
              options/checks for cells.
      
      Tue Nov 26 22:14:14 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
              (gtk_cell_renderer_text_start_editing): add a focus_out_id to avoid
              calling _editing_done twice (which has nasty side-effects). (#96647,
              (issue 2) testcase from Soeren Sandmann).
      
      Tue Nov 26 22:12:21 2002  Kristian Rietveld  <kris@gtk.org>
      
              #82739, patch from Padraig O'Briain.
      
              * gtk/gtktreeviewcolumn.[ch]: add
              gtk_tree_view_column_cell_get_position()
      
      Tue Nov 26 22:06:29 2002  Kristian Rietveld  <kris@gtk.org>
      
              Yes, this chunk breaks ABI compatibility. Owen knows about it and
              agreed with it. It doesn't break ABI that bad though, things will
              still work. Please keep it silent :P.
      
              This patch fixes some keynav issues reported by Narayana Pattipati
              in #81633. (Also mentioned in #92037 (Sun tracking bug)).
      
              * gtk/gtkmarshalers.list: add two silly marshalers
      
              * gtk/gtktreeview.[ch] (gtk_tree_view_real_select_all),
              (gtk_tree_view_real_unselect_all),
              (gtk_tree_view_real_select_cursor_row),
              (gtk_tree_view_real_toggle_cursor_row),
              (gtk_tree_view_real_expand_collapse_cursor_row),
              (gtk_tree_view_real_start_interactive_search): change the return
              type from void to gboolean, update prototypes, functions, signals and
              entries in GtkTreeViewClass,
              (gtk_tree_view_class_init): add select_cursor_row binding for
              enter key,
              (gtk_tree_view_key_press): only navigate the header button if the
              header is also visible ...
      
      Tue Nov 26 22:05:48 2002  Kristian Rietveld  <kris@gtk.org>
      
              API bit of #75745, reported by Richard Hult.
      
              * gtk/gtkcellrenderer.h (GtkCellRendererState): add
              GTK_CELL_RENDERER_FOCUSED, rest of this bug fix will follow later.
      a09f497c
  6. 07 Oct, 2002 1 commit
    • Manish Singh's avatar
      deprecation cleanup · 28def5e4
      Manish Singh authored
      Sun Oct  6 18:32:11 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
              gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
              gtk/gtkcellrenderertoggle.[ch]: deprecation cleanup
      28def5e4
  7. 26 Apr, 2002 1 commit
    • Kristian Rietveld's avatar
      This commit fixes binary compatibility, which I broke with my recent cell · 74295aed
      Kristian Rietveld authored
      Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
      
              This commit fixes binary compatibility, which I broke with my
              recent cell renderer commits :/.
      
              * gtk/gtkcellrenderer.h: move cell_background out of _GtkCellRenderer
      
              * gtk/gtkcellrenderer.c: create GtkCellRendererInfo, with the
              cell_background field and use this as object data. This way we keep
              the field private and dont break ABI.
      
              * gtk/gtkcellrendererpixbuf.h: remove stock_id, stock_size and
              stock_detail from _GtkCellRendererPixbuf
      
              * gtk/gtkcellrendererpixbuf.c: create a GtkCellRendererPixbufInfo
              with above mentioned fields. And update everything.
      74295aed
  8. 23 Apr, 2002 1 commit
    • Kristian Rietveld's avatar
      This commit adds a cell_background property for cell renderers. With this · cb3c5cc1
      Kristian Rietveld authored
      Tue Apr 23 18:35:34 2002  Kristian Rietveld  <kris@gtk.org>
      
              This commit adds a cell_background property for cell renderers. With
              this property you can make your TreeView look incredibly ugly.
      
              * gtk/gtkcellrenderer.c: add cell_background, cell_background_gdk and
              cell_background_set properties,
              (set_cell_bg_color): new function,
              (gtk_cell_renderer_get_property), (gtk_cell_renderer_set_property):
              support for new properties,
              (gtk_cell_renderer_render): render a background when set.
      
              * gtk/gtkcellrenderer.h: add cell_background_set and cell_background
              fields.
      
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
              when rendering, pass in just the background_area of the cell and not
              the background_area of the entire column.
      cb3c5cc1
  9. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Massive padding addition to class structures. · e5d1ea8c
      Owen Taylor authored
      Sat Feb 23 11:54:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/*.h gdk/*.h: Massive padding addition to class structures.
      
              * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
      e5d1ea8c
  10. 12 Dec, 2001 1 commit
  11. 21 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Remove trailing commas in enum declarations. · 9b6c7327
      Owen Taylor authored
      Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkcellrenderer.h gtk/gtktreemodel.h
      	gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
      	trailing commas in enum declarations.
      9b6c7327
  12. 31 Oct, 2001 2 commits
  13. 18 Sep, 2001 1 commit
  14. 17 Sep, 2001 1 commit
    • Jonathan Blandford's avatar
      Add editable interface. This should be the last big GtkTreeView API · a2516791
      Jonathan Blandford authored
      Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcelleditable.[ch]: Add editable interface.  This should
      	be the last big GtkTreeView API change.
      
      	* gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
      	replace with "activate" and "start_editing".  Also, added a
      	"can_activate" and "can_edit" property.
      
      	* gtk/gtktreeviewcolumn.c: modify to use above.
      a2516791
  15. 19 Aug, 2001 1 commit
    • Jonathan Blandford's avatar
      2 new signals; is_expander/is_expanded. · 6ffd507d
      Jonathan Blandford authored
      Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
      	signals; is_expander/is_expanded.
      
      	* gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
      	pixbufs.
      
      	* gtk/gtktreeview.c: set above properties.
      6ffd507d
  16. 30 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      changed new_with_types to just plain new, fixing the number of columns, · ee5ff7dd
      Jonathan Blandford authored
      Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
      	to just plain new, fixing the number of columns, and column types
      	at creation time.
      
      	* gtk/gtkliststore.c (gtk_list_store_new): ditto.
      
      	* gtk/gtkcellrenderertext.c
      	(gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
      	height to a specific font.
      
      	* gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
      
      	* tests/*c: change to work with new store models.
      ee5ff7dd
  17. 28 Mar, 2001 1 commit
    • Owen Taylor's avatar
      Apply patch from Nils Barth fixing event return values. (#51041) · a7f29c4e
      Owen Taylor authored
      Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
      	Nils Barth fixing event return values. (#51041)
      
      	* gtk/gtkwidget.c: Fix some return values for default
      	functions.
      
      	* gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
      	return values for trough_keys functions.
      
      	* gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
      	value for add_accelerator (shoudl have been a void
      	return.)
      
      	* gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
      	Fix return type of EVENT.
      
      	* gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
      	signal return a boolean.
      a7f29c4e
  18. 15 Mar, 2001 1 commit
    • Jonathan Blandford's avatar
      Changed prototype to allow for getting the location of the cell relative · e4d16600
      Jonathan Blandford authored
      Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcellrenderer.h: Changed prototype to allow for getting
      	the location of the cell relative to its area.
      	* gtk/gtkcell*: modified for above change
      	* gtk/gtktreeview.c: modified for above change.
      
      Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
      	 (gtk_tree_view_finalize): actually unref the model.  Thanks to
      	Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
      e4d16600
  19. 07 Mar, 2001 1 commit
    • Jonathan Blandford's avatar
      Add visible field to allow you to hide cell renderers. · 4111cdd5
      Jonathan Blandford authored
      Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
      	field to allow you to hide cell renderers.
      
      	* gtk/gtkcellrenderer.c: Add support for invisible cells.
      
      	* gtk/gtktreeview.c: Add support for invisible cells.
      4111cdd5
  20. 08 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      remove validation idle · 4a3c8a36
      Havoc Pennington authored
      2001-02-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
      	validation idle
      
      	* demos/gtk-demo/main.c (create_tree): adjust to changes in text
      	cell renderer
      
      	* demos/pixbuf-demo.c (timeout): remove deprecated
      	gtk_widget_draw
      
      	* demos/testpixbuf-save.c (main): remove deprecated
      	gtk_drawing_area_size
      
      	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
      	buttons even if the model isn't setup. gtk_tree_view_check_dirty()
      	at the start of the allocation.
      	(gtk_tree_view_check_dirty): handle column->button == NULL, handle
      	unsetup or NULL model.
      
      	* gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
      	even/odd/sorted cells in the tree view.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
      	bugfixes
      
      	* gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
      	backgrounds with draw_flat_box using different detail for even/odd
      	rows.
      
      	* gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
      	row, so we can draw the alternating colors thing
      
      	* gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
      	property from a synonym property, notify for the synonym.
      	Also, nuke the background_gdk_set and foreground_gdk_set synonyms
      	(gtk_text_tag_get_property): Always return the font, even if
      	all its fields aren't set
      
      	* gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
      	store the attr list; it leaves us with no way to change attributes
      	in _render according to the render flags, and no way to implement
      	get_property. Instead store all the specific text attributes.
      	Separate whether an attribute is enabled from its value. Sync all
      	properties with GtkTextTag, make them all consistent, etc.
      
      	* gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
      	renderers can highlight the sort row/column
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
      	accessor functions to get values; this has the side effect of
      	showing up which accessor functions were missing. Added those.
      
      	* gtk/gtktreeviewcolumn.h: Replace set_justification with
      	set_alignment, to be consistent with GtkLabel, GtkMisc
      
      	* gtk/gtktreeviewcolumn.c: Added code to display sort indicator
      	arrow.
      
      	* gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
      
      	* gtk/gtktreesortable.h: updates in here
      4a3c8a36
  21. 04 Jan, 2001 2 commits
    • Havoc Pennington's avatar
      add this · ae89b1e1
      Havoc Pennington authored
      2001-01-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
      	this
      
      	* gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
      	user_data instead of tree_node
      
      	* gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
      	TREE_VIEW_COLUMN_SIZE
      
      	* gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
      	"size" field to "width" finishes bug 40061
      
      	* gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
      	for bitfields, bug 40268
      ae89b1e1
    • Havoc Pennington's avatar
      Rename some stuff: · c020b3b4
      Havoc Pennington authored
      2001-01-04  Havoc Pennington  <hp@redhat.com>
      
              Rename some stuff:
      
      	s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
      
      	s/GtkModelSimple/GtkTreeModelSimple/g;
      	s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
      	s/gtk_model_simple/gtk_tree_model_simple/g;
      	s/gtkmodelsimple/gtktreemodelsimple/g;
      
      	s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
      
      	s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
      	s/column_set_col_type/column_set_sizing/g;
      
      	s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
      	s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
      
      	s/GtkCellRendererType/GtkCellRendererState/g;
      
      	* gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
      	(gtk_cell_renderer_toggle_class_init): change "state" property to
      	"active", to match GtkToggleButton
      	(gtk_cell_renderer_toggle_get_active): new function, bug
      	40269
      	(gtk_cell_renderer_toggle_set_active): new function
      	(gtk_cell_renderer_toggle_set_property): route changes to toggle
      	state through gtk_cell_renderer_set_active
      c020b3b4
  22. 05 Oct, 2000 1 commit