/* eggtreemultidnd.c * Copyright (C) 2001 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "eggtreemultidnd.h" #define EGG_TREE_MULTI_DND_STRING "EggTreeMultiDndString" typedef struct { guint pressed_button; gint x; gint y; guint motion_notify_handler; guint button_release_handler; guint drag_data_get_handler; GSList *event_list; } EggTreeMultiDndData; /* CUT-N-PASTE from gtktreeview.c */ typedef struct _TreeViewDragInfo TreeViewDragInfo; struct _TreeViewDragInfo { GdkModifierType start_button_mask; GtkTargetList *source_target_list; GdkDragAction source_actions; GtkTargetList *dest_target_list; guint source_set : 1; guint dest_set : 1; }; GType egg_tree_multi_drag_source_get_type (void) { static GType our_type = 0; if (!our_type) { static const GTypeInfo our_info = { sizeof (EggTreeMultiDragSourceIface), /* class_size */ NULL, /* base_init */ NULL, /* base_finalize */ NULL, NULL, /* class_finalize */ NULL, /* class_data */ 0, 0, /* n_preallocs */ NULL }; our_type = g_type_register_static (G_TYPE_INTERFACE, "EggTreeMultiDragSource", &our_info, 0); } return our_type; } /** * egg_tree_multi_drag_source_row_draggable: * @drag_source: a #EggTreeMultiDragSource * @path: row on which user is initiating a drag * * Asks the #EggTreeMultiDragSource whether a particular row can be used as * the source of a DND operation. If the source doesn't implement * this interface, the row is assumed draggable. * * Return value: %TRUE if the row can be dragged **/ gboolean egg_tree_multi_drag_source_row_draggable (EggTreeMultiDragSource *drag_source, GList *path_list) { EggTreeMultiDragSourceIface *iface = EGG_TREE_MULTI_DRAG_SOURCE_GET_IFACE (drag_source); g_return_val_if_fail (EGG_IS_TREE_MULTI_DRAG_SOURCE (drag_source), FALSE); g_return_val_if_fail (iface->row_draggable != NULL, FALSE); g_return_val_if_fail (path_list != NULL, FALSE); if (iface->row_draggable) return (* iface->row_draggable) (drag_source, path_list); else return TRUE; } /** * egg_tree_multi_drag_source_drag_data_delete: * @drag_source: a #EggTreeMultiDragSource * @path: row that was being dragged * * Asks the #EggTreeMultiDragSource to delete the row at @path, because * it was moved somewhere else via drag-and-drop. Returns %FALSE * if the deletion fails because @path no longer exists, or for * some model-specific reason. Should robustly handle a @path no * longer found in the model! * * Return value: %TRUE if the row was successfully deleted **/ gboolean egg_tree_multi_drag_source_drag_data_delete (EggTreeMultiDragSource *drag_source, GList *path_list) { EggTreeMultiDragSourceIface *iface = EGG_TREE_MULTI_DRAG_SOURCE_GET_IFACE (drag_source); g_return_val_if_fail (EGG_IS_TREE_MULTI_DRAG_SOURCE (drag_source), FALSE); g_return_val_if_fail (iface->drag_data_delete != NULL, FALSE); g_return_val_if_fail (path_list != NULL, FALSE); return (* iface->drag_data_delete) (drag_source, path_list); } /** * egg_tree_multi_drag_source_drag_data_get: * @drag_source: a #EggTreeMultiDragSource * @path: row that was dragged * @selection_data: a #EggSelectionData to fill with data from the dragged row * * Asks the #EggTreeMultiDragSource to fill in @selection_data with a * representation of the row at @path. @selection_data->target gives * the required type of the data. Should robustly handle a @path no * longer found in the model! * * Return value: %TRUE if data of the required type was provided **/ gboolean egg_tree_multi_drag_source_drag_data_get (EggTreeMultiDragSource *drag_source, GList *path_list, GtkSelectionData *selection_data) { EggTreeMultiDragSourceIface *iface = EGG_TREE_MULTI_DRAG_SOURCE_GET_IFACE (drag_source); g_return_val_if_fail (EGG_IS_TREE_MULTI_DRAG_SOURCE (drag_source), FALSE); g_return_val_if_fail (iface->drag_data_get != NULL, FALSE); g_return_val_if_fail (path_list != NULL, FALSE); g_return_val_if_fail (selection_data != NULL, FALSE); return (* iface->drag_data_get) (drag_source, path_list, selection_data); } static void stop_drag_check (GtkWidget *widget) { EggTreeMultiDndData *priv_data; GSList *l; priv_data = g_object_get_data (G_OBJECT (widget), EGG_TREE_MULTI_DND_STRING); for (l = priv_data->event_list; l != NULL; l = l->next) gdk_event_free (l->data); g_slist_free (priv_data->event_list); priv_data->event_list = NULL; g_signal_handler_disconnect (widget, priv_data->motion_notify_handler); g_signal_handler_disconnect (widget, priv_data->button_release_handler); } static gboolean egg_tree_multi_drag_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer data) { EggTreeMultiDndData *priv_data; GSList *l; priv_data = g_object_get_data (G_OBJECT (widget), EGG_TREE_MULTI_DND_STRING); for (l = priv_data->event_list; l != NULL; l = l->next) gtk_propagate_event (widget, l->data); stop_drag_check (widget); return FALSE; } static void selection_foreach (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { GList **list_ptr; list_ptr = (GList **) data; *list_ptr = g_list_prepend (*list_ptr, gtk_tree_row_reference_new (model, path)); } static void path_list_free (GList *path_list) { g_list_foreach (path_list, (GFunc) gtk_tree_row_reference_free, NULL); g_list_free (path_list); } static void set_context_data (GdkDragContext *context, GList *path_list) { g_object_set_data_full (G_OBJECT (context), "egg-tree-view-multi-source-row", path_list, (GDestroyNotify) path_list_free); } static GList * get_context_data (GdkDragContext *context) { return g_object_get_data (G_OBJECT (context), "egg-tree-view-multi-source-row"); } /* CUT-N-PASTE from gtktreeview.c */ static TreeViewDragInfo* get_info (GtkTreeView *tree_view) { return g_object_get_data (G_OBJECT (tree_view), "gtk-tree-view-drag-info"); } static void egg_tree_multi_drag_drag_data_get (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *selection_data, guint info, guint time) { GtkTreeView *tree_view; GtkTreeModel *model; TreeViewDragInfo *di; GList *path_list; tree_view = GTK_TREE_VIEW (widget); model = gtk_tree_view_get_model (tree_view); if (model == NULL) return; di = get_info (GTK_TREE_VIEW (widget)); if (di == NULL) return; path_list = get_context_data (context); if (path_list == NULL) return; /* We can implement the GTK_TREE_MODEL_ROW target generically for * any model; for DragSource models there are some other targets * we also support. */ if (EGG_IS_TREE_MULTI_DRAG_SOURCE (model)) { egg_tree_multi_drag_source_drag_data_get (EGG_TREE_MULTI_DRAG_SOURCE (model), path_list, selection_data); } } static gboolean egg_tree_multi_drag_motion_event (GtkWidget *widget, GdkEventMotion *event, gpointer data) { EggTreeMultiDndData *priv_data; priv_data = g_object_get_data (G_OBJECT (widget), EGG_TREE_MULTI_DND_STRING); if (gtk_drag_check_threshold (widget, priv_data->x, priv_data->y, event->x, event->y)) { GList *path_list = NULL; GtkTreeSelection *selection; GtkTreeModel *model; GdkDragContext *context; TreeViewDragInfo *di; di = get_info (GTK_TREE_VIEW (widget)); if (di == NULL) return FALSE; selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget)); stop_drag_check (widget); gtk_tree_selection_selected_foreach (selection, selection_foreach, &path_list); path_list = g_list_reverse (path_list); model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget)); if (egg_tree_multi_drag_source_row_draggable (EGG_TREE_MULTI_DRAG_SOURCE (model), path_list)) { context = gtk_drag_begin (widget, di->source_target_list, di->source_actions, priv_data->pressed_button, (GdkEvent*)event); set_context_data (context, path_list); gtk_drag_set_icon_default (context); } else { path_list_free (path_list); } } return TRUE; } static gboolean egg_tree_multi_drag_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer data) { GtkTreeView *tree_view; GtkTreePath *path = NULL; GtkTreeViewColumn *column = NULL; gint cell_x, cell_y; GtkTreeSelection *selection; EggTreeMultiDndData *priv_data; tree_view = GTK_TREE_VIEW (widget); priv_data = g_object_get_data (G_OBJECT (tree_view), EGG_TREE_MULTI_DND_STRING); if (priv_data == NULL) { priv_data = g_new0 (EggTreeMultiDndData, 1); g_object_set_data (G_OBJECT (tree_view), EGG_TREE_MULTI_DND_STRING, priv_data); } if (g_slist_find (priv_data->event_list, event)) return FALSE; if (priv_data->event_list) { /* save the event to be propagated in order */ priv_data->event_list = g_slist_append (priv_data->event_list, gdk_event_copy ((GdkEvent*)event)); return TRUE; } if (event->type == GDK_2BUTTON_PRESS) return FALSE; gtk_tree_view_get_path_at_pos (tree_view, event->x, event->y, &path, &column, &cell_x, &cell_y); selection = gtk_tree_view_get_selection (tree_view); if (path && gtk_tree_selection_path_is_selected (selection, path)) { priv_data->pressed_button = event->button; priv_data->x = event->x; priv_data->y = event->y; priv_data->event_list = g_slist_append (priv_data->event_list, gdk_event_copy ((GdkEvent*)event)); priv_data->motion_notify_handler = g_signal_connect (G_OBJECT (tree_view), "motion_notify_event", G_CALLBACK (egg_tree_multi_drag_motion_event), NULL); priv_data->button_release_handler = g_signal_connect (G_OBJECT (tree_view), "button_release_event", G_CALLBACK (egg_tree_multi_drag_button_release_event), NULL); if (priv_data->drag_data_get_handler == 0) { priv_data->drag_data_get_handler = g_signal_connect (G_OBJECT (tree_view), "drag_data_get", G_CALLBACK (egg_tree_multi_drag_drag_data_get), NULL); } gtk_tree_path_free (path); return TRUE; } if (path) { gtk_tree_path_free (path); } return FALSE; } void egg_tree_multi_drag_add_drag_support (GtkTreeView *tree_view) { g_return_if_fail (GTK_IS_TREE_VIEW (tree_view)); g_signal_connect (G_OBJECT (tree_view), "button_press_event", G_CALLBACK (egg_tree_multi_drag_button_press_event), NULL); } | | | | | | | | | | | | | | | 2005-08-24 Praveen Kumar <kpraveen@novell.com> * plugins/exchange-operations/exchange-account-setup.c: * plugins/exchange-operations/exchange-calendar.c: * plugins/exchange-operations/exchange-config-listener.c: * plugins/exchange-operations/exchange-contacts.c: * plugins/exchange-operations/exchange-delegates-user.c: * plugins/exchange-operations/exchange-folder-size-display.c: * plugins/exchange-operations/exchange-folder.c: * plugins/exchange-operations/exchange-operations.c: Removed the warning that are generated when compiled with GCC 4. * plugins/exchange-operations/exchange-calendar.c: Fixed a build break due to the modification of the 'source_type' field in the ECalConfigTargetSource class. svn path=/trunk/; revision=30237 * Translation updated by Ivar Smolin.Priit Laes2005-08-242-344/+356 | | | | | | | | 2005-08-24 Priit Laes <plaes@cvs.gnome.org> * et.po: Translation updated by Ivar Smolin. svn path=/trunk/; revision=30236 * Dont call update. Just set the width on the bar.Srinivasa Ragavan2005-08-242-4/+7 | | | | | | | | | 2005-08-24 Srinivasa Ragavan <sragavan@novell.com> * em-format-html-display.c (efhd_bar_resize): Dont call update. Just set the width on the bar. svn path=/trunk/; revision=30235 * Fix for bug #314136. Shows filename in the remote download in composer.Srinivasa Ragavan2005-08-244-7/+27 | | | | | | | | | | | | | | | | | | 2005-08-24 Srinivasa Ragavan <sragavan@novell.com> * e-attachment.c (e_attachment_build_remote_file): Fix for bug #314136. Shows filename in the remote download in composer. * e-attachment-bar.c (update): Better space management. Kills one extra row that happens some times. (e_attachment_bar_set_width): Just adjusts the size instead of rebuild of the bar, which is the cause for the freeze. Fixes the bug #313799. Remove the function e_attachment_bar_refresh * e-attachment-bar.h: Remove the function e_attachment_bar_refresh svn path=/trunk/; revision=30234 * Show the bar depending on the number of attachments.Srinivasa Ragavan2005-08-243-5/+19 | | | | | | | | | | | | | | 2005-08-22 Srinivasa Ragavan <sragavan@novell.com> * e-msg-composer.c (drop_action): Show the bar depending on the number of attachments. * e-msg-composer-select-file.c (select_attach_response): Show the bar depending on the number of attachments. ** Fixes the bug #313083 svn path=/trunk/; revision=30233 * return the right type. (proxy_soap_login): fix pointer cast.Not Zed2005-08-248-68/+98 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * proxy-login.c (proxy_get_password): return the right type. (proxy_soap_login): fix pointer cast. (proxy_login_add_new_store): fix pointer cast. (proxy_login_setup_tree_view): fix callback cast. (org_gnome_proxy_account_login): fix prototype to match use. * junk-settings.c (user_selected): fix calling. (junk_settings_construct): more stupid casts. * junk-mail-settings.c (junk_mail_settings): casts. * install-shared.c (install_folder_response): constify item_id. (install_folder_response): remove unused. (org_gnome_popup_wizard): fixed numerous problems with this, over-copying data around, not referencing information properly, freeing potentially unset variables, etc etc. (accept_free): add a free function. * share-folder.c (notification_clicked): fix a multitude of busted casts. (user_selected): fix broken calling conventions, busted style. (share_folder_construct): fix more busted/missing casts. * share-folder-common.c: add missing header. svn path=/trunk/; revision=30232 * def9ine before defining.Not Zed2005-08-243-3/+10 | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * groupwise-account-setup.c (org_gnome_groupwise_account_setup): def9ine before defining. * camel-gw-listener.c (account_added): fix warning. svn path=/trunk/; revision=30231 * Remove the special case for win32, its a bug on all platforms, silly.Not Zed2005-08-243-11/+15 | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * Makefile.am: Remove the special case for win32, its a bug on all platforms, silly. * mail-account-disable.c (mail_account_disable): make signature match usage. svn path=/trunk/; revision=30230 * use the right type for attendees.Not Zed2005-08-242-1/+5 | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * mail-to-task.c (add_attendee_cb): use the right type for attendees. svn path=/trunk/; revision=30229 * Add missing headers (org_gnome_print_message): define before defining,Not Zed2005-08-242-2/+14 | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * print-message.c: Add missing headers (org_gnome_print_message): define before defining, remove c99isms. (org_gnome_print_preview): define before defining. svn path=/trunk/; revision=30228 * include missing header.Not Zed2005-08-242-0/+5 | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * ical-format.c: include missing header. svn path=/trunk/; revision=30227 * pre-define.Not Zed2005-08-242-1/+6 | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * em-junk-filter.c (em_junk_sa_report_non_junk): pre-define. svn path=/trunk/; revision=30226 * add missing headers.Not Zed2005-08-242-0/+6 | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * itip-view.c: add missing headers. svn path=/trunk/; revision=30225 * forward declare exported func.Not Zed2005-08-242-0/+5 | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * default-source.c: forward declare exported func. svn path=/trunk/; revision=30224 * forward-define e_plugin_lib_enable, remove some unecessary headers.Not Zed2005-08-242-8/+9 | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * new-mail-notify.c: forward-define e_plugin_lib_enable, remove some unecessary headers. (send_dbus_message): remove spurious check for bus==NULL. svn path=/trunk/; revision=30223 * fix relative_uri type.Not Zed2005-08-242-1/+5 | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * calendar-file.c (e_calendar_file_dummy): fix relative_uri type. svn path=/trunk/; revision=30222 * fix relative_uri type, don't include every header in the world we dont'Not Zed2005-08-242-12/+9 | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * addressbook-file.c (e_book_file_dummy): fix relative_uri type, don't include every header in the world we dont' need. And it sure has hell seems to do something for a 'dummy' function. svn path=/trunk/; revision=30221 * fix some missing casts.Not Zed2005-08-242-4/+8 | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * e-table-config.c (setup_fields): fix some missing casts. svn path=/trunk/; revision=30220 * cast warning away.Not Zed2005-08-243-3/+8 | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * e-send-options.c (get_widgets): cast warning away. * e-calendar-item.c (e_calendar_item_realize): remove some unused vars. svn path=/trunk/; revision=30219 * only define skip_content: if it is used. (menu_file_add_attachment_cb):Not Zed2005-08-243-41/+51 | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (build_message): only define skip_content: if it is used. (menu_file_add_attachment_cb): fixed the warning. Boy, what on earth is this thing doing! (add_to_bar): fix signature to match code. (emcab_add): more warning fixes for bizarre functions. (emcab_popup_position): more casting crap * e-msg-composer-hdrs.c (addressbook_dialog_response): Remove unused. (account_can_send): make this static, and define before first use. : include missing e-name-selector-entry header. (create_headers): fix casts/style (e_msg_composer_hdrs_set_to, e_msg_composer_hdrs_set_cc) (e_msg_composer_hdrs_set_bcc, e_msg_composer_hdrs_get_to) (e_msg_composer_hdrs_get_cc, e_msg_composer_hdrs_get_bcc): remove unused str. lazy addressbook hackers! svn path=/trunk/; revision=30218 * source-type is an enum not a pointer!Not Zed2005-08-2421-46/+110 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * gui/e-cal-config.h: source-type is an enum not a pointer! * gui/tasks-component.c (selector_tree_drag_data_received): constify uid. * gui/itip-utils.c (comp_sentby): use the right list type for attendees. * gui/gnome-cal.c (config_categories_changed_cb): fix cast. (setup_widgets): fix casts. * gui/e-tasks.c: add missing e-categories.h include. (config_categories_changed_cb): fix cast. * gui/e-week-view.c (e_week_view_realize): remove unused. * gui/e-select-names-editable.c (e_select_names_editable_get_emails): remve unused. * gui/e-meeting-time-sel.c (e_meeting_time_selector_style_set): remove/comment unused. * gui/e-meeting-store.c (freebusy_async): g* strikes again, use the right lock/unlock function for the g-spastic-mutex. (process_callbacks_main_thread): fix signature to match usage. (refresh_queue_add): cast off warning * gui/e-itip-control.c (cleanup_ecal): fix signature to match use * gui/e-day-view.c (process_component): remove unused vars. (e_day_view_realize): more. (e_day_view_on_event_double_click): cast (e_day_view_update_calendar_selection_time): define out unused * gui/e-calendar-table.c (e_calendar_table_init): more a11y related casts. * gui/e-calendar-view.c (on_edit_appointment): proper boolean conversion of a pointer. (transfer_selected_items): cast (on_unrecur_appointment): remove unused prop (e_calendar_view_open_event): proper boolean conversion of pointer. * gui/e-cal-popup.c (needs_to_accept): remove unused. * gui/e-cal-model.c (set_instance_times): remove unused. :include missing calendar-config. * gui/dialogs/meeting-page.c (clear_widgets): yawn, another gtklabel wawrning. (meeting_page_fill_component): constify attendees. * gui/dialogs/e-send-options-utils.c: remove unused global sod, add missing string.h * gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct): remove unused. * gui/dialogs/comp-editor.c (response_cb): wtf, this can't use em_utils!!! #if 0 it out and add a build warning. (cab_popup_position): pointer cast. (set_attachment_list): remove unused. * gui/dialogs/calendar-setup.c (eccp_general_offline): change very incorrect N_ macro to _. (CalendarSourceDialog): Umm, source_type is an enum, not a pointer. (eccp_get_source_color): remove unused. svn path=/trunk/; revision=30217 * de-constify uri, and fix its creation logic. (load_source_cb): cast forNot Zed2005-08-2410-25/+64 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * gui/component/addressbook.c (addressbook_authenticate): de-constify uri, and fix its creation logic. (load_source_cb): cast for warning. * gui/widgets/e-addressbook-view.c: more missing a11y include. * gui/widgets/e-minicard-view.c: another missing a11y include. * gui/widgets/e-minicard.c: include missing a11y include. (e_minicard_activate_editor): fix cast. * gui/widgets/eab-popup-control.c (eab_popup_control_display_contact): remove unused. * gui/widgets/eab-gui-util.c (eab_contact_save): fix conditional build. (eab_send_to_contact_and_email_num_list): fix boolean conversion. * gui/widgets/eab-contact-display.c (eab_contact_display_init): cast. * gui/contact-list-editor/e-contact-list-editor.c (fill_in_info): constify file_as. * gui/contact-editor/e-contact-editor.c (init_im_record_location): fix warnings for conditional building. (fill_in_simple_field): do proper boolean conversion. (extract_simple_field): do proper boolean conversion. (response): constify categories, and dont bother initialising it. (image_clicked): remove warnings for conditional build. (e_contact_editor_is_valid): constify text. (e_contact_editor_create_web): cast. svn path=/trunk/; revision=30216 * cast warning, good ol win32 patches. (e_strftime): fix some clahey-code toNot Zed2005-08-247-13/+35 | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * e-util.c (e_mkdir_hier): cast warning, good ol win32 patches. (e_strftime): fix some clahey-code to use the right variable and not try to modify const strings by stealth. * eggtrayicon.h: add missing prototype. * e-gui-utils.c (e_create_image_widget): remove unused pixbuf. * e-dialog-utils.c (dialog_realized): fix cast. (e_dialog_set_transient_for_xid): same. (e_file_dialog_save): fix cases for build. * e-categories-config.c (e_categories_config_open_dialog_for_entry): cast & use right type for text. (icons_table[]): remove unused. * e-account-list.c (e_account_list_remove_account_proxies): cast to fix warning. svn path=/trunk/; revision=30215 * cast warning away.Not Zed2005-08-247-24/+49 | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * mail-tools.c (mail_tool_uri_to_folder): cast warning away. * mail-folder-cache.c: include missing header for e_filename_make_safe. * em-junk-hook.h: Fix some header includes, fix the include guard to use the right name. (EMJunk): Ugh, this is an object, properly derive from it! How did this work? * em-junk-hook.c (em_junk_check_junk): fix bool conversion. * em-format-html-display.c (efhd_bar_popup_position): another wraning, why this crap isn't in the attachment bar like i said it should be, i'll never know. (efhd_xpkcs7mime_viewcert_foad): only define if used. * em-account-editor.c (emae_defaults_page): attempt to fix parentheses (emae_security_page): fix conditional compilation warnings. svn path=/trunk/; revision=30214 * include missing e-error.hNot Zed2005-08-243-1/+9 | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * e-shell-window-commands.c: include missing e-error.h * e-component-registry.c (query_components): cast away a seemingly spurious warning. svn path=/trunk/; revision=30213 * cast.Not Zed2005-08-242-1/+5 | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * filter-rule.c (get_widget): cast. svn path=/trunk/; revision=30212 * Hungarian translation updated.Gabor Kelemen2005-08-242-341/+349 | | | | | | | | 2005-08-23 Gabor Kelemen <kelemeng@gnome.hu> * hu.po: Hungarian translation updated. svn path=/trunk/; revision=30211 * Updtaed TranslationsAnkitkumar Rameshchandra Patel2005-08-232-513/+523 | | | | svn path=/trunk/; revision=30210 * Updated Ukrainian translation.Maxim Dziumanenko2005-08-232-2305/+2914 | | | | | | | | 2005-08-23 Maxim Dziumanenko <mvd@mylinux.ua> * Updated Ukrainian translation. svn path=/trunk/; revision=30209 * Updated Russian translationNickolay V. Shmyrev2005-08-232-2539/+1125 | | | | svn path=/trunk/; revision=30208 * Updated Indonesian translationMohammad DAMT2005-08-232-742/+491 | | | | | | | | 2005-08-22 Mohammad DAMT <mdamt@gnome.org> * id.po: Updated Indonesian translation svn path=/trunk/; revision=30207 * correct inadvertent delete in the previous commitHarish Krishnaswamy2005-08-231-22/+42 | | | | svn path=/trunk/; revision=30205 * e-plugin.c (ep_set_enabled): Fix compiler warning on early bailoutDavid Malcolm2005-08-232-1/+6 | | | | svn path=/trunk/; revision=30204 * Release 2.3.8Harish Krishnaswamy2005-08-233-39/+121 | | | | | | | | 2005-08-23 Harish Krishnaswamy <kharish@novell.com> * configure.in: Release 2.3.8 svn path=/trunk/; revision=30203 * Updated Spanish translation.Francisco Javier F. Serrador2005-08-232-45/+53 | | | | | | | | 2005-08-22 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * es.po: Updated Spanish translation. svn path=/trunk/; revision=30202 * Translation updated by Tino Meinen.Vincent van Adrighem2005-08-232-32/+45 | | | | | | | | 2005-08-22 Vincent van Adrighem <adrighem@gnome.org> * nl.po: Translation updated by Tino Meinen. svn path=/trunk/; revision=30201 * Updated Finnish translationIlkka Tuohela2005-08-222-366/+375 | | | | svn path=/trunk/; revision=30200 * Use exchange_operations_get_exchange_account. Fetch the password andSarfraaz Ahmed2005-08-225-16/+61 | | | | | | | | | | | | | | 2005-08-22 Sarfraaz Ahmed <asarfraaz@novell.com> * exchange-account-setup.c (btn_fsize_clicked) (set_oof_info) : Use exchange_operations_get_exchange_account. * exchange-config-listener.c (exchange_config_listener_authenticate) : Fetch the password and connect. Added new * exchange-config-listener.h : Similar. * exchange-operations.c (exchange_operations_get_exchange_account) : Try authenticating if account is not found. svn path=/trunk/; revision=30199 * ** see previous commit changed variable name to groupwise_shared_foldervivek jain2005-08-223-3/+9 | | | | | | | | | | 2005-08-22 vivek jain <jvivek@novell.com> ** see previous commit changed variable name to groupwise_shared_folder svn path=/trunk/; revision=30198 * Using e_contact_get() for E_CONTACT_IS_LIST. See #314152.Sushma Rai2005-08-222-4/+15 | | | | | | Patch submitted by "ross@burtonini.com (Ross Burton)". svn path=/trunk/; revision=30197 * Updated Thai translation.Theppitak Karoonboonyanan2005-08-222-371/+379 | | | | | | | | 2005-08-22 Theppitak Karoonboonyanan <thep@linux.thai.net> * th.po: Updated Thai translation. svn path=/trunk/; revision=30196 * Commiting Devashish patch for #241219. 2005-08-19 Devashish SharmaSrinivasa Ragavan2005-08-222-10/+25 | | | | | | | | | 2005-08-22 Srinivasa Ragavan <sragavan@novell.com> * Commiting Devashish patch for #241219. 2005-08-19 Devashish Sharma <sdevashish@novell.com> svn path=/trunk/; revision=30195 * Fixes the crash while exporting contacts in csv format. Fixes #269870Sushma Rai2005-08-222-7/+20 | | | | svn path=/trunk/; revision=30194 * Fixed strings encodingNickolay V. Shmyrev2005-08-221-1/+1 | | | | svn path=/trunk/; revision=30193 * : (org_gnome_shared_folder_factory) disable shared-folder functionaliltyVivek Jain2005-08-223-1/+22 | | | | | | | | | | | | | 2005-08-22 Vivek Jain <jvivek@novell.com> * shared-folder-common.c: (org_gnome_create_option) : (org_gnome_shared_folder_factory) * install-shared.c : (org_gnome_popup_wizard) disable shared-folder functionalilty temporarily, (server doesn't show mails in it) export SHARED_FOLDER if you want to have it svn path=/trunk/; revision=30192 * Updated Serbian translation by Igor Nestorovic.Danilo Šegan2005-08-223-4209/+4717 | | | | svn path=/trunk/; revision=30191 * Dont try to connect when the account is offline.CVSShreyas Srinivasan2005-08-222-4/+26 | | | | | | | | | 2005-08-22 Shreyas Srinivasan <sshreyas@novell.com> * proxy.c (org_gnome_proxy): Dont try to connect when the account is offline.CVS svn path=/trunk/; revision=30190 * Removed non-existent files from POTFILES.in.Danilo Šegan2005-08-222-2/+5 | | | | svn path=/trunk/; revision=30189 * Updated Traditional Chinese translation.Chao-Hsiung Liao2005-08-222-218/+222 | | | | | | | | 2005-08-22 Chao-Hsiung Liao <j_h_liau@yahoo.com.tw> * zh_TW.po: Updated Traditional Chinese translation. svn path=/trunk/; revision=30188 * Allow selecting and removing multiple entries from contact list editor.Sushma Rai2005-08-222-3/+28 | | | | | | | | Fixes #235038. Patch submitted by "sean.gao@sun.com (Sean Gao)" and patch corrected by "Devashish Sharma <sdevashish@novell.com>". svn path=/trunk/; revision=30187 * Fixed the problem of comparison and never returning true, inSushma Rai2005-08-222-3/+10 | | | | | | match_email_hostname(). svn path=/trunk/; revision=30186 * ** See #308117.Not Zed2005-08-222-0/+8 | | | | | | | | | | 2005-08-19 Not Zed <NotZed@Ximian.com> ** See #308117. * Makefile.am: link to proper libraries. svn path=/trunk/; revision=30185 * ** See #312668.Not Zed2005-08-222-1/+14 | | | | | | | | | | | | 2005-08-19 Not Zed <NotZed@Ximian.com> ** See #312668. * mail-component.c (setline_done, impl_setLineStatus): change the camel-session online status before (if we're going online) or after (if we're going offline) actually doing offline processing. svn path=/trunk/; revision=30184 * Cleared of fuzzy, Macedonian translationIvan Stojmirov2005-08-221-6019/+4123 | | | | svn path=/trunk/; revision=30183 * reverted (accidentally updated by my previous check in)Mohammad DAMT2005-08-222-0/+7 | | | | | | | | 2005-08-22 Mohammad DAMT <mdamt@gnome.org> * POTFILES.in: reverted (accidentally updated by my previous check in) svn path=/trunk/; revision=30182 * Updated Indonesian translation.Mohammad DAMT2005-08-223-631/+426 | | | | | | | | 2005-08-22 Mohammad DAMT <mdamt@gnome.org> * id.po: Updated Indonesian translation. svn path=/trunk/; revision=30181 * fixed a typo: s/occured/occurred/gJens Seidel2005-08-228-8/+15 | | | | svn path=/trunk/; revision=30180 * Resolve #309074Francisco Javier F. Serrador2005-08-223-2/+7 | | | | | | | | 2005-08-21 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * Resolve #309074 svn path=/trunk/; revision=30179 * fixes a memory leak.Chenthill Palanisamy2005-08-222-13/+24 | | | | svn path=/trunk/; revision=30177 * Updated Spanish translation.Francisco Javier F. Serrador2005-08-222-36/+40 | | | | | | | | 2005-08-21 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * es.po: Updated Spanish translation. svn path=/trunk/; revision=30176 * Updated Russian translationNickolay V. Shmyrev2005-08-212-3118/+5166 | | | | svn path=/trunk/; revision=30175 * Updated Greek TranslationKostas Papadimas2005-08-212-307/+313 | | | | svn path=/trunk/; revision=30174 * Updated Canadian English translation.Adam Weinberger2005-08-212-289/+293 | | | | | | | | 2005-08-21 Adam Weinberger <adamw@gnome.org> * en_CA.po: Updated Canadian English translation. svn path=/trunk/; revision=30173 * Put back in warning messages about calendar not being opened.Carsten Guenther2005-08-212-0/+13 | | | | | | | | | 2005-08-20 Carsten Guenther <carsten.guenther@scalix.com> * itip-formatter.c: (cal_opened_cb, final_cal_opened_cb): Put back in warning messages about calendar not being opened. svn path=/trunk/; revision=30172 * Updated Spanish translation.Francisco Javier F. Serrador2005-08-212-455/+445 | | | | | | | | 2005-08-21 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * es.po: Updated Spanish translation. svn path=/trunk/; revision=30171 * Updated Norwegian Nynorsk translation.Sigurd Gartmann2005-08-212-2854/+3374 | | | | | | | | 2005-08-21 Sigurd Gartmann <sigurdga@europe.yahoo-inc.com> * nn.po: Updated Norwegian Nynorsk translation. svn path=/trunk/; revision=30170 * Updated Catalan translation.Josep Puigdemont i Casamajó2005-08-202-408/+361 | | | | svn path=/trunk/; revision=30169 * corrected the date in changelog.Sushma Rai2005-08-201-4/+4 | | | | svn path=/trunk/; revision=30167 * Removed missing files. See bug #312668. Updated German translation.Frank Arnold2005-08-203-314/+321 | | | | | | | | | 2005-08-20 Frank Arnold <farnold@cvs.gnome.org> * POTFILES.in: Removed missing files. See bug #312668. * de.po: Updated German translation. svn path=/trunk/; revision=30166 * Updated Spanish trasnlation.Francisco Javier F. Serrador2005-08-202-6/+10 | | | | | | | | 2005-08-20 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * es.po: Updated Spanish trasnlation. svn path=/trunk/; revision=30165 * Translation updated by Tino Meinen.Vincent van Adrighem2005-08-202-456/+472 | | | | | | | | 2005-08-19 Vincent van Adrighem <adrighem@gnome.org> * nl.po: Translation updated by Tino Meinen. svn path=/trunk/; revision=30164 * Remove unwanted include of header that also borks the build.Harish Krishnaswamy2005-08-192-1/+5 | | | | | | | | | 2005-08-19 Harish Krishnaswamy <kharish@novell.com> * gui/dialogs/comp-editor.h: Remove unwanted include of header that also borks the build. svn path=/trunk/; revision=30163 * amanpreetalam@yahoo.com commit for Red HatAmanpreet Singh Alam2005-08-191-879/+365 | | | | svn path=/trunk/; revision=30162 * put the s/mime message back, awaiting string approval for a changeNot Zed2005-08-195-147/+170 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-19 Not Zed <NotZed@Ximian.com> * em-format.c (emf_multipart_encrypted): put the s/mime message back, awaiting string approval for a change otherwise. 2005-08-18 Not Zed <NotZed@Ximian.com> * em-format-html-display.c (efhd_message_add_bar): dont add attachment bar if it is disabled. (efhd_attachment_button): dont add attachments if there is no bar. * em-format.c (emf_inlinepgp_signed, emf_inlinepgp_encrypted): fix the error messages for consistency. We dont need to check content-type, since we only get called with the right one. (emf_multipart_encrypted): fix up wrong s/mime error. * em-format-html.c (efh_inlinepgp_signed) (efh_inlinepgp_encrypted): moved to em-format.c; otherwise this will break replying, etc. ** See #271894. * em-format.c (emf_multipart_encrypted): use the content object's content-type to check types. svn path=/trunk/; revision=30161 * Use camel_url to construct url (eab_icon_clicked_cb)Srinivasa Ragavan2005-08-194-13/+86 | | | | | | | | | | | | | | | | | 2005-08-17 Srinivasa Ragavan <sragavan@novell.com> * e-attachment-bar.c eab_drag_data_get: Use camel_url to construct url (eab_icon_clicked_cb) (e_attachment_bar_new): Fixed part of bug #312224. It handles double click on a attachment icon and calls gnome_url_show. * e-attachment.[ch] (finalise) (init): Add a new member to preserve the stored location (e_attachment_new)(e_attachment_build_remote_file): Camel_url to construct urls svn path=/trunk/; revision=30160 * Updated Indonesian translationMohammad DAMT2005-08-192-1849/+3155 | | | | | | | | 2005-08-18 Mohammad DAMT <mdamt@gnome.org> * id.po: Updated Indonesian translation svn path=/trunk/; revision=30159 * NULL-terminate calls to e_error_run; fixed typos in if-statement; someCarsten Guenther2005-08-192-26/+38 | | | | | | | | | | | | 2005-08-18 Carsten Guenther <carsten.guenther@scalix.com> * itip-formatter.c: (update_attendee_status): NULL-terminate calls to e_error_run; fixed typos in if-statement; some code cleanup. (cal_opened_cb, final_cal_opened_cb): Removed unnecessary message about not being able to open the calendar. svn path=/trunk/; revision=30158 * Show the attachment bar menu items when needed.Chenthill Palanisamy2005-08-189-47/+81 | | | | svn path=/trunk/; revision=30157 * Updated Lithuanian translation.Žygimantas Beručka2005-08-182-540/+338 | | | | | | | | 2005-08-18 Žygimantas Beručka <zygis@gnome.org> * lt.po: Updated Lithuanian translation. svn path=/trunk/; revision=30156 * ** See #312668.Not Zed2005-08-185-345/+79 | | | | | | | | | | | | | 2005-08-16 Not Zed <NotZed@Ximian.com> ** See #312668. * mail-component.c (impl_setLineStatus): new offline interface. (setline_check, setline_done): and implementation. * mail-offline-handler.[ch]: destroyed, burnt, dissolved in acid. svn path=/trunk/; revision=30155 * fix warning. (impl_Shell_findComponent): fix signature for warning.Not Zed2005-08-1811-965/+240 | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-17 Not Zed <NotZed@Ximian.com> * e-shell.c (impl_Shell_handleURI): fix warning. (impl_Shell_findComponent): fix signature for warning. 2005-08-16 Not Zed <NotZed@Ximian.com> ** See bug #312668. * e-shell.c (set_line_status, set_line_status_complete) (set_line_status_finished): new code to set componetns on/offline. (e_shell_go_online, e_shell_go_offline): use new interface. (offline_procedure_started_cb, offline_procedure_finished_cb): removed. (impl_dispose): cleanup line status listener. (e_shell_init): setup line status listener. * evolution-listener.[ch]: skeleton listener object for new setlinestatus call. * Evolution-Offline.idl, e-shell-offline-handler.[ch]: killed. We just add a single interface on EvolutionComponent now, much simpler. svn path=/trunk/; revision=30154 * ** See bug #312668.Not Zed2005-08-184-419/+7 | | | | | | | | | | | 2005-08-16 Not Zed <NotZed@Ximian.com> ** See bug #312668. * gui/calendar-offline-handler.[ch]: removed. Not even used anyway, god knows how it works. svn path=/trunk/; revision=30153 * Updated Traditional Chinese translation.Chao-Hsiung Liao2005-08-182-207/+217 | | | | | | | | 2005-08-18 Chao-Hsiung Liao <j_h_liau@yahoo.com.tw> * zh_TW.po: Updated Traditional Chinese translation. svn path=/trunk/; revision=30152 * Use g_get_charset() on Win32 to get locale charset. Free return value fromTor Lillqvist2005-08-182-0/+14 | | | | | | | | | 2005-08-18 Tor Lillqvist <tml@novell.com> * e-iconv.c (e_iconv_init): Use g_get_charset() on Win32 to get locale charset. Free return value from g_win32_getlocale(). svn path=/trunk/; revision=30151 * Fixes http://bugzilla.gnome.org/show_bug.cgi?id=313555 Only saveCarsten Guenther2005-08-182-13/+23 | | | | | | | | | | | 2005-08-17 Carsten Guenther <carsten.guenther@scalix.com> Fixes http://bugzilla.gnome.org/show_bug.cgi?id=313555 * gui/dialogs/comp-editor.c: (get_attachment_list): Only save attachment to file if file does not exist yet. svn path=/trunk/; revision=30149 * Remove the MailPost command Move the MailPost command to here Add a menuRodney Dawes2005-08-174-4/+17 | | | | | | | | | | | | | | | 2005-08-17 Rodney Dawes <dobey@novell.com> * evolution-mail-global.xml: Remove the MailPost command * evolution-mail-message.xml: Move the MailPost command to here Add a menu item for the MailPost command (#312225) * evolution-mail-list.xml: Add a menu item for the EditSelectThread command (#306878) Fixes #306878 and #312225 svn path=/trunk/; revision=30148 * Fix a warning. (efhd_bar_resize): Fix the bar size to match other widgets.Srinivasa Ragavan2005-08-172-6/+29 | | | | | | | | | | | | 2005-08-17 Srinivasa Ragavan <sragavan@novell.com> * em-format-html-display.c (efhd_bar_save_selected): Fix a warning. (efhd_bar_resize): Fix the bar size to match other widgets. (efhd_bar_scroll_event): Fix scroll issue over bar. bug #312224. (efhd_add_bar): Add a frame around the attachment bar. bug #312033 svn path=/trunk/; revision=30147 * Not checking for the duplicate contacts matching emial ids of a list.Sushma Rai2005-08-172-34/+49 | | | | | | skip email comparison in case of contact lists. Fixes #312554. svn path=/trunk/; revision=30146 * While adding new contact, during the duplicate contact check, not comparingSushma Rai2005-08-172-1/+10 | | | | | | the email id of new contact with the email ids of contact lists. svn path=/trunk/; revision=30145 * Handling GTK_RESPONSE_DELETE_EVENT response.Sushma Rai2005-08-172-1/+11 | | | | svn path=/trunk/; revision=30144 * Added scroll bar to duplicate detected dialog.Sushma Rai2005-08-172-138/+158 | | | | svn path=/trunk/; revision=30143 * vi.po: Updated Vietnamese translation.Clytie Siddall2005-08-172-83/+68 | | | | svn path=/trunk/; revision=30142 * Add the close call for fd.Kaushal Kumar2005-08-172-0/+8 | | | | | | | | | | 2005-08-17 Kaushal Kumar <kakumar@novell.com> * em-composer-prefs.c (url_requested): Add the close call for fd. See bug #307375. svn path=/trunk/; revision=30141 * Fixes #313514. For the code change in gnopernicus, we should useLi Yuan2005-08-172-4/+9 | | | | | | | | | | | 2005-08-15 Li Yuan <li.yuan@sun.com> * e-table/gal-a11y-e-table-item.c: (eti_a11y_reset_focus_object): Fixes #313514. For the code change in gnopernicus, we should use atk_focus_tracker_notify here. svn path=/trunk/; revision=30140 * Fixes #311904Chenthill Palanisamy2005-08-172-15/+22 | | | | svn path=/trunk/; revision=30139 * Add eab-popup.c back which apparently was accidentally removed.Tor Lillqvist2005-08-172-1/+7 | | | | | | | | | 2005-08-17 Tor Lillqvist <tml@novell.com> * gui/widgets/Makefile.am (libeabwidgets_la_SOURCES): Add eab-popup.c back which apparently was accidentally removed. svn path=/trunk/; revision=30138 * Updated Spanish translation.Francisco Javier F. Serrador2005-08-172-14/+18 | | | | | | | | 2005-08-16 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * es.po: Updated Spanish translation. svn path=/trunk/; revision=30137 * Translation updated by Ivar Smolin.Priit Laes2005-08-17