Commit Graph

1816 Commits

Author SHA1 Message Date
0a68edd9a4 add an expander_style param (ect_draw): pass expander_style to
2003-08-19  Mike Kestner  <mkestner@ximian.com>

	* e-cell-tree.c (draw_expander): add an expander_style param
	(ect_draw): pass expander_style to draw_expander
	(animate_expander): new timeout handler for expander animation
	(ect_event): on !retro clicks, draw a "semi" expander and start
	an animation handler to finish the animation.

svn path=/trunk/; revision=22288
2003-08-19 17:27:36 +00:00
405b846e5b extracted from ect_draw (draw_expander): new gtktreeview-like expander
2003-08-15  Mike Kestner  <mkestner@ximian.com>

	* e-cell-tree.c (draw_retro_expander): extracted from ect_draw
	(draw_expander): new gtktreeview-like expander drawing
	(ect_draw): draw lines and expanders based on retro_look style prop
	(adjust_event_position): extracted method from ect_event
	(event_in_expander): new checks for motion/clicks in expander
	(ect_event): handle prelight for new expanders
	* e-table-item.c (eti_init): init new motion col/row
	(eti_event): synthesize leave_notify events for cells and propogate
	existing motion events to the cells.
	* e-tree.c (e_tree_class_init): add retro_look and expander_size
	style props.

svn path=/trunk/; revision=22251
2003-08-15 20:23:12 +00:00
a8ef795eb9 filter S-F10 key binding, and show popup menu. (popup_menu_placement_cb):
2003-08-10  Maxx Cao  <maxx.cao@sun.com>

       * gal/e-text/e-text.c (e_text_event): filter S-F10 key binding, and
       show popup menu.
       (popup_menu_placement_cb): function added to adjust popup menu position.+       (popup_targets_received): show popup menu in different ways, according
       to whether it's invoked by mouse click or key binding.

svn path=/trunk/; revision=22204
2003-08-13 06:00:20 +00:00
7e917e1335 actually chose the right color to+ composite over when caching the pixmap.
2003-08-12  Larry Ewing  <lewing@ximian.com>
       * e-cell-toggle.c (check_cache): actually chose the right color to+       composite over when caching the pixmap.

svn path=/trunk/; revision=22200
2003-08-12 22:39:49 +00:00
53aa9cac16 map model_column to available model row by ignoring disabled columns.
2003-07-28  Mike Kestner  <mkestner@ximian.com>

	* e-table-config (setup_fields): map model_column to available
	model row by ignoring disabled columns.

svn path=/trunk/; revision=21993
2003-07-28 16:09:08 +00:00
8290ca8849 use EVO_MARSHAL_RULE
* Makefile.am: use EVO_MARSHAL_RULE

svn path=/trunk/; revision=21916
2003-07-23 16:43:24 +00:00
c4e2afa4a0 Remove this, since it claims to be deprecated, and nothing is actually
* e-messagebox.c: Remove this, since it claims to be deprecated,
        and nothing is actually using it any more.

        * Makefile.am: Remove e-messagebox.[ch]

svn path=/trunk/; revision=21900
2003-07-23 14:54:16 +00:00
89cbf144bd add missing e_text_copy_clipboard() prototype
* gal/e-text/e-text.h: add missing e_text_copy_clipboard()
	  prototype

svn path=/trunk/; revision=21899
2003-07-23 14:44:57 +00:00
a1e92e17fa Create the pixbuf from empty.xpm rather than just calling
* e-combo-button.c (create_empty_pixmap_widget): Create the pixbuf
	from empty.xpm rather than just calling gdk_pixbuf_new(), which
	doesn't actually initialize the pixel data.

svn path=/trunk/; revision=21898
2003-07-23 13:49:30 +00:00
9cafe346c6 Added a handler for GtkWidget::mnemonic_activate().
2003-07-11  Federico Mena Quintero  <federico@ximian.com>

	* e-dateedit.c (e_date_edit_mnemonic_activate): Added a handler
	for GtkWidget::mnemonic_activate().

	* e-url-entry.c (mnemonic_activate): Likewise.

svn path=/trunk/; revision=21804
2003-07-13 19:29:03 +00:00
632b2e339f Chain to the parent handler. Fixes #45236.
2003-07-09  Federico Mena Quintero  <federico@ximian.com>

	* e-url-entry.c (destroy): Chain to the parent handler.  Fixes #45236.

svn path=/trunk/; revision=21782
2003-07-09 19:49:43 +00:00
aecbd37011 make sure we don't unref the sorter more than once.
2003-07-04  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_dispose): make sure we don't
	unref the sorter more than once.

svn path=/trunk/; revision=21741
2003-07-05 06:20:13 +00:00
e38e234f3e unref the sorter
* gal/widgets/e-reflow.c (e_reflow_dispose): unref the sorter

svn path=/trunk/; revision=21707
2003-07-01 13:17:01 +00:00
cfacfc319d Initialize some missing fields. Fixes "no handler with id" warnings at evo
* e-tree.c (e_tree_init): Initialize some missing fields. Fixes
        "no handler with id" warnings at evo shutdown
        (ETreePriv): remove unused table_rows_{inserted,deleted}_id
        (et_disconnect_from_etta): remove refs to them

        * e-table.c (e_table_drag_source_unset): free site->target_list if
        it's set.

svn path=/trunk/; revision=21705
2003-07-01 13:16:43 +00:00
4f9a9a6379 Implement. (ect_print): Use same font heuristics as evo calendar, pick a
2003-06-22  Hans Petter Jansson  <hpj@ximian.com>

        * e-cell-text.c (get_font_for_size): Implement.
        (ect_print): Use same font heuristics as evo calendar, pick a font
        that fits. Correct baseline calculation.

svn path=/trunk/; revision=21519
2003-06-23 20:30:22 +00:00
2bebec36f0 fix string duplication and refcounting problems.
2003-06-23  Larry Ewing  <lewing@ximian.com>

	* gal-define-views-dialog.c (gdvd_button_new_dialog_callback): fix
	string duplication and refcounting problems.

2003-06-20  Larry Ewing  <lewing@ximian.com>

	* gal-view-etable.c (config_changed): unref after g_object_get
	adds a ref.

svn path=/trunk/; revision=21516
2003-06-23 19:11:46 +00:00
0853c68484 (set_menu): Translate the text. [#45112]
svn path=/trunk/; revision=21506
2003-06-23 14:03:54 +00:00
0eb6a97f87 set iso-2022-cn string to Simplified
svn path=/trunk/; revision=21485
2003-06-19 20:05:57 +00:00
6f7f415822 Fix for #45082: GB18030 BIG5HKSCS and EUC-TW charsets not supported in
2003-06-18  Suresh Chandrasekharan  <suresh.chandrasekharan@sun.com>

	* e-charset-picker.c: Fix for #45082: GB18030 BIG5HKSCS and EUC-TW
	charsets not supported in evolution mail

2003-06-17  Jeffrey Stedfast  <fejj@ximian.com>

	* e-charset-picker.c (e_charset_picker_bonobo_ui_populate): Don't
	use the charset class in the menu label if it is 'Unknown'.
	(e_charset_picker_bonobo_ui_populate): For user-defined charsets,
	just use the name of the charset rather than "Unknown".
	(add_charset): Don't escape _'s anymore, this seems to not be
	needed int gtk2.
	(add_other_charset): g_strdup() the charset name. Fixes bug
	#43917.

svn path=/trunk/; revision=21484
2003-06-19 17:42:26 +00:00
f64e3ca963 remove extra ref, the count starts at one.
2003-06-19  Larry Ewing  <lewing@ximian.com>

	* e-table-specification.c (e_table_specification_load_from_node):
	remove extra ref, the count starts at one.

	* e-table-utils.c (e_table_spec_to_full_header): add_column adds a
	reference, so drop the intial reference.

	* e-table.c (et_real_construct):remove extra ref, count starts at
	one.

svn path=/trunk/; revision=21479
2003-06-19 15:31:31 +00:00
243441287f accept event arg to be NULL.
2003-06-19  Bolian Yin <bolian.yin@sun.com>

        * e-gui-utils.c (e_popup_menu): accept event arg to be NULL.

svn path=/trunk/; revision=21472
2003-06-19 02:27:12 +00:00
996f1063f9 don't do the CURSOR_FIRST checks if cursor is NULL [43523]
2003-06-13  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (et_search_search): don't do the CURSOR_FIRST
	checks if cursor is NULL [43523]

2003-06-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_get_cell_background_color): update to
	an alt row color more consistent with gtktreeview. [44610]

svn path=/trunk/; revision=21440
2003-06-13 22:27:03 +00:00
fd2b10f13c missed the changelog entry last time.
svn path=/trunk/; revision=21432
2003-06-13 15:44:33 +00:00
1377ba2908 i2003-06-13 Larry Ewing <lewing@ximian.com>
* gal/widgets/e-canvas.c (e_canvas_dispose): unref the im_context.

svn path=/trunk/; revision=21430
2003-06-13 15:13:05 +00:00
51ca9977c7 Put the ChangeLog.pre-1-4 in the Makefiles.
svn path=/trunk/; revision=21426
2003-06-12 21:13:59 +00:00
a37e4f4213 guard against NULL strings don't add disabled column titles to the store.
2003-06-12  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (generate_layout): guard against NULL strings
	* e-table-config.c (create_global_store): don't add disabled
	column titles to the store. [44258]
	* e-tree-table-adapter.c (e_t_t_a_node_set_expanded): don't
	warn if we're trying to collapse a node that's not visible.
	* e-tree.c (et_connect_to_etta): don't connect to row_inserted
	and row_deleted. [43893]

svn path=/trunk/; revision=21424
2003-06-12 13:35:46 +00:00
62a2b36c72 take ownership of the duplicate string.
2003-06-11  Larry Ewing  <lewing@ximian.com>

	* e-search-bar.c (impl_get_property): take ownership of the
	duplicate string.

svn path=/trunk/; revision=21417
2003-06-11 21:32:40 +00:00
fd2f3a6d7a Roll over ChangeLogs.
svn path=/trunk/; revision=21387
2003-06-09 17:31:26 +00:00
79f2149fd1 Fixes #43775
2003-05-29  JP Rosevear  <jpr@ximian.com>

	Fixes #43775

	* e-calendar-item.c (layout_set_day_text): calculate the day
	character correctly
	(e_calendar_item_draw_month): use it

	* e-dateedit.c (rebuild_time_popup): use e_utf8_strftime
	(e_date_edit_update_date_entry): ditto
	(e_date_edit_update_time_entry): ditto

	* e-calendar-item.c (layout_set_day_text): calculate the day
	character correctly
	(e_calendar_item_draw_month): use e_utf8_strftime and above
	(e_calendar_item_show_popup_menu): use e_utf8_strftime
	(e_calendar_item_recalc_sizes): use layout_set_day_text

svn path=/trunk/; revision=21352
2003-05-30 17:32:31 +00:00
0701e570aa bump libtool version for api addition new, utf8 in/out
2003-05-28  Mike Kestner  <mkestner@ximian.com>

	* configure.in : bump libtool version for api addition
	* gal/util/e-util.c (e_utf8_strftime): new, utf8 in/out
	(e_utf8_strftime_fix_am_pm): new, utf8 in/out

2003-05-28  Mike Kestner  <mkestner@ximian.com>

	* e-cell-date.c (ecd_get_text): use e_utf8_strftime_fix_am_pm
	and remove locale to utf8 conversion at end.  [43485]

svn path=/trunk/; revision=21343
2003-05-28 21:32:52 +00:00
3c4aef5b41 to really fix 42952 use e_table_item_get_cell_geometry. Also a couple
2003-05-20  Ettore Perazzoli  <ettore@ximian.com>

	* e-tree.c (tree_canvas_size_allocate): to really fix 42952
	use e_table_item_get_cell_geometry.  Also a couple valgrind
	and g_warning fixes related to this change from Mike.

svn path=/trunk/; revision=21303
2003-05-21 16:02:59 +00:00
f6f73451c5 Added HIG-appropriate spacing/ padding to the main hbox into which the
2003-05-19  Anna Marie Dirks  <anna@ximian.com>

	* e-multi-config-dialog.c (init): Added HIG-appropriate spacing/
	padding to the main hbox into which the icons and page widgets
	are packed.

svn path=/trunk/; revision=21265
2003-05-19 18:51:06 +00:00
fcb80018c0 revert a broken CLEAN_FILES change. [42478]
2003-05-19  Mike Kestner  <mkestner@ximian.com>

	* Makefile.am : revert a broken CLEAN_FILES change. [42478]

2003-05-19  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (build_layout): don't call any line breaking
	or justification code if the width <= 0 since it's pointless
	and apparently pango likes to crash when you do. [43199]

svn path=/trunk/; revision=21260
2003-05-19 18:37:12 +00:00
0a590f3a85 HIG-ified the spacing, padding, alignment of this dialog. Fixes bug #41148
2003-05-19  Anna Marie Dirks  <anna@ximian.com>

	* e-timezone-dialog/e-timezone-dialog.glade: HIG-ified the
	spacing, padding, alignment of this dialog. Fixes bug #41148

svn path=/trunk/; revision=21253
2003-05-19 15:45:55 +00:00
41dba7ad48 port to GtkDialog.
2003-05-19  Larry Ewing  <lewing@ximian.com>

	* e-charset-picker.c: port to GtkDialog.

svn path=/trunk/; revision=21244
2003-05-19 13:54:21 +00:00
d09737dec4 block the signal that got us here until we're done to stop an infinite
2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* gal-view-collection.c (view_changed): block the signal
	that got us here until we're done to stop an infinite
	recursion.  Fixes 43153.

2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* e-cell-text.c (invisible_finalize): kill
	(ect_stop_editing): destroy the invisible, not weak_unref
	(e_cell_text_view_get_invisible): don't weak_ref the invisible
	since we own its ref.

2003-05-16  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_event): fix a couple timer checks
	* e-tree-table-adapter.c (update_node): Traverse POST order
	so that the parent nodes are at the head of the prepended list.
	Don't restore expanded state to nodes that aren't in the tree
	any longer.  Hopefully fixes #42856.

svn path=/trunk/; revision=21229
2003-05-16 21:58:33 +00:00
2d6fce0574 Added appropriate padding/spacing to the categories list dialog. Fixes the
2003-05-16  Anna Marie Dirks  <anna@ximian.com>

	* gal/widgets/e-categories.c: Added appropriate padding/spacing
	to the categories list dialog. Fixes the rest of #41217.

	* gal/widgets/e-categories-master-list-dialog.glade: HIG-ified
	this dialog.

	* gal/widgets/gal-categories.glade: HIG-ified this dialog
	(in terms of spacing/padding). Fixes most of bug #41217

svn path=/trunk/; revision=21228
2003-05-16 20:16:42 +00:00
2679330687 Make sure the galview.xml file exists before trying to parse it with
2003-05-16  Jeffrey Stedfast  <fejj@ximian.com>

	* gal-view-collection.c (load_single_dir): Make sure the
	galview.xml file exists before trying to parse it with
	xmlParseFile() to avoid warning spewage from libxml2.

svn path=/trunk/; revision=21219
2003-05-16 18:27:37 +00:00
7e7b7f49e8 Disable debugging messages.
* gal-view-collection.c (d): Disable debugging messages.

* gal-view-instance.c (d): Disable debugging messages.

svn path=/trunk/; revision=21198
2003-05-15 21:56:40 +00:00
b47a4aa4ee (tree_canvas_size_allocate): Call
tree_canvas_reflow_idle() before deciding whether to move the
adjustment, not afterwards.  [#42952]

svn path=/trunk/; revision=21197
2003-05-15 20:58:15 +00:00
6cdf75996f use weak refs not datasets. (e_tree_dispose): weak_unref the context.
2003-05-14  Mike Kestner  <mkestner@ximian.com>

	* e-tree-c (context_connect): use weak refs not datasets.
	(e_tree_dispose): weak_unref the context.
	Hopefully fixes 42617.

svn path=/trunk/; revision=21195
2003-05-15 18:33:47 +00:00
d49d8a2f15 guard against multiple destroys
2003-05-14  JP Rosevear  <jpr@ximian.com>

	* e-combo-button.c (impl_destroy): guard against multiple destroys

2003-05-14  JP Rosevear  <jpr@ximian.com>

	* menus/gal-view-menus.c (gvm_finalize): unref the component

svn path=/trunk/; revision=21178
2003-05-14 18:42:38 +00:00
6e8895d6e8 gross hack to work around a post dispose event emission by
2003-05-13  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_event): gross hack to work around a
	post dispose event emission by gtk2.0/canvas2.0 [#42622]

svn path=/trunk/; revision=21174
2003-05-14 17:56:50 +00:00
2579e70339 [ fixes several utf8/pango related problems, including bugs #41288,
2003-05-13  Chris Toshok  <toshok@ximian.com>

	[ fixes several utf8/pango related problems, including bugs
	#41288, #42596, #42604 ]

	* configure.in (GAL_CURRENT): bump to 3, per mkestner.
	(GAL_REVISION): drop to 0, per mkestner.

	* gal/e-text/e-text.c (reset_layout_attrs): we need to convert the
	start/end bounds of the object to byte indices for the attribute.
	(reset_layout): in the layout == NULL case don't create the layout
	then immediately set it again with the same text.  also, we need
	to convert selection_start to a byte index before calling
	pango_layout_get_cursor_pos.
	(e_text_draw): remove some #ifdef 0'd code, move the calculation
	of our initial clip_rect below the xpos/ypos assignments so we
	don't duplicate the expression.  Fix the selection drawing in the
	multiline case so that it actually works, instead of assuming that
	all ETexts only have 1 line *boggle*.
	(get_position_from_xy): this needs to return a utf8 offset.
	(e_text_copy_clipboard): convert sel_start/sel_end to byte indices
	before copying.
	(primary_get_cb): same.
	(paste_received): validate the input here, and drop the length
	parameter from e_text_insert.
	(next_word): convert from an utf8 offset on entry to this
	function, and return a utf8 offset when we're done.  also, remove
	the call the g_unichar_validate.  we validate at all points where
	text is inserted.
	(find_offset_into_line): new function used in the backward/forward
	line code.  find the utf8 offset into a line (the number of utf8
	characters from a prior \n or beginning of the string.)
	(_get_position): in general there are lots of changes here because
	text->selection_start/text->selection_end are utf8 offsets, not
	byte offsets. fix E_TEP_START_OF_LINE so that hitting Ctrl-a when
	you're at the beginning of a line doesn't take you to the
	beginning of the previous line.  fix E_TEP_END_OF_LINE in an
	analogous fashion. for E_TEP_FORWARD_CHARACTER we just increment
	by 1.  for E_TEP_BACKWARD_CHARACTER we just decrement by 1.  for
	E_TEP_BACKWARD_WORD we drop the g_unichar_validate call and
	simplify things a bit.  reimplement
	E_TEP_FORWARD_LINE/E_TEP_BACKWARD_LINE so they find the current
	offset into the line, then scan forward/backward for the next/prev
	line, and put us at the right offset on that line.  fix
	E_TEP_SELECT_WORD so double clicking in the space between words
	doesn't select both words - if you double click on the trailing
	edge of the space, it selects the next word.  leading edge selects
	the previous one.  for E_TEP_SELECT_ALL use g_utf8_strlen.
	(e_text_insert): everything that calls this passes a \0 terminated
	string, so we assume it's \0 terminated (the old code did as well,
	with calls to strlen) and drop the length parameter.  also make
	sure this is all utf8 happy.
	(capitalize): use g_utf8_offset_to_pointer instead of just adding
	text->text and start/end, and remove the validate call.  also fix
	the call to e_text_model_delete and use e_text_model_insert_length
	instead of e_text_model_insert.
	(e_text_command): for E_TEP_INSERT, validate the input.  for
	E_TEP_CAPS just use MAX instead of the neat little hack.  also,
	fix the scrolling so that it scrolls properly in both X and Y
	directions (there are still some hiccups but it's much much better
	than previously).
	(e_text_commit_cb): validate the input here.

	* gal/e-text/e-text-model.c (struct _ETextModelPrivate): just use
	a GString here and get rid of MAX_LENGTH.
	(e_text_model_dispose): free GString.
	(e_text_model_real_validate_position): clean this up a bit.
	(e_text_model_real_get_text): return the contents of the GString.
	(e_text_model_real_get_text_length): use g_utf8_strlen here.
	(e_text_model_real_set_text): convert to GString
	(e_text_model_real_insert): just call e_text_model_insert_length
	here instead of duplicating the function.
	(e_text_model_real_insert_length): convert to utf8/gstring.
	i.e. convert @position and @length to a bytes and use
	g_string_insert_len.
	(e_text_model_real_delete): same, with g_string_erase.
	(e_text_model_get_text_length): use g_utf8_strlen
	(e_text_model_strdup_nth_object): convert the length of the object
	to bytes before copying.
	(e_text_model_get_nth_object_bounds): calculate start/end properly
	for u

svn path=/trunk/; revision=21163
2003-05-14 00:42:36 +00:00
990d1ba48a (gal_view_menus_unmerge): Guard against
the BonoboUIComponent not having a container to prevent a warning.

svn path=/trunk/; revision=21155
2003-05-13 16:11:26 +00:00
65fee07a39 [#42628] Call emit_search_activated() instead of emit_query_changed().
[#42628]
* e-search-bar.c (search_now_verb_cb): Call
emit_search_activated() instead of emit_query_changed().

svn path=/trunk/; revision=21154
2003-05-13 16:04:01 +00:00
a972ac3590 [ fixes bug #42177 ] remove the CAN_FOCUS flag.
2003-05-11  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #42177 ]
	* e-dateedit.c (e_date_edit_init): remove the CAN_FOCUS flag.

svn path=/trunk/; revision=21146
2003-05-11 21:57:25 +00:00
b08b55549a add null check for paths (find_prev_in_range): add null check for paths
2003-05-09  Mike Kestner  <mkestner@ximian.com>

	* e-tree.c (find_next_in_range): add null check for paths
	(find_prev_in_range): add null check for paths

svn path=/trunk/; revision=21143
2003-05-09 21:39:56 +00:00
4d31188934 don't return on col == -1. update the adjustment to center the cursor.
2003-05-09  Mike Kestner  <mkestner@ximian.com>

	* e-table-item.c (eti_cursor_change): don't return on col == -1.
	* e-tree.c (tree_canvas_size_allocate): update the adjustment
	to center the cursor.
	(hover_timeout): remove unused variable to fix warning

svn path=/trunk/; revision=21142
2003-05-09 17:14:17 +00:00
2b99ba904b Fix date in ChangeLog.
svn path=/trunk/; revision=21140
2003-05-09 16:34:22 +00:00