1. 22 Mar, 2006 2 commits
  2. 13 Jul, 2005 1 commit
  3. 19 Nov, 2004 1 commit
    • Manish Singh's avatar
      modules/engines/ms-windows/msw_rc_style.c · 54b45a19
      Manish Singh authored
      Fri Nov 19 15:18:51 2004  Manish Singh  <yosh@gimp.org>
      
              * modules/engines/ms-windows/msw_rc_style.c
              * modules/engines/ms-windows/msw_style.c
              * modules/engines/ms-windows/msw_theme_main.c
              * modules/engines/pixbuf/pixbuf-main.c
              * modules/engines/pixbuf/pixbuf-rc-style.c
              * modules/input/gtkimcontextime.c
              * modules/input/gtkimcontextxim.c
              * modules/input/imam-et.c
              * modules/input/imcedilla.c
              * modules/input/imcyrillic-translit.c
              * modules/input/iminuktitut.c
              * modules/input/imipa.c
              * modules/input/imthai-broken.c
              * modules/input/imti-er.c
              * modules/input/imti-et.c
              * modules/input/imviqr.c
              * tests/prop-editor.c
              * tests/testentrycompletion.c
              * tests/testfilechooser.c
              * tests/testmerge.c
              * tests/testtoolbar.c
              * tests/testtreecolumns.c
              * tests/testtreeview.c: get rid of unnecessary casts.
      
              * tests/testgtk.c (create_labels): add GTK_LABEL() casts for
              gtk_label_set_ellipsize() calls.
      
              * tests/testicontheme.c (main): remove unused pixbuf variable.
      54b45a19
  4. 06 Mar, 2004 1 commit
  5. 11 Oct, 2003 1 commit
  6. 28 Feb, 2003 1 commit
    • Manish Singh's avatar
      demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.c · dd74be94
      Manish Singh authored
      Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
      
              * demos/gtk-demo/main.c
              * demos/gtk-demo/tree_store.c
              * gdk/x11/gdkscreen-x11.c
              * gtk/gtkcellrenderertoggle.c
              * gtk/gtkcolorsel.c
              * gtk/gtkdnd.c
              * gtk/gtkeditable.c
              * gtk/gtkentry.c
              * gtk/gtkmenu.c
              * gtk/gtkmenubar.c
              * gtk/gtkmenuitem.c
              * gtk/gtkmenushell.c
              * gtk/gtkrc.c
              * gtk/gtksettings.c
              * gtk/gtkstyle.c
              * gtk/gtktextbuffer.c
              * gtk/gtktextview.c
              * gtk/gtktreeviewcolumn.c
              * tests/testgtk.c
              * tests/testtext.c
              * tests/testtreeedit.c
              * tests/testtreefocus.c
              * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
      dd74be94
  7. 13 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · 37278865
      Manish Singh authored
      Sun Oct 13 16:20:41 2002  Manish Singh  <yosh@gimp.org>
      
              * tests/pixbuf-randomly-modified.c tests/prop-editor.c
              tests/testcalendar.c tests/testdnd.c tests/testgtk.c tests/testinput.c
              tests/testmultidisplay.c tests/testmultiscreen.c tests/testrgb.c
              tests/testselection.c tests/testsocket.c tests/testsocket_common.c
              tests/testtext.c tests/testtextbuffer.c tests/testtreecolumns.c
              tests/testtreeedit.c tests/testtreeflow.c tests/testtreefocus.c
              tests/testtreesort.c tests/testtreeview.c tests/testxinerama.c
              tests/treestoretest.c: Deprecation cleanup
      
              * tests/Makefile.am: Added disable deprecation flags
      37278865
  8. 26 Apr, 2002 1 commit
  9. 24 Feb, 2002 1 commit
    • Jonathan Blandford's avatar
      at Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> · a265926e
      Jonathan Blandford authored
      	* gtk/gtktreemodel.h: add () to function macros as per owen's
      	request.
      
      	* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
      	(gtk_font_selection_show_available_sizes),
      	(gtk_font_selection_set_font_name):
      	* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
      	(gtk_tree_model_foreach):
      	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
      	(gtk_tree_model_sort_build_level):
      	* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
      	* gtk/gtktreeview.c: (validate_visible_area),
      	(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
      	(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
      	(gtk_tree_view_search_init):
      	* tests/testtreeview.c: (run_automated_tests): change iter_root
      	to iter_first
      a265926e
  10. 13 Feb, 2002 1 commit
  11. 21 Nov, 2001 1 commit
    • Tim Janik's avatar
      raise event window afte children, in order for the input pnly window to · 656ff6e8
      Tim Janik authored
      Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbutton.c (gtk_button_map): raise event window afte
              children, in order for the input pnly window to stay *above*
              children.
      
      Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
      
              * tests/testtreeview.c: make hackery worse ;) by checking fundamental
              type walks againts G_TYPE_FUNDAMENTAL_MAX.
      
              * tests/prop-editor.c: disable type hackery.
      656ff6e8
  12. 18 Nov, 2001 1 commit
    • Owen Taylor's avatar
      We no longer need to create the signals here ... they come from the · 3f376d75
      Owen Taylor authored
      Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* tests/testtreeview.c (gtk_tree_model_types_get_type):
      	We no longer need to create the signals here ... they
      	come from the interface.
      
      	* gtk/maketypes.awk: Use GType, not GtkType in output.
      
      	* gtk/gtktypeutils.h: Mark virtually all of this
      	file deprecated.
      
      	* gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
      	the only use of this function is the GtkArg using
      	GtkCallbackMarshal, since destroy notification is
      	silly here.
      3f376d75
  13. 06 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Add row_draggable() vfunc, and wrapper function. · 57479a86
      Owen Taylor authored
      Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface):
      	Add row_draggable() vfunc, and wrapper function.
      
      	* gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
      	row_drop_possible take a GtkSelectionData, rather than
      	model/row pair.
      
      	* gtk/gtktreestore.c gtk/gtkliststore.c: Update for
      	new DND interfaces.
      
      	* gtk/gtktreeview.[ch]: Remove the row_draggable_func
      	location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
      	and rename them to enable_model_drag_source/dest.
      
      	* gtk/treeviewcolumn.c: Add DND of columns between rows.
      	Still can't drop _to_ the left tree, but other places
      	work.
      
      	* gtk/gtktreeview.c (unset_reorderable): Unset the
      	reorderable property if unset/enable_model_drag_source/dest
      	are called manually.
      
      	* gtk/gtktreestore.c (gtk_tree_store_row_drop_possible):
      	Correct for change in depth count handling.
      
      	* gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
      	Pass in a expose area to gtk_tree_view_column_cell_render()
      57479a86
  14. 08 Sep, 2001 1 commit
    • Jonathan Blandford's avatar
      Removed 'fill' attribute. It was silly b/c that was a property of the cell · 4a9a6249
      Jonathan Blandford authored
      Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
      	Removed 'fill' attribute.  It was silly b/c that was a property of
      	the cell renderer, anyway.
      	(gtk_tree_view_column_render): Actually render the packed
      	renderers.
      	* doc/tree-column-sizing.txt: initial devel documentation.
      	* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
      	* gtk/gtkcellrenderertextpixbuf.[ch]: removed.
      
      	* tests/testtreefocus.c: fix up to reflect above changes.
      	* tests/testtreeview.c: ditto
      	* demos/gtk-demo/stock_browser.c: ditto
      4a9a6249
  15. 19 Aug, 2001 1 commit
    • 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
  16. 09 Jul, 2001 1 commit
  17. 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
  18. 29 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      fixes to compile with G_DISABLE_COMPAT · 49c1e6dc
      Havoc Pennington authored
      2001-06-29  Havoc Pennington  <hp@redhat.com>
      
             * Throughout: fixes to compile with G_DISABLE_COMPAT
      	(s/g_signal_connectc/g_signal_connect/,
      	s/g_signal_newc/g_signal_new/,
      	s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
      49c1e6dc
  19. 28 Jun, 2001 1 commit
    • Tim Janik's avatar
      up version to 1.3.7, interface age 0, binary age 0. depend on glib 1.3.7. · 10f047cf
      Tim Janik authored
      Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
      
      	* configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
      	age 0, binary age 0. depend on glib 1.3.7.
      
      	* gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
      
      	* gtk/gtkmenubar.c: same here.
      
      	* gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
      
      	* gtk/gtkentry.c (gtk_entry_focus_in): same here.
      
      	* gtk/gtkmenubar.c (add_to_window): likewise.
      
      	* gtk/gtktextbtree.c: and here...
      
      	* gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_init): once more.
      
      	* gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
      
      	* gtk/gtktreeviewcolumn.c:
      	(_gtk_tree_view_column_set_tree_view): yet again.
      
      	* demos/gtk-demo/images.c (progressive_timeout): demonstrate
      	signal connections without g_signal_connect_data().
      
      	* demos/gtk-demo/stock_browser.c (do_stock_browser): second
      	demo of the matter.
      
      	* demos/testpixbuf.c (main): running out of equality phrases for the
      	ChangeLog, but had to adapt connections here as well.
      
      	* demos/testanimation.c (progressive_timeout): and for the fun of it,
      	tackled this the same way.
      
      	* tests/testtext.c (create_view): ok, it's becoming a pain at this
      	point, but had enough enery for one more fix.
      
      	* tests/testtreecolumns.c (main): stand up man, do your work!
      
      	* tests/testtreeview.c (set_columns_type): ok, this is the last file i
      	fix, either that's been all of it or CVS gtk is broken yet again.
      10f047cf
  20. 26 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      fix stupid missing statement · 94f7d7e6
      Jonathan Blandford authored
      Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
      	stupid missing statement
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
      	private function for ATK.  It notifies you of how many _visible_
      	children are deleted when a node is deleted.  Should be used by
      	atk only.
      94f7d7e6
  21. 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
  22. 07 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      Now it's a GObject instead of a GtkObject. The · 59444d85
      Jonathan Blandford authored
      Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeselection.c: Now it's a GObject instead of a
      	GtkObject.  The GtkTreeSelection::selection_changed signal is now
      	the GtkTreeSelection::changed signal.
      
      	* gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
      	object.
      
      	* tests/gtktree*.c: Modified to deal with new GtkTreeSelection
      	object.
      59444d85
  23. 25 May, 2001 1 commit
    • 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
  24. 14 May, 2001 1 commit
    • Owen Taylor's avatar
      Block against redundant changes. · 6d2ce706
      Owen Taylor authored
      Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* tests/prop-editor.c: Block against redundant changes.
      
      	* gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
      	properties.
      6d2ce706
  25. 03 May, 2001 1 commit
    • Owen Taylor's avatar
      Reduce new_text_length appropriately when we run into the size limit for · 4c2a74b7
      Owen Taylor authored
      Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
      	new_text_length appropriately when we run into the
      	size limit for the entry. (#53445, reported by Jeff Franks)
      
      	* tests/testgtk.c (create_entry): Remove most of the
      	property toggle buttons. Replace with a "Props" button
      	that brings up a property editor.
      
      	* tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
      	Split the property editor code out for reuse, improve.
      4c2a74b7
  26. 08 Mar, 2001 1 commit
  27. 21 Feb, 2001 1 commit
    • Jonathan Blandford's avatar
      Changed name to be set_cell_data_func to make it clear what the functino · 334a40e8
      Jonathan Blandford authored
      Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
      	Changed name to be set_cell_data_func to make it clear what
      	the functino does.  Close bug #51069.
      
      Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/testgtk.c (main): Remove turning on of profiling malloc,
      	have memory actually freed.  Keeps box running longer.
      334a40e8
  28. 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
  29. 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
  30. 19 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      sync to tree changes · e248e4e7
      Havoc Pennington authored
      2001-01-19  Havoc Pennington  <hp@redhat.com>
      
      	* demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
      	function
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
      	implement
      
      	* gtk/gtktreeview.c (gtk_tree_view_move_to): rename
      	scroll_to_cell, matches TextView scroll functions better
      	(gtk_tree_view_tree_to_widget_coords): new function
      	(gtk_tree_view_widget_to_tree_coords): new function
      	(gtk_tree_view_get_visible_rect): new function
      	(gtk_tree_view_get_path_at_pos): accept negative coordinates
      	(gtk_tree_view_draw_node_focus_rect): new function moved from
      	draw_focus, also, use width of bin_window as width of the focus
      	rect
      	(gtk_tree_view_expand_row): fix bug where it didn't recognize
      	already-expanded rows
      	(gtk_tree_view_get_cell_rect): new function
      	(gtk_tree_view_get_path_at_pos): return the click position
      	relative to the passed-in cell
      	(gtk_tree_view_set_expander_column): new function
      
      	* configure.in: remove gtk-config-2.0 chmod
      
      	* gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
      	and properly handle drags with targets we don't understand
      	(gtk_text_view_drag_end): don't stop scrolling, the source isn't
      	scrolling anyway
      	(gtk_text_view_drag_drop): stop scrolling here though, and set the
      	mark invisible
      
      	* gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
      	function
      	(gtk_drag_dest_get_target_list): new function
      	(gtk_drag_dest_set_target_list): new function
      
      	* gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
      
      	* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
      	related to drag-and-drop
      e248e4e7
  31. 16 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      add test stuff for CellRendererToggle · 8e8dd66a
      Havoc Pennington authored
      2001-01-15  Havoc Pennington  <hp@pobox.com>
      
      	* tests/testtreeview.c: add test stuff for CellRendererToggle
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
      	accessor
      
      	* gtk/gtkcellrenderertoggle.c: distinguish different event types,
      	only toggle on button press (would do release like GtkButton, but
      	we'd need implicit grab code for treeview cells)
      8e8dd66a
  32. 10 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      handle case where sibling == iter (gtk_tree_store_insert_after): handle · 740ee8ef
      Havoc Pennington authored
      2001-01-10  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
      	where sibling == iter
      	(gtk_tree_store_insert_after): handle sibling == iter
      	(gtk_tree_store_prepend): remove stamp checks
      	(gtk_tree_store_insert_before): ditto
      	(gtk_tree_store_append): ditto
      	(gtk_tree_store_get_path): ditto
      	(gtk_tree_store_get_value): ditto
      	(gtk_tree_store_iter_has_child): ditto
      	(gtk_tree_store_iter_n_children): ditto
      	(gtk_tree_store_iter_nth_child): ditto
      	(gtk_tree_store_insert_after): ditto
      	(gtk_tree_store_is_ancestor): ditto
      	(gtk_tree_store_iter_depth): ditto
      	(gtk_tree_store_insert_before): assert that sibling's parent is
      	the same as the passed-in parent
      	(gtk_tree_store_insert_after): assert that sibling's parent is
      	the same as the passed-in parent
      
      
      	* gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
      	function to get the first iterator in a model
      
      	* gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
      	conventionally the "root" in this sense is just NULL afaict.
      
      	* gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
      	where sibling == iter
      	(gtk_list_store_insert_after): handle case where sibling == iter
      
      	* tests/testtreeview.c (run_automated_tests): fairly lame basic
      	automated tests for ListStore, TreeStore
      
              * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
      	(gtk_list_store_insert): update tail pointer, and fix it to work
      	(gtk_list_store_insert_before): update tail pointer, and fix it to work
      	(gtk_list_store_append): use tail to be faster
      	(gtk_list_store_prepend): fix it, update tail pointer
      	(gtk_list_store_insert_after): fix it, update tail pointer
      
      	* gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
      	the list
      740ee8ef
  33. 09 Jan, 2001 2 commits
    • Havoc Pennington's avatar
      don't draw if label->layout is NULL due to a pending resize · 85267e92
      Havoc Pennington authored
      2001-01-09  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
      	is NULL due to a pending resize
      
      	* gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
      	column width to values less than 1
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
      	width to be between min/max width, and still set the width
      	even if autosize is turned on, so the tree view can use this
      	function in order to autosize.
      	(gtk_tree_view_column_init): set initial width to 1 not 0
      
      	* gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
      	setter function to modify column width, so we get notification
      	(gtk_tree_view_insert_iter_height): ditto
      	(gtk_tree_view_calc_size): ditto
      	(gtk_tree_view_check_dirty): ditto
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
      	properties to change all the interesting attributes of the tree
      	view column.
      	(gtk_tree_view_column_set_header_clickable): rename set_clickable
      	(gtk_tree_view_column_get_clickable): add
      	(gtk_tree_view_column_set_cell_renderer): don't unset the current
      	attributes; assume a cell renderer with equivalent object
      	properties has been swapped in. Do g_object_notify().
      	(gtk_tree_view_column_set_visible): g_object_notify
      	(gtk_tree_view_column_get_sizing): rename from get_col_type
      	(gtk_tree_view_column_set_sizing): g_object_notify
      	(gtk_tree_view_column_set_width): add g_object_notify
      	(gtk_tree_view_column_set_min_width): ditto
      	(gtk_tree_view_column_set_max_width): ditto
      	(gtk_tree_view_column_set_title): ditto
      	(gtk_tree_view_column_set_clickable): ditto
      	(gtk_tree_view_column_set_widget): ditto
      	(gtk_tree_view_column_set_justification): ditto
      85267e92
    • Havoc Pennington's avatar
      handle case where there are no rows in the model · 637c61da
      Havoc Pennington authored
      2001-01-09  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
      	there are no rows in the model
      
      	* gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
      	NULL, then return the start of the list
      
      	* gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
      	if we can't get any rows from an empty model
      
      	* gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
      	extraneous * after function pointer typedef usage
      
      	* Makefile.am: don't specify full path to cp and rm
      
      	* gtk/gtkcellrenderertextpixbuf.c
      	(gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
      	NULL before dereferencing, fixes a segfault that happened from
      	time to time
      
      	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
      	use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
      	and reindent the function
      	(gtk_cell_renderer_pixbuf_get_size): indentation
      
      	* gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
      	we quit it
      	(gtk_dialog_add_buttons_valist): add g_return_if_fail
      	(gtk_dialog_set_default_response): New function, to set default
      	button
      	(gtk_dialog_set_response_sensitive): New function, to set
      	sensitivity of buttons
      
      	* gtk/gtkcellrendererpixbuf.c
      	(gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
      	(gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
      
      	* gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
      	handle any G_TYPE_OBJECT subclass, not just the base class, and
      	also boxed types.
      	(_gtk_tree_data_list_value_to_node): ditto
      
      	* gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
      	--gtk-debug=tree
      
      	* gtk/gtkmain.c: add GTK_DEBUG_TREE
      
      	* gtk/gtkdebug.h: add GTK_DEBUG_TREE
      637c61da
  34. 08 Jan, 2001 2 commits
    • Jonathan Blandford's avatar
      Show menu items before adding to option menu. · 15b23123
      Jonathan Blandford authored
      Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* tests/testtreeview.c (main): Show menu items before adding to
      	option menu.
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
      	around if we kill them.
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
      	Return if we pass in a NULL model.
      15b23123
    • Havoc Pennington's avatar
      hack on this some · 157cfa27
      Havoc Pennington authored
      2001-01-08  Havoc Pennington  <hp@redhat.com>
      
      	* tests/testtreeview.c: hack on this some
      
      	* gtk/gtktreestore.c (gtk_tree_store_setv): rename
      	gtk_tree_store_set_valist, v is for arrays, valist for varargs
      	list
      	(gtk_tree_store_getv): rename gtk_tree_store_get_valist
      
      	* gtk/gtkliststore.h: Add varargs set() and get() convenience
      	functions
      157cfa27
  35. 06 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      hack on this a bit · 5c379067
      Havoc Pennington authored
      
      2001-01-05  Havoc Pennington  <hp@redhat.com>
      
      	* tests/testtreeview.c: hack on this a bit
      
      	* gtk/gtktextlayout.c (gtk_text_layout_class_init):
      	s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
      
      	* gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
      	was spelled incorrectly
      	(GTK_IS_TREE_MODEL_SIMPLE): ditto
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
      	from gtk_tree_view_set_headers_active
      
      	* gtk/gtktexttag.c:
      	(gtk_text_tag_get_property): handle PROP_DIRECTION
      	(gtk_text_tag_set_property): g_object_notify when we toggle the _set
      	properties, bug 40235
      
      	* gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
      	forward_to_line_end
      5c379067
  36. 21 Dec, 2000 2 commits
    • Havoc Pennington's avatar
      more work · 44a09c37
      Havoc Pennington authored
      2000-12-21  Havoc Pennington  <hp@redhat.com>
      
      	* tests/testtreeview.c: more work
      44a09c37
    • Havoc Pennington's avatar
      new directory to contain tests, gtk/test* should move here sometime (with · f00175cf
      Havoc Pennington authored
      2000-12-20  Havoc Pennington  <hp@redhat.com>
      
      	* tests: new directory to contain tests, gtk/test* should move
      	here sometime (with appropriate on-cvs-server hackery)
      
      	* tests/testtreeview.c, tests/Makefile.am: a test
      
      	* configure.in (AC_OUTPUT): add tests/Makefile
      
      	* gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
      	and "invisible_set" which were missing
      
      	* gtk/gtkrbtree.h: some cheesy indentation fix
      f00175cf