Commit Graph

17872 Commits

Author SHA1 Message Date
433afe99ea Reverted unwanted commit
svn path=/trunk/; revision=21168
2003-05-14 11:06:59 +00:00
a1f14d4b05 Updated NEWS
svn path=/trunk/; revision=21167
2003-05-14 11:01:17 +00:00
3a5a985cb4 add some e-text fixes
svn path=/trunk/; revision=21166
2003-05-14 01:01:19 +00:00
6c97a30c5e strlen -> g_utf8_strlen. (e_select_names_text_model_insert): same.
2003-05-13  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_set_separator): strlen ->
	g_utf8_strlen.
	(e_select_names_text_model_insert): same.
	(e_select_names_text_model_insert_length): big change, make this
	work with multibyte utf8.
	(e_select_names_text_model_delete): same.  this could possibly use
	a tighter loop + a memmove, but this works.

	* gui/component/select-names/e-select-names-model.c
	(e_select_names_model_get_textification): make sure our truncation
	to MAX_LENGTH characters uses utf8 characters, not bytes.
	(e_select_names_model_name_pos): track e-text-model change.
	pos/length are now in utf8 character terms, so use g_utf8_strlen
	instead of strlen.
	(e_select_names_model_text_pos): same.

svn path=/trunk/; revision=21165
2003-05-14 00:45:20 +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
9c06fd0d7f fixed memory leak introduced by previous commit.
2003-05-13  Rodrigo Moya <rodrigo@ximian.com>

	* gui/alarm-notify/alarm-queue.c (notify_dialog_cb): fixed memory
	leak introduced by previous commit.

svn path=/trunk/; revision=21162
2003-05-13 22:59:06 +00:00
dcd838f322 add #42780
svn path=/trunk/; revision=21161
2003-05-13 18:55:09 +00:00
8806dd20ba Fixes #41760
2003-05-12  Rodrigo Moya <rodrigo@ximian.com>

	Fixes #41760

	* gui/alarm-notify/alarm-queue.c (create_snooze): don't add a new
	alarm, but update the already existing one.
	(notify_dialog_cb): make sure we don't remove the alarm if we are
	snoozing.

svn path=/trunk/; revision=21160
2003-05-13 18:15:38 +00:00
989f634071 If host->h_name is NULL or an empty string, default back to using the IP
2003-05-12  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/smtp/camel-smtp-transport.c (smtp_helo): If
	host->h_name is NULL or an empty string, default back to using the
	IP address rather than the hostname in the EHLO command.

svn path=/trunk/; revision=21159
2003-05-13 18:10:12 +00:00
a66a0e81e1 more ab foo
svn path=/trunk/; revision=21158
2003-05-13 17:50:45 +00:00
16441223ca rename addressbook_destroy to this, and guard against multiple calls.
2003-05-13  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-table-adapter.c (addressbook_dispose):
	rename addressbook_destroy to this, and guard against multiple
	calls.
	(e_addressbook_table_adapter_class_init): GtkObject -> GObject,
	and destroy -> dispose.
	(e_addressbook_table_adapter_init): GtkObject -> GObject.

svn path=/trunk/; revision=21157
2003-05-13 17:49:19 +00:00
cd1b05ca91 Removed. (make_factory): No need to set up the SIGSEGV redirect handler
* component-factory.c (segv_redirect): Removed.
(make_factory): No need to set up the SIGSEGV redirect handler
here, since it's already done in the shell now, and it's in-proc.

* folder-browser-ui.c (folder_browser_ui_rm_all): Only do the
bonobo_ui_component() stuff if the component does have a
container.

svn path=/trunk/; revision=21156
2003-05-13 16:12:10 +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
6851cee05c Disable debugging.
* providers/imap/camel-imap-folder.c (d): Disable debugging.

* providers/imap/camel-imap-command.c (d): Disable debugging.

* providers/imap/camel-imap-search.c (d): Disable debugging.

svn path=/trunk/; revision=21153
2003-05-13 16:03:19 +00:00
556e655e7f Updated Norwegian translation.
2003-05-12  Kjartan Maraas  <kmaraas@gnome.org>

	* no.po: Updated Norwegian translation.

svn path=/trunk/; revision=21152
2003-05-12 20:09:20 +00:00
bd75c866f5 terminate g_build_filename with NULL.
2003-05-12  Sean Gao  <sean.gao@sun.com>

	* gui/contact-list-editor/e-contact-list-editor.c
	(e_contact_list_editor_init): terminate g_build_filename with
	NULL.

svn path=/trunk/; revision=21151
2003-05-12 08:54:42 +00:00
2322e0ef8b Convert some po to UTF-8
svn path=/trunk/; revision=21150
2003-05-11 22:58:43 +00:00
054e53a93a Remove non-existant file(s).
2003-05-11  Abel Cheung  <maddog@linux.org.hk>

	* po/POTFILES.skip: Remove non-existant file(s).

svn path=/trunk/; revision=21149
2003-05-11 22:43:50 +00:00
b231d585c4 add some more addressbook news.
svn path=/trunk/; revision=21147
2003-05-11 22:01:44 +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
acced3219b [ fixes bug #42048 ] button => response. (e_addressbook_view_print):
2003-05-11  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #42048 ]
	* gui/widgets/e-addressbook-view.c (e_contact_print_button):
	button => response.
	(e_addressbook_view_print): connect to "response", not "clicked".

svn path=/trunk/; revision=21145
2003-05-11 21:51:45 +00:00
5b3149c169 [ fixes bug #41245 ] fix spacing/border widths as per HIG.
2003-05-11  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #41245 ]
	* gui/component/select-names/select-names.glade: fix
	spacing/border widths as per HIG.

	* gui/component/select-names/e-select-names.c
	(e_select_names_init): set the border width/spacing on widgets we
	create here.

svn path=/trunk/; revision=21144
2003-05-11 20:48:15 +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
cc7acff2e2 Fix ChangeLog for yesterday's commit.
svn path=/trunk/; revision=21141
2003-05-09 17:11:08 +00:00
2b99ba904b Fix date in ChangeLog.
svn path=/trunk/; revision=21140
2003-05-09 16:34:22 +00:00
bcbf0b3fb2 *** empty log message ***
svn path=/trunk/; revision=21139
2003-05-09 16:34:04 +00:00
f6038b72aa Use glib macro to case from pointer to int.
2003-05-09  Jeremy Katz  <katzj@redhat.com>

	* printing/e-contact-print.c (e_contact_print_response): Use glib
	macro to case from pointer to int.

	* printing/e-contact-print-envelope.c: Add missing #include.

	* gui/component/select-names/e-select-names-completion.c
	(e_select_names_completion_start_query): Use
	E_SELECT_NAMES_COMPLETION to avoid warning

svn path=/trunk/; revision=21138
2003-05-09 15:02:46 +00:00
7b20b772d2 Add a #include to fix a warning.
2003-05-09  Jeremy Katz  <katzj@redhat.com>

	* main.c: Add a #include to fix a warning.

	* e-shell-offline-handler.c (update_dialog_clist): Use a list
	store instead of a tree model for the store.

svn path=/trunk/; revision=21136
2003-05-09 15:00:46 +00:00
56e678a748 [#42342] New function to update the Send/Receive menu and toolbar items
[#42342]
* e-shell-view.c (update_send_receive_sensitivity): New function
to update the Send/Receive menu and toolbar items according to the
current line status.
(e_shell_view_construct): Call it here to set up the initial
state.
(shell_line_status_changed_cb): Use it here as well.

svn path=/trunk/; revision=21135
2003-05-08 21:54:58 +00:00
b352ae1f19 [#36956] Remove the version number from the window title.
[#36956]
* e-shell-view.c (update_for_current_uri): Remove the version
number from the window title.

[#42518]
* e-shell-view.c (handle_current_folder_removed): Casefold the
Inbox name only once, instead of once per iteration.  Removed the
spurious slash that was being passed in the path in the Inbox case
and prevented it from working.  Added missing slash in the path
for the storage case.  Casefold the path including the slash,
since we compare against a string that does include the slash.
(storage_set_removed_folder_callback): Remove the notebook page
before calling handle_current_folder_removed(), instead of after;
otherwise, the notebook page number we have might not be valid
anymore.

* e-shell-folder-creation-dialog.c (setup_dialog): Set the default
response for the dialog to GTK_RESPONSE_OK.

svn path=/trunk/; revision=21134
2003-05-08 19:36:47 +00:00
38a69e37f2 (request_password): Make sure password_dialog is
NULLified when the dialog is destroyed in any case, using
g_object_add_weak_pointer().  Prevents a crash that could happen
if the shell would quit with the password dialog still up.

svn path=/trunk/; revision=21133
2003-05-08 19:04:38 +00:00
47a4b74f07 Make sure that we haven't been destroyed before we start writing to the
2003-05-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (mail_display_render): Make sure that we haven't
	been destroyed before we start writing to the html engine. Fixes
	bug #42333.

svn path=/trunk/; revision=21132
2003-05-08 17:01:55 +00:00
bbe28c9d76 use E_I18N_DOMAIN
2003-05-08  Radek Doulik  <rodo@ximian.com>

	* gal/util/e-util.c (e_gettext): use E_I18N_DOMAIN

	* gal/util/e-i18n.h: use e_gettext as we need our text domain to
	be binded

svn path=/trunk/; revision=21131
2003-05-08 14:58:57 +00:00
d6092b270f Fixes crash in #42212
2003-05-07  Rodrigo Moya <rodrigo@ximian.com>

	Fixes crash in #42212

	* e-url.c (e_uri_new): check for 'uri_string' being NULL.

svn path=/trunk/; revision=21130
2003-05-08 14:18:45 +00:00
692862c505 trash e_utf8_gtk function (e_search_bar_get_text): ditto
2003-05-07  JP Rosevear  <jpr@ximian.com>

	* e-search-bar.c (e_search_bar_set_text): trash e_utf8_gtk
function
	(e_search_bar_get_text): ditto

svn path=/trunk/; revision=21129
2003-05-08 14:02:52 +00:00
bce1283eb5 fix button conversion problem
2003-05-07  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/task-page.glade: fix button conversion problem

	* gui/dialogs/task-details-page.c
	(task_details_page_fill_widgets): only free the percent if its
	non-null

svn path=/trunk/; revision=21128
2003-05-08 14:02:35 +00:00
7c5e55ba41 ** See bug #42456
2003-05-07  Not Zed  <NotZed@Ximian.com>

        ** See bug #42456

        * mail-composer-prefs.c (spell_language_button_press): set the
        enable/disable button to the right text when we toggle a column.
        Added a fixme about the weird code in the whole routine.

svn path=/trunk/; revision=21127
2003-05-08 02:43:10 +00:00
614aa5e4a5 Updated Portuguese translation.
2003-05-08  Duarte Loreto <happyguy_pt@hotmail.com>

        * pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=21126
2003-05-08 00:23:55 +00:00
09e2470be4 Correct default for list.
2003-05-07  Jeremy Katz  <katzj@redhat.com>

	* evolution-mail.schemas
	(/schemas/apps/evolution/mail/display/mime_types):  Correct
	default for list.

svn path=/trunk/; revision=21125
2003-05-07 23:40:43 +00:00
4ff45b4127 (e_shell_command_add_to_shortcut_bar):
Do use the supplied folder_path to determine the unread count, if
not NULL.  [#42465]

svn path=/trunk/; revision=21124
2003-05-07 19:38:18 +00:00
3e8897cfb3 don't pass NO_SEPARATOR flag as per gtkmessagedialog warning
2003-05-07  JP Rosevear  <jpr@ximian.com>

	* e-shell-folder-commands.c (delete_dialog): don't pass
	NO_SEPARATOR flag as per gtkmessagedialog warning

svn path=/trunk/; revision=21123
2003-05-07 17:27:25 +00:00
5257f9dc84 Fixes crash in #41631
2003-05-07  Rodrigo Moya <rodrigo@ximian.com>

	Fixes crash in #41631

	* src/libicalvcal/icalvcal.c (icalvcal_traverse_objects): changed to
	return an error code and to return immediately if one of the recurrent
	calls return an error.
	(icalvcal_convert_with_defaults): if icalvcal_traverse_objects return
	an error, return NULL.

svn path=/trunk/; revision=21122
2003-05-07 16:49:04 +00:00
b01b792f0f added missing assignment.
2003-05-07  Rodrigo Moya <rodrigo@ximian.com>

	* cal-client/cal-client.c (cal_client_discard_alarm): added missing
	assignment.

svn path=/trunk/; revision=21121
2003-05-07 13:42:01 +00:00
1301f0e36e Updated French translation.
2003-05-07 Christophe Fergeau <teuf@users.sourceforge.net>

	* fr.po: Updated French translation.

svn path=/trunk/; revision=21120
2003-05-07 11:55:40 +00:00
ba201c0f99 ** See bug #42400
2003-05-06  Not Zed  <NotZed@Ximian.com>

        ** See bug #42400

        * mail-tools.c (meta_data_key): protect against getting an
        unparsable uri.

svn path=/trunk/; revision=21119
2003-05-07 00:53:40 +00:00
f9991e3982 move 41910 to the version where it's really fixed
svn path=/trunk/; revision=21118
2003-05-06 19:21:14 +00:00
bc9dd9dde3 i2003-05-06 Chris Toshok <toshok@ximian.com>
[ really commit this, fixes bug #41910 ]
	* gui/contact-list-editor/e-contact-list-model.c
	(e_contact_list_model_remove_row): change from model_changed to
	row_deleted here.  model_changed causes the table to free its
	ETableSelection, which is what we iterate over when deleting
	contacts.
	(e_contact_list_model_add_destination): no need to be calling
	model_changed here either.

svn path=/trunk/; revision=21117
2003-05-06 19:20:31 +00:00
c7431a19ae add missing model_changed (etta_proxy_node_inserted): add missing
2003-05-06  Mike Kestner  <mkestner@ximian.com>

	* e-tree-table-adapter.c (insert_node): add missing model_changed
	(etta_proxy_node_inserted): add missing model_changed
	(etta_proxy_node_removed): add missing model_changed

svn path=/trunk/; revision=21116
2003-05-06 18:19:15 +00:00