Commit Graph

17 Commits

Author SHA1 Message Date
97adccec5d fixes for compiler warnings
2004-06-10  Radek Doulik  <rodo@ximian.com>

	* e-cell-text.c (layout_with_preedit): removed unused variable

	* e-tree.c (e_tree_get_item): added cast
	added #include <atk/atkregistry.h>

	* e-table-one.c (one_finalize): removed unused variable

	* e-table-item.c: added #include
	"gal/a11y/e-table/gal-a11y-e-table-item.h" for
	gal_a11y_e_table_item_factory_get_type prototype

	* e-table-header-utils.c (e_table_header_draw_button): removed
	unused variable

	* e-table-config.c (get_source_model_col_index): removed unused
	variable

	* e-table-click-to-add.c (finish_editing): added cast
	(etcta_event): ditto

	* e-cell-toggle.c: added #include
	"gal/a11y/e-table/gal-a11y-e-cell-registry.h" to have
	gal_a11y_e_cell_registry_add_cell_type prototype

	* e-cell-text.c (layout_with_preedit): removed unused variable
	(build_layout): ditto
	(ect_event): ditto
	(e_cell_text_commit_cb): ditto

	* e-cell-popup.c: added #include
	"gal/a11y/e-table/gal-a11y-e-cell-registry.h" to have
	gal_a11y_e_cell_registry_add_cell_type prototype

svn path=/trunk/; revision=26284
2004-06-10 15:29:15 +00:00
2f31296184 Change the shadow type for the arrows here, so that themes that do handle
2004-02-12  Rodney Dawes  <dobey@ximian.com>

	* gal/widgets/gal-combo-box.c (gal_combo_box_init): Change the
	shadow type for the arrows here, so that themes that do handle the
	use of shadow types with arrows, draw things correctly, instead of
	following what the old default gtk+ did in 1.x

2004-02-12  Rodney Dawes  <dobey@ximian.com>

	* e-cell-popup.c (ecp_draw):
	* e-cell-spin-button.c (ecsb_draw):
	* e-table-header-utils.c (e_table_header_draw_button): Change the
	shadow type for the arrows here, so that themes that do handle the
	use of shadow types with arrows, draw things correctly, instead of
	following what the old default gtk+ did in 1.x

2004-02-12  Rodney Dawes  <dobey@ximian.com>

	* e-vscrolled-bar.c (e_vscrolled_bar_init): Change the
	shadow type for the arrows here, so that themes that do handle the
	use of shadow types with arrows, draw things correctly, instead of
	following what the old default gtk+ did in 1.x

svn path=/trunk/; revision=24720
2004-02-12 17:02:31 +00:00
f5ab5764e7 Don't unref the layout that was passed in. (e_table_header_draw_button):
2003-04-15  Hans Petter Jansson  <hpj@ximian.com>

	* e-table-header-utils.c (e_table_draw_elided_string): Don't unref
	the layout that was passed in.
	(e_table_header_draw_button): Always unref the layout when we're
	done with it.

	* e-tree-table-adapter.c (e_tree_table_adapter_load_expanded_state):
	Free the id when we're done with it.

svn path=/trunk/; revision=20853
2003-04-15 21:34:31 +00:00
9901ae486e kill a double unref on the pango_layout.
2003-02-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-header-utils.c (e_table_header_draw_button): kill
	a double unref on the pango_layout.

svn path=/trunk/; revision=19900
2003-02-13 16:07:38 +00:00
b6a3b64021 pass in the pango layout so we don't have to create another one here.
2002-12-16  Chris Toshok  <toshok@ximian.com>

	* e-table-header-utils.c (e_table_draw_elided_string): pass in the
	pango layout so we don't have to create another one here.  Also,
	elide the string properly (same method that e-clipped-label uses)
	and simplify the extent operations.
	(e_table_header_compute_height): just use
	pango_layout_get_pixel_size here.
	(e_table_header_draw_button): make sure the clip rectangle is
	NULL'ed on our gc, since random gtk calls seem to install one,
	which sucks.  Also, simplify the pango layout stuff a little.

svn path=/trunk/; revision=19142
2002-12-16 23:24:24 +00:00
0bbe38655b GObject port work.
2002-11-16  Chris Toshok  <toshok@ximian.com>

	* e-cell-checkbox.[ch]: GObject port work.

	* e-cell-combo.[ch]: same.

	* e-cell-date.[ch]: same.

	* e-cell-float.[ch]: same.

	* e-cell-number.[ch]: same.

	* e-cell-pixbuf.[ch]: same.

	* e-cell-popup.[ch]: same.

	* e-cell-progress.[ch]: same.

	* e-cell-size.[ch]: same.

	* e-cell-spin-button.[ch]: same.

	* e-cell-text.[ch]: same.

	* e-cell-toggle.[ch]: same.

	* e-cell-tree.[ch]: same.

	* e-cell-vbox.[ch]: same.

	* e-cell.[ch]: same.

	* e-table-col.c: same.

	* e-table-column.c: same.

	* e-table-config-field.[ch]: same.

	* e-table-config.c: same.

	* e-table-config.glade: same.

	* e-table-field-chooser-dialog.[ch]: same.

	* e-table-field-chooser-item.[ch]: same.

	* e-table-field-chooser.[ch]: same.

	* e-table-group-container.[ch]: same.

	* e-table-group-leaf.[ch]: same.

	* e-table-group.[ch]: same.

	* e-table-header-item.[ch]: same.

	* e-table-header-utils.[ch]: same.

	* e-table-header.c: same.

	* e-table-item.[ch]: same.

	* e-table-scrolled.[ch]: same.

	* e-table-utils.c: same.

	* e-table.[ch]: same.

	* e-tree-memory-callbacks.h: same.

	* e-tree-scrolled.[ch]: same.

	* e-tree-sorted-variable.c: same.

	* e-tree.[ch]: same.

	* test-check.c: same.

	* test-cols.c: same.

	* test-table.c: same.

svn path=/trunk/; revision=18801
2002-11-17 00:02:53 +00:00
613453b109 merging the gal-2 branch back to the trunk.
merging the gal-2 branch back to the trunk.

svn path=/trunk/; revision=18471
2002-10-31 21:30:57 +00:00
874390a837 Added this function that lets you specify the translation domain.
2002-05-02  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h
	(e_popup_menu_create_with_domain): Added this function that lets
	you specify the translation domain.

From gal/e-table/ChangeLog:

2002-05-02  Christopher James Lahey  <clahey@ximian.com>

	* e-table-click-to-add.c (finish_editing): Add horizontal dividers
	here too.

	* e-table-config.c (create_global_store): Translate column headers
	here.

	* e-table-header-item.c (ethi_header_context_menu): Use
	e_popup_menu_create_with_domain here.

	* e-table-header-utils.c (e_table_header_draw_button): Translate
	from utf8 here before drawing.

	* e-table-memory-store.c, e-table-memory-store.h
	(e_table_memory_store_insert_adopt_array): Changed the name of
	this function from e_table_memory_store_insert_adopt.
	(e_table_memory_store_insert_adopt): Added this function which
	takes a ... list.

	* e-table-utils.c (et_col_spec_to_col): Translate column titles to
	utf8 here.

svn path=/trunk/; revision=16668
2002-05-02 20:32:19 +00:00
c3e3a85f28 Changed the license announcement at the top of these files.
2001-10-26  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-checkbox.c, e-cell-checkbox.h, e-cell-combo.c,
	e-cell-combo.h, e-cell-date.c, e-cell-date.h, e-cell-number.c,
	e-cell-number.h, e-cell-pixbuf.c, e-cell-pixbuf.h, e-cell-popup.c,
	e-cell-popup.h, e-cell-size.c, e-cell-size.h,
	e-cell-spin-button.c, e-cell-spin-button.h, e-cell-string.c,
	e-cell-text.c, e-cell-text.h, e-cell-toggle.c, e-cell-toggle.h,
	e-cell-tree.c, e-cell-tree.h, e-cell.c, e-cell.h,
	e-table-click-to-add.c, e-table-click-to-add.h, e-table-col-dnd.h,
	e-table-col.c, e-table-col.h, e-table-column-specification.c,
	e-table-column-specification.h, e-table-column.c,
	e-table-config-field.c, e-table-config-field.h, e-table-config.c,
	e-table-config.h, e-table-defines.h, e-table-example-1.c,
	e-table-example-2.c, e-table-extras.c, e-table-extras.h,
	e-table-field-chooser-dialog.c, e-table-field-chooser-dialog.h,
	e-table-field-chooser-item.c, e-table-field-chooser-item.h,
	e-table-field-chooser.c, e-table-field-chooser.h,
	e-table-group-container.c, e-table-group-container.h,
	e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
	e-table-group.h, e-table-header-item.c, e-table-header-item.h,
	e-table-header-utils.c, e-table-header-utils.h, e-table-header.c,
	e-table-header.h, e-table-item.c, e-table-item.h,
	e-table-memory-callbacks.c, e-table-memory-callbacks.h,
	e-table-memory.c, e-table-memory.h, e-table-model.c,
	e-table-model.h, e-table-one.c, e-table-one.h, e-table-scrolled.c,
	e-table-scrolled.h, e-table-selection-model.c,
	e-table-selection-model.h, e-table-simple.c, e-table-simple.h,
	e-table-size-test.c, e-table-sort-info.c, e-table-sort-info.h,
	e-table-sorted-variable.c, e-table-sorted-variable.h,
	e-table-sorted.c, e-table-sorted.h, e-table-sorter.c,
	e-table-sorter.h, e-table-sorting-utils.c,
	e-table-sorting-utils.h, e-table-specification.c,
	e-table-specification.h, e-table-state.c, e-table-state.h,
	e-table-subset-variable.c, e-table-subset-variable.h,
	e-table-subset.c, e-table-subset.h, e-table-tooltip.h,
	e-table-tree.h, e-table-utils.c, e-table-utils.h,
	e-table-without.c, e-table-without.h, e-table.c, e-table.h,
	e-tree-memory-callbacks.c, e-tree-memory-callbacks.h,
	e-tree-memory.c, e-tree-memory.h, e-tree-model.c, e-tree-model.h,
	e-tree-scrolled.c, e-tree-scrolled.h, e-tree-selection-model.c,
	e-tree-selection-model.h, e-tree-simple.c, e-tree-simple.h,
	e-tree-sorted-variable.c, e-tree-sorted-variable.h,
	e-tree-sorted.c, e-tree-sorted.h, e-tree-table-adapter.c,
	e-tree-table-adapter.h, e-tree.c, e-tree.h, table-test.c,
	table-test.h, test-check.c, test-cols.c, test-table.c: Changed the
	license announcement at the top of these files.

	* e-cell-string.c: Removed unused file.

svn path=/trunk/; revision=14154
2001-10-26 18:25:47 +00:00
2def5aacb2 Got rid of the gc argument to e_table_header_draw_button.
2001-10-23  Christopher James Lahey  <clahey@ximian.com>

	* e-table-field-chooser-item.c: Got rid of the gc argument to
	e_table_header_draw_button.
	(etfci_font_load): Just use the style font here.

	* e-table-group-container.c (e_table_group_container_construct):
	Changed this to just use the font from the style.  Fixes Ximian
	bug #11882.

	* e-table-header-item.c: Got rid of the gc argument to
	e_table_header_draw_button.
	(ethi_font_load): Changed this to just fallback on the font from
	the style if the fontname is NULL or doesn't load to a font.
	Fixes Ximian bug #11882.

	* e-table-header-utils.c, e-table-header-utils.h
	(e_table_header_draw_button): Got rid of the gc parameter here and
	changed to use the gc from the style of a button created for this
	purpose, but not shown.  Fixes Ximian bug #13251.

svn path=/trunk/; revision=13949
2001-10-23 19:48:19 +00:00
c4f279f480 Make pixbuf columns show their title if there is space.
2001-04-23  Christopher James Lahey  <clahey@ximian.com>

	* e-table-header-utils.c (e_table_header_draw_button): Make pixbuf
	columns show their title if there is space.

svn path=/trunk/; revision=9517
2001-04-23 20:18:35 +00:00
e15acd5bd2 Added #include <string.h> for strcmp(). Same for strlen().
2001-03-16  Kjartan Maraas  <kmaraas@gnome.org>

	* e-cell-combo.c: Added #include <string.h> for strcmp().
	* e-table-header-utils.c: Same for strlen().

svn path=/trunk/; revision=8757
2001-03-16 12:55:54 +00:00
baffaa5769 Step 2
svn path=/trunk/; revision=7521
2001-01-15 23:33:00 +00:00
ac063e3d36 Rename from Helix Code -> Ximian
svn path=/trunk/; revision=7520
2001-01-15 23:32:09 +00:00
a000f7480b New function to calculate the extra pixels per column header.
2000-12-13  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-utils.c, e-table-header-utils.h
	(e_table_header_width_extras): New function to calculate the extra
	pixels per column header.

	* e-table-header.c, e-table-header.h: Added a "width_extras"
	argument which is used to calculate the correct minimum widths for
	each column header after adding padding.

	* e-table-item.c (_do_tooltip): Destroy the old tooltip window
	when creating the new one.
	(eti_event): Destroy the old tooltip window if the person presses
	a key.  Don't handle the tab key.

	* e-table.c (et_state_to_header): Set the ETableHeader's
	width_extras argument.

svn path=/trunk/; revision=6978
2000-12-13 22:34:36 +00:00
655cd28a43 Missed this file during the last commit.
svn path=/trunk/; revision=6817
2000-12-06 18:49:13 +00:00
f70c74f371 Federico gets into pixel-perfect neurosis. Xmag is my best friend.
2000-12-01  Federico Mena Quintero  <federico@helixcode.com>

	Federico gets into pixel-perfect neurosis.  Xmag is my best friend.

	* e-table-item.c (eti_draw): Set the focus_gc stipple origin to
	match the upper-left corner of the focus rectangle.  This way
	focusing will look consistent even among rows/columns with odd
	pixel sizes.  Also, make the focus rectangle span the whole cell;
	there was one blank pixel column to the left of the rectangle.

	* e-table-header-utils.c: New file with utilities for drawing
	header buttons.  This is so that ETableHeaderItem and
	ETableFieldChooserItem can share the same code.
	(e_table_header_compute_height): New function to compute the
	height of a column button.
	(make_composite_pixmap): New function to composite a pixbuf
	against a solid background and make a pixmap out of the result.
	This does some ultra-fancy fading-out of the original pixbuf if
	the destination area is smaller than the source.
	(compute_elision_length): New function to compute the elision
	length in O(n log n) instead of O(n^2), for n = strlen (str).
	(e_table_header_draw_button): New function to draw a header
	button.
	(e_table_draw_elided_string): New function to draw a string elided
	to a maximum width.

	* e-table-defines.h (HEADER_PADDING): Made the default padding be
	1; now a header button's height is
	content_height + 2 * (HEADER_PADDING + style->ythickness).  This
	is the correct way to measure button heights.

	* e-table-field-chooser-item.c (etfci_find_button): Use
	e_table_header_compute_height().
	(etfci_reflow): Likewise.
	(etfci_draw): Use e_table_header_draw_button().
	(etfci_start_drag): Likewise.
	(etfci_draw): Likewise.
	(etfci_start_drag): Likewise.
	(etfci_button_height): Removed function.
	(draw_button): Removed function.

	* e-table-header-item.c (draw_button): Removed function.
	(e_table_header_item_get_height): Use e_table_header_compute_height().
	(ethi_draw): e_table_header_draw_button().
	(ethi_start_drag): Likewise.
	(make_shaped_window_from_xpm): Fixed misspelling in function name.
	(draw_button): Removed function.

	* Makefile.am: Added e-table-header-utils.[ch].

svn path=/trunk/; revision=6766
2000-12-02 17:35:22 +00:00