1. 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
  2. 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
  3. 21 Sep, 2002 1 commit
    • Matthias Clasen's avatar
      Mark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383) · 083c3aef
      Matthias Clasen authored
      	* gdk/gdkdraw.c (gdk_drawable_get_type):
      	* gdk/gdkgc.c (gdk_gc_get_type):
      	* gtk/gtkmenushell.c (gtk_menu_shell_get_type):
      	* gtk/gtkimcontext.c (gtk_im_context_get_type):
      	* gtk/gtkprogress.c (gtk_progress_get_type):
      	* gtk/gtkoldeditable.c (gtk_old_editable_get_type):
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_type):
      	* gtk/gtkwidget.c (gtk_widget_get_type):
      	* gtk/gtkseparator.c (gtk_separator_get_type):
      	* gtk/gtkscrollbar.c (gtk_scrollbar_get_type):
      	* gtk/gtkscale.c (gtk_scale_get_type):
      	* gtk/gtkrange.c (gtk_range_get_type):
      	* gtk/gtkpaned.c (gtk_paned_get_type):
      	* gtk/gtkmisc.c (gtk_misc_get_type):
      	* gtk/gtkitem.c (gtk_item_get_type):
      	* gtk/gtkcontainer.c (gtk_container_get_type):
      	* gtk/gtkbbox.c (gtk_button_box_get_type):
      	* gtk/gtkbox.c (gtk_box_get_type):
      	* gtk/gtkbin.c (gtk_bin_get_type):
      	* gtk/gtkobject.c (gtk_object_get_type): Mark abstract types as
      	G_TYPE_FLAG_ABSTRACT.  (#72383)
      083c3aef
  4. 10 Aug, 2002 1 commit
    • Soren Sandmann's avatar
      Minor documentation fixes · 77eee887
      Soren Sandmann authored
      2002-08-10  Soren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gtk/tree_widget.sgml,
      	docs/reference/gtk/tmpl/gtkdialog.sgml,
      	docs/reference/gtk/tmpl/gtkentry.sgml,
      	docs/reference/gtk/tmpl/gtkfilesel.sgml,
      	docs/reference/gtk/tmpl/gtkfontsel.sgml,
      	docs/reference/gtk/tmpl/gtkfontseldlg.sgml,
      	docs/reference/gtk/tmpl/gtktreemodel.sgml,
      	docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c,
      	gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c,
      	gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c,
      	gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c,
      	gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c,
      	gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c,
      	gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c,
      	gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c,
      	gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c,
      	gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c,
      	gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c,
      	gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c,
      	gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c,
      	gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h,
      	gtk/gtkwindow.c:
      
      	Minor documentation fixes
      
      	(#89254, patch from Brett Nash;
      	 #85809, patch from daten@dnetc.org;
      	 #76391, patch from Ross Burton;
      	 #74559, Manuel Clos;
      	 #73569, #72005, Alexey A. Malyshev;
      	 #70061, patch from Dennis Bj"orklund;
      	 #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov;
      	 #78932, Vitaly Tishkov, patch from Ross Burton;
      	 #73306)
      77eee887
  5. 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
  6. 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
  7. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Fixes for AIX compilation from Miroslaw Dobrzanski-Neumann, #72182. · a504db9e
      Owen Taylor authored
      Fri Feb 22 18:36:45 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Fixes for AIX compilation from Miroslaw Dobrzanski-Neumann,
      	#72182.
      
      	* demos/gtk-demo/main.c gtk/gtktreeview.c gtk/gtktoolbar.c
      	gtk/gtkpaned.c gtk/gtkobject.c gtk/gtkcontainer.c
      	gtk/gtkcolorsel.c gtk/gtkcellrender.c gdk/x11/xsettings-client.h:
      	Squash trailing commas on enumerations.
      
      	* gdk/gdktypes.h: Drop GDK_RELEASE_MASK to 1 << 30 instead
      	of 1 << 31 to work around AIX compiler problem. (C standard
      	seems to imply that compiler is required to use an unsigned
      	type for the enum value in this case.)
      
      	* gdk/gdkpixbuf-drawable.c: Fix lvalue casts.
      
      	* gtk/gtkwindow.h: Fix use of enum types for bitfields ...
      	compilers may choose to use a signed type for bitfields.
      a504db9e
  8. 28 Jan, 2002 1 commit
  9. 31 Oct, 2001 1 commit
  10. 25 Sep, 2001 1 commit
    • Jonathan Blandford's avatar
      Make a GtkCellEditable (get_widget_window_size): Change to let it honor · 92841cb9
      Jonathan Blandford authored
      Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkentry.c: Make a GtkCellEditable
      	(get_widget_window_size): Change to let it honor size_allocate
      	when a CellEditable.
      
      	* gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
      	editable changes.
      	(gtk_tree_view_set_cursor): Now you can set the cursor
      	horizontally, as well as start editing.
      
      	* gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
      	code to look more like the other check buttons.
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
      	Change the way we calculate cell size.
      
      	* gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
      
      	* demos/gtk-demo/sizegroup.c: Add mnemonics.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
      	Fix logic.
      
      	* gtk/gtkcellrenderertext.c: Change to be editable.
      
      	* gtk/gtkcellrenderertoggle.c: Change to be activatable.
      
      	* test/testtreesort.c: Fix misspelling
      
      	* test/testreecolumns.c: Add mnemonics.
      
      	* test/testreeedit.c: New test program.
      92841cb9
  11. 18 Sep, 2001 2 commits
    • Jonathan Blandford's avatar
      centralize all the editing code · fa6e6928
      Jonathan Blandford authored
      Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
      	the editing code
      
      	* gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
      	reason to call it beyond emiting the two signals.
      
      	* gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
      	to GtkEntry.
      fa6e6928
    • Jonathan Blandford's avatar
      Get rid of broken "can_edit" and "can_activate" properties in favor of · c45ee0bf
      Jonathan Blandford authored
      Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
      	"can_activate" properties in favor of
      	GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
      	and GTK_CELL_RENDERER_MODE_EDITABLE
      c45ee0bf
  12. 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
  13. 19 Aug, 2001 2 commits
    • Jonathan Blandford's avatar
      Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>> · 112eb9b2
      Jonathan Blandford authored
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
      
      	* gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
      	(_gtk_tree_view_find_node): If *node is NULL,
      	*tree should be NULL too.
      
      	* demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
      	column/renderers.
      	* tests/testtreecolumns.c: ditto
      	* tests/testtreefocus.c: ditto
      	* tests/testtreesort.c: ditto
      	* tests/testtreeview.c: ditto
      	* tests/treestoretest.c: ditto
      112eb9b2
    • 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
  14. 11 Aug, 2001 1 commit
    • Hans Breuer's avatar
      coalescing property notifies · 0b5db507
      Hans Breuer authored
      2001-08-11  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
      	  gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
      	  gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
      	  gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
      	  gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
      	  gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
      
      	* gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
      	  gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
      	GDK_TYPE_EVENT signals
      
      	* gtk/gtkalignment.c : removed 'direct allocation bug',
      	which Tim discovered while reading the patch
      0b5db507
  15. 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
  16. 12 Apr, 2001 1 commit
    • Anders Carlsson's avatar
      It's pixbuf_pos, not pixbufpos. · 4006d34f
      Anders Carlsson authored
      2001-04-12  Anders Carlsson  <andersca@codefactory.se>
      
      	* gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
      	not pixbufpos.
      
      	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
      	are unsigned insts, therefore use g_value_set_uint.
      	(gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
      4006d34f
  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 2 commits
    • Tim Janik's avatar
      marshaller fixes. · 35af5c4e
      Tim Janik authored
      Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/*.c: marshaller fixes.
      
              * gtk/gtkmarshal.list: extreme cleanup.
      
              * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
              param spec for now.
      
              * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
              where appliable.
      
              * gtk/gtktypeutils.[hc]: updates to GLib API changes.
              special cased autogenerated boxed types from gtktypebuiltins_ids.c
              which are not reference counted:
              GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
              PangoFontDescription, GtkTreeIter and GtkTreePath.
      
      Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktreeselection.h:
              * gtk/gtktreemodel.c:
              * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
              file should be included directly, and gobject/gmarshal.h
              as well as gtk/gtkmarshal.h even can't be included directly.
      
              * Makefile.am: grr, install gtk-config-2.0.
      
              * gtk/testgtk.c:
              * gtk/simple.c:
              * gtk/gtkmenu.c:
              * gtk/gtkitemfactory.c: use g_object_connect() instead of
              passing "*signal*::*" args to gtk_widget_set().
      
              * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
      
              * gtk/*.c: removed trailer arg from property setters and getters.
              macro fixups.
      
      Thu Mar  1 04:01:57 2001  Tim Janik  <timj@gtk.org>
      
              * test-gdk-pixbuf.c: fixed includes.
      35af5c4e
    • 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. 05 Mar, 2001 1 commit
    • Jonathan Blandford's avatar
      Apply patch from Lee Mallabone to add object properties. · a7f524bb
      Jonathan Blandford authored
      Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
      	add object properties.
      
      	* gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
      	to add object properties.
      
      	* gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
      	object properties.
      
      	* gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
      	add object properties.
      
      	* gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
      	object properties.
      a7f524bb
  21. 03 Feb, 2001 1 commit
  22. 26 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      adapt to handle PangoColor · ef4356b5
      Havoc Pennington authored
      2001-01-26  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
      
      	* gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
      	not offset by TREE_VIEW_HEADER_HEIGHT
      	(gtk_tree_view_tree_to_widget_coords): fix to not offset by
      	TREE_VIEW_HEADER_HEIGHT
      
      	* configure.in (included_loaders): for me, --with-included-loaders
      	generates the error "the specified loader yes does not exist",
      	i.e. the arg defaults to "yes", so change test for value ""
      	to test for value "yes", and include all loaders in that case.
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
      	handle TREE_VIEW_VERTICAL_SEPARATOR
      	(gtk_tree_view_bin_expose): fix to consider the row offset as
      	pointing halfway into vertical separator.
      	(gtk_tree_view_draw_node_focus_rect): ditto
      
      	* gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
      	--gtk-debug=updates, which causes gdk_window_set_debug_updates
      	(TRUE) to be called.
      
      	* gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
      	debug mode where the invalid region is colored in on invalidate,
      	so you can see the flicker and know whether your redraw code is
      	doing a good job.
      
      	* gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
      	tree window coordinates (clip rect is in tree window coords)
      
      	* gtk/Makefile.am: add gtktreednd.[hc]
      
      	* gtk/gtkliststore.c: implement gtktreednd interfaces.
      
      	* gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
      	drag-and-drop data operations on a model (so we can set up tree
      	drag-and-drop automatically)
      
      	* gtk/testgtk.c: Add a window to change sensitivity in the
      	GtkLabel test; add a way to change the entry frame in GtkEntry
      	test
      
      	* gtk/gtkentry.c (gtk_entry_set_has_frame):
      	(gtk_entry_get_has_frame): new functions to remove the frame
      	around an entry
      	(gtk_entry_size_request): shrink requisition if no frame
      	(gtk_entry_draw_focus): don't draw frame if no frame
      
      	* gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
      	checks inside a cell renderer
      	(gtk_default_draw_option): ditto for options
      
      	* gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
      	children from the alignment, not the button
      	(gtk_tree_view_column_init): ref/sink the column, to emulate
      	GObject refcounting.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
      	Use theme functions to draw the toggles
      
      	* gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
      
      	* gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
      	GdkPangoAttrEmbossed to use in rendering insensitive text
      
      	* gdk/gdkpango.c (gdk_draw_layout_line): render new properties
      
      	* gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
      	using new GDK features
      ef4356b5
  23. 04 Jan, 2001 1 commit
    • 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
  24. 01 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      Adapt to GtkTreeSelection changes · 66f87948
      Havoc Pennington authored
      2001-01-01  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
      
      	* gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
      	don't fill in tree_view->priv->selection, kind of an unexpected
      	side effect
      
      	* gtk/gtkcellrenderertext.c: Remove definition of _ and include
      	gtkintl.h
      
      	* gtk/gtkcellrenderer.c: Remove definition of _ and include
      	gtkintl.h
      	(gtk_cell_renderer_get_property): remove calls to g_value_init
      
      	* gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
      	gtkintl.h
      
      	* gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
      	and include gtkintl.h
      	(gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
      	property names
      
      	* gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
      	GtkTreeSelection
      	(_gtk_tree_selection_new_from_with_view): rename, return
      	GtkTreeSelection
      	(_gtk_tree_selection_set_tree_view): rename with uscore
      	(gtk_tree_selection_get_selected): fill in the "model" out param
      	first, so it gets filled in even if we return at the top of the
      	function
      	(gtk_tree_selection_real_select_all): add a comment and an else{}
      	to clarify this a bit
      	(gtk_tree_selection_real_unselect_all): add the same else{}
      
      	* gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
      	set_tree_view to have underscore prefixes, move them to the
      	private header, fix return type of new_with_tree_view
      	(struct _GtkTreeSelection): mark struct
      	fields private
      
      	* gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
      	GtkTreeModelFlags, not a guint
      	(gtk_tree_path_prev): return gboolean not gint
      	(gtk_tree_path_up): return gboolean not gint
      
      	* gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
      	return GtkTreeModelFlags, not a guint
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
      	that child model is non-null before unrefing it
      	(g_value_int_compare_func): make this a qsort compare func, not
      	a boolean predicate
      
      	* gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
      	(add -umn to the end), and mark it unimplemented
      	(gtk_tree_model_sort_resort): remove, this wasn't implemented, and
      	I don't see what it's for - doesn't the model always sort itself?
      	(gtk_tree_model_sort_set_compare): this had the wrong signature
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
      	Fix the docs to say that it destructively replaces existing
      	attributes (previously said that it added attributes).
      	(gtk_tree_view_column_set_visible): canonicalize bool before
      	equality testing. Also, check for realization before
      	hiding/showing the tree_column->window; if this window could exist
      	before realization, then it's busted and needs fixing, we can't
      	create GDK resources pre-realization. Also, remove
      	superfluous queue_resize(), since set_size() does that for us.
      	(gtk_tree_view_column_set_col_type): check realization before
      	using tree_column->window
      
      	* gtk/gtktreedatalist.c: fix filename in copyright notice
      66f87948
  25. 12 Dec, 2000 1 commit
    • Tim Janik's avatar
      get rid of object_signal:: GtkObject argument uses, use GObject · 53d7e430
      Tim Janik authored
      Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtk.c:
              (create_tooltips):
              (create_statusbar): get rid of object_signal:: GtkObject argument uses,
              use GObject swapped_signal:: properties instead.
      
              * gtk/gtkcellrenderertoggle.c:
              * gtk/gtkcellrenderertextpixbuf.c:
              * gtk/gtkcellrenderertext.c:
              * gtk/gtkcellrendererpixbuf.c:
              * gtk/gtkcellrenderer.c:
              * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
              missing warnings for invalid property ids, install properties
              with g_object_class_install_property() now.
      
              * gtk/gtksignal.c:
              (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
      53d7e430
  26. 25 Oct, 2000 1 commit
    • Tim Janik's avatar
      urg, removed implementation of gtk_marshal_VOID__INT_INT_INT_INT. if · d69496c0
      Tim Janik authored
      Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
              implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
              couldn't they at least give it a non-standard name?
      
              * gtk/gtktextlayout.c: arg! yet another implementation of
              gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
      
              * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
              gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
              home. now i know this _is_ a conspiracy.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
              ::state-changed.
      
              * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
              (gtk_accel_group_create_add): marshaller signature fixups.
      
              * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
              pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
      
              * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
              anymore.
      
      Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
      
              * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
              due to the signal system changes, it wouldn't build currently. to
              be fixed soon.
      
              * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
      
              * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
              so it needs gtk_marshal_VOID__ENUM() instead of
              gtk_marshal_NONE__UINT().
      
              * gdk/gdk*.c: adapted type registration functions.
      
              * gtk/gtkbindings.c:
              * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
              gone.
      
              * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
      
              * gtk/gtkobject.c:
              (gtk_object_destroy):
              (gtk_object_shutdown): fixed recursion guards. basically we have to
              catch the case where any of GObject.shutdown() or gtk_object_destroy()
              is called during ::destroy, and avoid recursion there.
      
              * gtk/gtktypeutils.c:
              * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
              boxed_copy/boxed_free. this needs a more general solution based on a
              publically installed code-generator utility.
      
              * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
              glib's gobject has support for that now.
              define GtkSignalMarshaller in terms of GSignalCMarshaller.
      
      
      Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.[hc]:
              * gtk/gtkmarshal.[hc]:
              * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
              compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
              removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
              care of that.
      
              * *.c: marshaller name fixups.
      
              * gtk/gtkmarshal.list: added a comment briefing the format.
      
      Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
              compatibility macros here now. more specifically, most of
              the API is preserved (yes, _most_, nonwithstanding the
              following exceptions listed, the API is stil lHUGE ;)
              things that got removed completely:
              GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
              gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
              gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
              gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
              gtk_signal_remove_emission_hook().
              non-functional functions variants:
              gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
              the GtkCallbackMarshal argument to gtk_signal_connect_full() is
              not supported anymore.
              (gtk_signal_compat_matched): new internal function to aid
              implementation of the compatibility macros, it  provides
              functionality to block/unblock/disconnect handlers based
              on func/data.
      
              * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
      
              * *.c: adaptions to new type registration API signatures.
      
      
      Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
      d69496c0
  27. 05 Oct, 2000 1 commit