Commit Graph

291 Commits

Author SHA1 Message Date
f59604582d use the new ECellText methods to get the text and set the value.
2001-10-22  Damon Chaplin  <damon@ximian.com>

	* e-cell-date-edit.c (e_cell_date_edit_set_popup_values):
	(e_cell_date_edit_update_cell): use the new ECellText methods to get
	the text and set the value.

	* e-cell-percent.c: new subclass of ECellText to display & edit a
	percentage value.

svn path=/trunk/; revision=13916
2001-10-22 23:47:32 +00:00
4e91164bc7 Use right_click_down here instead of maybe_do_something.
2001-10-21  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_selection_event_real): Use
	right_click_down here instead of maybe_do_something.

svn path=/trunk/; revision=13842
2001-10-21 06:13:39 +00:00
093c2a884d Keep us from reading tmp_tm uninitialized, so purify won't complain.
2001-10-20  Jon Trowbridge  <trow@ximian.com>

	* e-dateedit.c (e_date_edit_check_date_changed): Keep us from
	reading tmp_tm uninitialized, so purify won't complain.

svn path=/trunk/; revision=13831
2001-10-20 22:57:19 +00:00
19c5a95912 Changed some of these gbooleans to be guint : 1s.
2001-10-20  Christopher James Lahey  <clahey@ximian.com>

	* gal/e-text/e-text.h: Changed some of these gbooleans to be
	guint : 1s.

	* gal/widgets/e-canvas.c (e_canvas_item_grab_focus): Send the in
	event here to the new focused item instead of the old one.

svn path=/trunk/; revision=13824
2001-10-20 19:03:03 +00:00
1
736e73548c bumped revision to .1
2001-10-11    <NotZed@Ximian.com>

	* configure.in: bumped revision to .1

	* gal/widgets/test-font-loading.c (print_gdk_font_name): Close
	iconv when done.

	* gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized): Close
	iconv when dont with it.
	(e_utf8_from_charset_string_sized): Changed for e_iconv api
	changes.
	(e_utf8_to_charset_string_sized): "
	(e_utf8_from_gtk_string_sized): Close iconv when done with it.
	(e_utf8_from_locale_string_sized): "
	(e_utf8_to_locale_string_sized): "

	* gal/widgets/e-font.c (e_locale_encoding): Removed.
	(e_iconv_from_charset): Removed.
	(e_iconv_to_charset): Removed.
	(e_iconv_from_locale): Removed.
	(e_iconv_to_locale): Removed.
	(e_iconv_from_gdk_font): Changd to use new e-iconv apis.
	(e_iconv_to_gdk_font): "
	(e_font_unref): Close iconv's when done with them.
	(translate_encoding): Removed.
	(get_locale_charset): Removed.
	(e_gdk_font_encoding): Fix for api changes.

	* gal/util/e-iconv.c: New stuff to commonify/fix up some problems
	with the iconv cache/conversion stuff inside e-font.

svn path=/trunk/; revision=13601
2001-10-11 22:07:28 +00:00
3c7aba68e9 Now takes a menu path argument.
2001-10-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-charset-picker.c (e_charset_picker_bonobo_ui_populate): Now
	takes a menu path argument.

svn path=/trunk/; revision=13528
2001-10-09 21:59:21 +00:00
3b74bfce98 remove the test condition and always work form the locale not he the font.
2001-10-06  Larry Ewing  <lewing@ximian.com>

	* gal/widgets/e-unicode.c (e_utf8_from_gtk_event_key): remove the
	test condition and always work form the locale not he the font.
	This has been tested and verified with owen.

svn path=/trunk/; revision=13487
2001-10-06 17:27:37 +00:00
c5f392ca0e add E_OBJECT_CLASS_ADD_SIGNALS and E_OBJECT_CLASS_TYPE to ease migration
2001-10-05  Michael Meeks  <michael@ximian.com>

	* gal/util/e-util.h: add E_OBJECT_CLASS_ADD_SIGNALS and
	E_OBJECT_CLASS_TYPE to ease migration to Gnome 2.0 from
	a single source base.

	* All C files:
	s/object_class->type,/E_OBJECT_CLASS_TYPE (object_class),/g;
	s/gtk_object_class_add_signals([^\(]*)\(([^,]*),([^,]*),([^\)]*)/
	E_OBJECT_CLASS_ADD_SIGNALS\1(\2,\3,\4/;

svn path=/trunk/; revision=13428
2001-10-04 23:52:20 +00:00
cec691f29f added BONOBO_GNOME_CFLAGS to make it compile with latest Bonobo
2001-10-04  Rodrigo Moya <rodrigo@ximian.com>

	* misc/Makefile.am:
	* menus/Makefile.am: added BONOBO_GNOME_CFLAGS to make it compile
	with latest Bonobo

svn path=/trunk/; revision=13407
2001-10-04 11:03:29 +00:00
ee35e29394 Call gnome_canvas_world_to_window here. Finishes fixing Ximian bug #2613.
2001-10-04  Christopher James Lahey  <clahey@ximian.com>

	* e-cell-date-edit.c (e_cell_date_edit_get_popup_pos): Call
	gnome_canvas_world_to_window here.  Finishes fixing Ximian bug
	#2613.

svn path=/trunk/; revision=13405
2001-10-04 07:22:56 +00:00
7d2487975f Transcode empty message from utf8 to gtk charset. Fixes Ximian bug #2468.
2001-10-02  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c (set_empty): Transcode empty message from
	utf8 to gtk charset.  Fixes Ximian bug #2468.

svn path=/trunk/; revision=13360
2001-10-02 23:39:03 +00:00
a84d2e0d8c Bumped the sonumber to 14.
2001-10-02  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the sonumber to 14.

	* gal/widgets/e-canvas-utils.c, gal/widgets/e-canvas-utils.h
	(e_canvas_item_area_shown): New function returns TRUE iff
	e_canvas_item_show_area would be a noop.

svn path=/trunk/; revision=13296
2001-10-02 11:12:31 +00:00
f0c38138fa grab focus to the date entry or the time entry, depending on which is
2001-09-18  Damon Chaplin  <damon@ximian.com>

	* e-dateedit.c (e_date_edit_grab_focus): grab focus to the date entry
	or the time entry, depending on which is visible. Fixes bug #7237.

svn path=/trunk/; revision=13185
2001-09-27 03:43:07 +00:00
650c4690b2 Commit patch from Chris to implement e_tree_right_click_up() for
correct right-click behavior in single selection mode.

svn path=/trunk/; revision=13123
2001-09-25 21:24:22 +00:00
854d75e713 Fixed a typo here where we were setting the running height based on the
2001-09-20  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-reflow.c (reflow_columns): Fixed a typo here where
	we were setting the running height based on the height of object
	number 2 instead of the current object.  Fixes Ximian bug #8807.

svn path=/trunk/; revision=13026
2001-09-20 23:14:16 +00:00
6d1f104d1e add prototype for e_date_edit_set_editable.
2001-09-16  Chris Toshok  <toshok@ximian.com>

	* e-dateedit.h: add prototype for e_date_edit_set_editable.

	* e-dateedit.c (e_date_edit_set_editable): new function, analogous
	to gtk_entry_set_editable: let's the user select but not edit (or
	in this case, bring up the calendar view.)

svn path=/trunk/; revision=12867
2001-09-17 02:58:58 +00:00
9fff8d1246 Check that unsorted >= 0 before using it as an array index. (Bug #9115)
2001-09-15  Jon Trowbridge  <trow@ximian.com>

	* gal/widgets/e-reflow.c (e_reflow_reflow): Check that
	unsorted >= 0 before using it as an array index.  (Bug #9115)

svn path=/trunk/; revision=12852
2001-09-15 06:57:00 +00:00
a24242acd4 Don't unref the old dropdown, we don't "own" it.
2001-09-13  Jeffrey Stedfast  <fejj@ximian.com>

	* e-search-bar.c (set_dropdown): Don't unref the old dropdown, we
	don't "own" it.

svn path=/trunk/; revision=12805
2001-09-13 18:59:05 +00:00
6796044313 unref the old dropdown_menu if there is one.
2001-09-13  Larry Ewing  <lewing@ximian.com>

	* e-search-bar.c (set_dropdown): unref the old dropdown_menu if
	there is one.

svn path=/trunk/; revision=12796
2001-09-13 09:12:52 +00:00
dc06d7ef54 No longer need the context in order to clone a FilterRule.
2001-09-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (menubar_activated): No longer need the context
	in order to clone a FilterRule.
	(option_changed): Same.

svn path=/trunk/; revision=12791
2001-09-13 00:13:59 +00:00
757848f054 Re-remove evil utf8_to_gtk debug printf that Chris seems to have
* gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized): Re-remove
	evil utf8_to_gtk debug printf that Chris seems to have
	accidentally re-added.

svn path=/trunk/; revision=12703
2001-09-08 16:28:17 +00:00
5b32dc6ffc Bumped version number to 0.11.99.3 for ETableWithout.
2001-09-07  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped version number to 0.11.99.3 for
	ETableWithout.

	* gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h
	(e_selection_model_maybe_do_something): Return a value based on
	whether we did something.

svn path=/trunk/; revision=12679
2001-09-07 19:03:00 +00:00
681e043977 added a default size for the saved search dialog of 600 x 300 such that it
2001-09-06  Anna Marie Dirks  <anna@ximian.com>

	* e-filter-bar.c: added a default size for the saved search
	dialog of 600 x 300 such that it opens at a usable size.
	this fixes bug #7083.

svn path=/trunk/; revision=12661
2001-09-06 22:45:14 +00:00
79f942b465 added a wee bit of padding around the find now label in response to bug
001-09-05  Anna Marie Dirks  <anna@ximian.com>

	* e-search-bar.c (add_activate_button): added a wee bit of
	padding around the find now label in response to bug #7049.

svn path=/trunk/; revision=12627
2001-09-05 20:16:04 +00:00
abef6d7dad Use e_iconv_from_locale, not e_iconv_to_locale.
* gal/widgets/e-unicode.c (e_utf8_from_locale_string_sized):
Use e_iconv_from_locale, not e_iconv_to_locale.

svn path=/trunk/; revision=12562
2001-09-02 20:06:40 +00:00
03a5d4a3d3 Bumped the version number to 0.11.99.2 for new e_utf8 functions.
2001-09-01  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number to 0.11.99.2 for new
	e_utf8 functions.

	* gal/widgets/e-unicode.c, gal/widgets/e-unicode.h
	(e_utf8_is_ascii): Added this function.  Reformatted.

svn path=/trunk/; revision=12557
2001-09-02 02:14:04 +00:00
a3d7a62572 Bumped the version number to 0.111.99.1 for new e_utf8 functions.
2001-09-01  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the version number to 0.111.99.1 for new
	e_utf8 functions.

	* gal/unicode/gunicollate.c (g_utf8_collate, g_utf8_collate_key):
	Changed this from e_utf8_from_locale_string to
	e_utf8_to_locale_string.

	* gal/widgets/e-font.c, gal/widgets/e-font.h
	(e_iconv_from_charset, e_iconv_to_charset): Added these functions
	to the exported interface (renamed them as well from
	e_iconv_from_encoding and e_iconv_to_encoding.)

	* gal/widgets/e-unicode.c, gal/widgets/e-unicode.h
	(e_utf8_from_iconv_string, e_utf8_from_iconv_string_sized,
	e_utf8_to_iconv_string, e_utf8_to_iconv_string_sized,
	e_utf8_from_charset_string, e_utf8_from_charset_string_sized,
	e_utf8_to_charset_string, e_utf8_to_charset_string_sized): Added
	these functions.
	(e_utf8_from_locale_string, e_utf8_to_locale_string): Changed
	these to use the new e_utf8_from_iconv_string and
	e_utf8_to_iconv_string.

svn path=/trunk/; revision=12554
2001-09-01 08:16:49 +00:00
24a4d864f0 New prototype here.
2001-08-27  Ettore Perazzoli  <ettore@ximian.com>

	* e-timezone-dialog/e-timezone-dialog.h
	(e_timezone_dialog_reparent): New prototype here.

svn path=/trunk/; revision=12511
2001-08-29 03:49:21 +00:00
54bea2eaa8 This patch fixes a lot of i18n problems in Evolution.
* gal/widgets/e-unicode.c (e_utf8_to_gtk_string_sized):
Call gtk_widget_ensure_style before refering to widget's style.

svn path=/trunk/; revision=12381
2001-08-22 15:10:32 +00:00
e4ec4a3420 cut and paste fixed version of gnome_canvas_button here.
2001-08-21  Chris Toshok  <toshok@ximian.com>

	* gal/widgets/e-canvas.c (e_canvas_button): cut and paste fixed
	version of gnome_canvas_button here.
	(pick_current_item): needed by e_canvas_button, also from
	gnome-canvas.c.
	(gnome_canvas_item_invoke_point): same.
	(e_canvas_class_init): hook button_press_event and
	button_release_event to e_canvas_button.

svn path=/trunk/; revision=12376
2001-08-22 01:20:55 +00:00
d5ea07e5be Compile fixes
svn path=/trunk/; revision=12172
2001-08-17 19:44:17 +00:00
a7da845f7f added e_date_edit_get/set_make_time_insensitive() which makes the time
2001-08-16  Damon Chaplin  <damon@ximian.com>

	* e-dateedit.c: added e_date_edit_get/set_make_time_insensitive()
	which makes the time field insensitive rather than hiding it.
	I'm not sure we're going to actually use this now, though.

svn path=/trunk/; revision=12135
2001-08-16 23:25:45 +00:00
791c2bec7e Set the horizontal usize of the entry to 4.
* e-search-bar.c (activate_by_subitems): Set the horizontal usize
of the entry to 4.

svn path=/trunk/; revision=12132
2001-08-16 22:28:24 +00:00
fef28ce070 Boost scoring on an exact nickname match. Manually addressify match.
2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* gui/component/select-names/e-select-names-completion.c
	(match_nickname): Boost scoring on an exact nickname match.
	Manually addressify match.
	(match_name): Manually addressify matches.
	(book_query_score): Remove automatic addressification.

	* gui/component/addressbook.c (addressbook_query_changed): Minor
	tweak to avoid a crash if we have a negative subid with id
	ESB_CATEGORY.  This should never happen.
	(addressbook_menu_activated): Reset the entry/option when we
	select "Clear".
	Some changes to reflect renaming in ESearchBar.

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_set_property_fn): Cardify after importing destinations.
	This might fix a problem that Damon is having.

2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* e-filter-bar.c (option_changed): Adjusted for renamed ESearchBar
	functions.
	(menubar_activated): Adjusted for renamed ESearchBar functions.

	* e-search-bar.c: Renames some of the horrible function names:
	s/option_choice/item_id/, s/suboption_choice/subitem_id/.

2001-08-16  Jon Trowbridge  <trow@ximian.com>

	* gui/cal-search-bar.c: Changed to reflect my renaming of some of
	the more hideously-named functions in the ESearchBar API.

svn path=/trunk/; revision=12081
2001-08-16 06:17:18 +00:00
f6ae871a73 Destroy, do not unref, the popup_window.
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	* e-cell-date-edit.c (e_cell_date_edit_destroy): Destroy, do not
	unref, the popup_window.

svn path=/trunk/; revision=12022
2001-08-14 18:32:33 +00:00
84eb55399b Correctness fixes for when the entry and submenu must be interchanged.
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	* e-search-bar.c (activate_by_subitems): Correctness fixes for
	when the entry and submenu must be interchanged.

svn path=/trunk/; revision=12019
2001-08-14 17:48:08 +00:00
f8473e11f7 *Please* add accessor functions instead of just object arguments!
2001-08-14  Federico Mena Quintero  <federico@ximian.com>

	*Please* add accessor functions instead of just object arguments!

	* e-search-bar.c (e_search_bar_set_option_choice): New function.
	(e_search_bar_set_suboption_choice): New function.
	(e_search_bar_set_text): New function.
	(impl_set_arg): Use the functions above instead of setting things
	directly.
	(add_dropdown): If the item is a separator, set it as insensitive.
	(activate_by_subitems): Handle the translate field in the subitem
	structure.  Also, allow the creation of separators by having NULL
	text strings in the subitems.
	(set_option): If the item is a separator, set it as insensitive.
	(set_option): Do not use the subitem_garbage hack.  Do proper
	memory management instead.
	(e_search_bar_set_suboption): New function to change the suboption
	items in a search bar.

	* e-search-bar.h (ESearchBarSubitem): Added a `translate' field.
	This API sucks so much it is not funny.
	(ESearchBar): Removed the subitem_garbage hack.  Please do proper
	memory management.

svn path=/trunk/; revision=12014
2001-08-14 16:04:33 +00:00
9086989f20 Add "Any Category" option for category searches.
2001-08-14  Jon Trowbridge  <trow@ximian.com>

	* gui/component/addressbook.c (addressbook_factory_new_control):
	Add "Any Category" option for category searches.
	(addressbook_query_changed): Do the right thing on an
	"Any Category" search.

2001-08-14  Jon Trowbridge  <trow@ximian.com>

	* e-search-bar.c (activate_by_subitems): Oops... initial
        suboption_choice should be subitems[0].id, not 0.

svn path=/trunk/; revision=12013
2001-08-14 15:48:39 +00:00
3baba3b25e Handle GDK_KP_Up and GDK_KP_Down here.
2001-08-14  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-selection-model.c (e_selection_model_key_press):
	Handle GDK_KP_Up and GDK_KP_Down here.

svn path=/trunk/; revision=11997
2001-08-14 08:04:34 +00:00
7796022af8 Oops, we didn't need to unref all of the widgets, just a few.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-search-bar.c (impl_destroy): Oops, we didn't need to unref all
	of the widgets, just a few.

svn path=/trunk/; revision=11907
2001-08-11 00:19:08 +00:00
78544223ad Removed comment about the need to resolve nicknames properly, because we
2001-08-10  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Removed comment about
	the need to resolve nicknames properly, because we now do that.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * e-filter-bar.h: Set the subitems to NULL in the pre-defined
        ESearchBarItems.

        * e-filter-bar.c (rule_editor_clicked): Set the ESearchBarItem's
        subitems to NULL.
        (build_items): Set the ESearchBarItem's subitems to NULL.
        (e_filter_bar_new): Set the ESearchBarItem's subitems to NULL.

        * e-search-bar.c: Added support for subitems, so that a search
        option can key off of another option menu rather than just an
        entry.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/component/addressbook.c: Set the ESearchBarItem
        subitems explicitly to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/cal-search-bar.c: Where we have ESearchBarItems, set their
        subitems to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * folder-browser.c: Set our ESearchBarItems subitems to NULL.

svn path=/trunk/; revision=11904
2001-08-10 22:36:41 +00:00
0e5939dc90 last_item_separator shouldn't get reset if the item is hidden.
2001-08-10  Christopher James Lahey  <clahey@ximian.com>

	* gal/widgets/e-popup-menu.c (e_popup_menu_create):
	last_item_separator shouldn't get reset if the item is hidden.

svn path=/trunk/; revision=11898
2001-08-10 21:01:27 +00:00
2f81032abc new proto and virtual method
2001-08-10  JP Rosevear  <jpr@ximian.com>

	* gal/widgets/e-canvas-vbox.h: new proto and virtual method

	* gal/widgets/e-canvas-vbox.c (e_canvas_vbox_real_add_item_start):
	adds the the item to the beginning
	(e_canvas_vbox_add_item_start): call the virtual method

2001-08-10  JP Rosevear  <jpr@ximian.com>

	* e-table.c (et_build_groups): add the items to the start or end
	based on where the click to add should be
	(e_table_setup_table): ditto
	(et_real_construct): read additional spec flag

	* e-table.h: new flag

	* e-table-specification.c (etsp_init): init new flag
	(e_table_specification_load_from_node): set click to add end flag
	(e_table_specification_save_to_node): write out flag

	* e-table-specification.h: new flag

svn path=/trunk/; revision=11880
2001-08-10 15:47:18 +00:00
d69a71921a Don't forget to unref stuff here too.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-search-bar.c (impl_destroy): Don't forget to unref stuff here
	too.

	* e-filter-bar.c (destroy): Free all the goodies that we allocate
	at construct time and unref the rule context.
	(class_init): Override the destroy method.

svn path=/trunk/; revision=11871
2001-08-10 05:16:07 +00:00
4a8b09b1bd Fixes bug #6918
2001-08-09  Anna Marie Dirks <anna@ximian.com>

	Fixes bug #6918

	* e-filter-bar.h: Changed the "Save As.." menu item to
	"Add to Saved Searches".

svn path=/trunk/; revision=11850
2001-08-09 23:39:23 +00:00
44f7f1b1ae changed the E_FILTERBAR_RESET label from "Show All" to "Clear" to
2001-08-09  Anna Marie Dirks <anna@ximian.com>
	* e-filter-bar.h : changed the E_FILTERBAR_RESET label from
	"Show All" to "Clear" to alleviate confusion about whether
	"Show All" means that hidden messages are also shown or not.
	(See ximian bug #6743)

svn path=/trunk/; revision=11833
2001-08-09 17:21:39 +00:00
5f4ca361a0 Chain to the destroy handler in the parent class!
2001-08-09  Federico Mena Quintero  <federico@ximian.com>

	* e-calendar-item.c (e_calendar_item_destroy): Chain to the
	destroy handler in the parent class!

	* e-clipped-label.c (e_clipped_label_destroy): Likewise.  Sigh.

	* e-dropdown-button.c (impl_destroy): Likewise.  Double sigh.

svn path=/trunk/; revision=11817
2001-08-09 06:22:12 +00:00
d256cde05d Chain to the destroy handler in the parent class!
2001-08-08  Federico Mena Quintero  <federico@ximian.com>

	* gal/widgets/e-selection-model-array.c (esma_destroy): Chain to
	the destroy handler in the parent class!

	* gal/widgets/e-selection-model.c (esm_destroy): Likewise.  Sigh.

	* gal/widgets/e-categories.c (e_categories_destroy): Likewise.
	And make it static.  Double sigh.

	* gal/widgets/e-categories-master-list-array.c (ecmla_destroy):
	Likewise.  Triple sigh.

	* gal/widgets/e-categories-master-list-dialog-model.c
	(ecmldm_destroy): Likewise.  Quadruple sigh.

svn path=/trunk/; revision=11810
2001-08-09 03:04:15 +00:00
ce3758a1d8 Re-labeled the "Activate" button "Find Now".
2001-08-08  Anna Marie Dirks <anna@ximian.com>
	* e-search-bar.c: Re-labeled the "Activate" button "Find Now".

svn path=/trunk/; revision=11804
2001-08-08 22:52:10 +00:00
164dd845b6 New. New.
* e-bonobo-widget.c: New.
* e-bonobo-widget.h: New.

svn path=/trunk/; revision=11768
2001-08-08 08:18:12 +00:00