aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-bar.c
Commit message (Collapse)AuthorAgeFilesLines
* Call update (bar); the rest of the fix for bug #178631.Jeffrey Stedfast2006-06-091-1/+3
| | | | | | | | | 2006-06-08 Jeffrey Stedfast <fejj@novell.com> * e-attachment-bar.c (attachment_destroy): Call update (bar); the rest of the fix for bug #178631. svn path=/trunk/; revision=32099
* Fix compilation by adding missing (Thomas Vander Stichele2006-05-281-1/+1
| | | | | | | * widgets/misc/e-attachment-bar.c: (update): Fix compilation by adding missing ( svn path=/trunk/; revision=32046
* Fix for Novell bug #178631Jeffrey Stedfast2006-05-271-350/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-26 Jeffrey Stedfast <fejj@novell.com> Fix for Novell bug #178631 * e-attachment-bar.c: Changed the EAttachmentBarPrivate struct, we no longer use a linked list, instead we use a GPtrArray - faster, simpler (plus all the code used indexes anyway, so it was really bizarre). (free_attachment_list): Removed. (attachment_destroy): New GWeakNotify callback for when an EAttachment object gets destroyed. Remove the attachment from the attachments array. (add_common): Updated to add to an array rather than a linked list. Also weak_ref the attachment object. (remove_attachment): Removed. (update): Updated to use the array instead of linked list of attachments. (e_attachment_bar_remove_selected): Same. (e_attachment_bar_set_width): Same. (e_attachment_bar_edit_selected): Same. (e_attachment_bar_get_selected): Same. (e_attachment_bar_get_attachment): Same. (e_attachment_bar_get_all_attachments): Same and also optimised since we can cheat now without having to g_slist_reverse. (e_attachment_bar_get_parts): Same. (destroy): Same. (eab_drag_data_get): Same. (init): Init attachments to a g_ptr_array_new (e_attachment_bar_to_multipart): Updated to use the attachments array. (e_attachment_bar_get_num_attachments): Updated to return the attachments->len. (e_attachment_bar_get_download_count): Updated to use the array. * e-attachment.c (finalise): Close the editor dialog if it is open. (async_progress_update_cb): If the phase is COMPLETE but the file_size is 0, then treat it as an error. In the error case, unref the attachment object (this will magically remove it from the EAttachmentBar). (close_cb): Don't unref the attachment object here anymore. (e_attachment_edit): Don't ref the EAttachment anymore. svn path=/trunk/; revision=32042
* Added support for saving/attaching files/events/mails from/to remote sharesSrinivasa Ragavan2006-05-251-4/+4
| | | | svn path=/trunk/; revision=32024
* Added code to create image attachment's icon in non-gui thread.Srinivasa Ragavan2006-04-221-0/+60
| | | | svn path=/trunk/; revision=31859
* Fixes bug #332140 Changed to transfer filenames from utf-8 to glibSimon Zheng2006-03-061-4/+6
| | | | | | | | | | | 2006-03-06 Simon Zheng <simon.zheng@sun.com> Fixes bug #332140 * e-attachment-bar.c: (temp_save_part): Changed to transfer filenames from utf-8 to glib encoding before really saving files. svn path=/trunk/; revision=31664
* Tons of cleanups of the following sort: - remove unused vars - removeKjartan Maraas2006-01-301-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-30 Kjartan Maraas <kmaraas@gnome.org> * e-timezone-dialog/e-timezone-dialog.c: (get_zone_from_point): * menus/gal-view-menus.c: * misc/e-attachment-bar.c: (calculate_height_width), (update_remote_file), (e_attachment_bar_get_attachment), (class_init): * misc/e-attachment.c: (async_progress_update_cb), (download_to_local_path): * misc/e-calendar-item.c: (e_calendar_item_get_arg), (e_calendar_item_realize), (e_calendar_item_ensure_days_visible): * misc/e-calendar.c: (e_calendar_drag_motion), (e_calendar_drag_leave), (e_calendar_focus): * misc/e-canvas-background.c: (ecb_get_property): * misc/e-canvas.c: (e_canvas_class_init), (pick_current_item): * misc/e-cell-date-edit.c: (e_cell_date_edit_do_popup), (e_cell_date_edit_show_popup): * misc/e-cell-percent.c: * misc/e-charset-picker.c: (e_charset_picker_bonobo_ui_populate): * misc/e-config-page.c: (e_config_page_class_init): * misc/e-dateedit.c: (e_date_edit_set_date), (e_date_edit_set_date_and_time_of_day), (on_date_popup_date_selected): * misc/e-dropdown-button.c: (e_dropdown_button_class_init): * misc/e-expander.c: (get_expander_bounds), (e_expander_expose), (is_in_expander_panel): * misc/e-filter-bar.c: (option_changed), (build_items): * misc/e-image-chooser.c: (e_image_chooser_init), (image_drag_data_received_cb): * misc/e-map.c: (e_map_size_allocate), (e_map_button_press), (e_map_button_release), (e_map_motion), (e_map_zoom_to_location), (e_map_zoom_out), (update_render_point), (repaint_point), (zoom_in_smooth): * misc/e-multi-config-dialog.c: (impl_response): * misc/e-reflow.c: (e_reflow_realize), (e_reflow_event): * misc/e-search-bar.c: (clear_search), (search_now_verb_cb), (entry_activated_cb), (activate_button_clicked_cb), (clear_button_clicked_cb): * misc/e-selection-model.c: (e_selection_model_key_press): * misc/e-send-options.c: (delay_until_date_changed_cb), (e_sendoptions_get_need_general_options): * misc/e-unicode.c: (e_stripped_char): * table/e-cell-progress.c: (eprog_draw_border), (eprog_draw), (eprog_event): * table/e-cell-spin-button.c: (ecsb_event), (ecsb_focus), (ecsb_unfocus), (ecsb_dispose): * table/e-cell-text.c: (ect_draw), (ect_show_tooltip): * table/e-cell-toggle.c: (etog_draw), (etog_event): * table/e-cell-tree.c: (ect_max_width): * table/e-cell-vbox.c: * table/e-table-click-to-add.c: (etcta_event): * table/e-table-config.c: (create_global_store): * table/e-table-field-chooser-dialog.c: * table/e-table-field-chooser-item.c: (etfci_find_button), (etfci_reflow), (etfci_get_property), (etfci_realize): * table/e-table-field-chooser.c: (e_table_field_chooser_class_init): * table/e-table-group-container.c: (etgc_unrealize): * table/e-table-group.c: (e_table_group_new): * table/e-table-header-item.c: (e_table_header_item_get_height), (ethi_realize), (ethi_event): * table/e-table-header-utils.c: (e_table_draw_elided_string), (e_table_header_draw_button): * table/e-table-item.c: (eti_set_property), (eti_get_property), (eti_draw), (eti_event), (eti_cursor_change): * table/e-table-scrolled.c: (e_table_scrolled_class_init): * table/e-table-search.c: * table/e-table-sort-info.c: (e_table_sort_info_save_to_node): * table/e-table.c: (table_canvas_reflow_idle), (table_canvas_size_allocate), (canvas_vbox_event), (click_to_add_event), (do_drag_motion), (e_table_class_init): * table/e-tree-scrolled.c: (e_tree_scrolled_class_init): * table/e-tree.c: (tree_canvas_reflow_idle), (tree_canvas_size_allocate), (e_tree_drag_get_data), (do_drag_motion), (e_tree_class_init): * text/e-text.c: (e_text_set_property), (e_text_draw), (_do_tooltip), (primary_clear_cb), (_get_position), (e_text_command): Tons of cleanups of the following sort: - remove unused vars - remove extraneous semi-colons - add some comments where assignments were done without using the results later - remove break; statements after return foo; - add casts in some places to be more type correct - rename variables with name clashes - s/if/ifdef in some cases - mark some code static - remove some unused functions - use guint for 1-bit bitfields svn path=/trunk/; revision=31371
* Use e_util_mkdir_hier() instead of e_mkdir_hier().Simon Zheng2006-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-10 Simon Zheng <simon.zheng@sun.com> * menus/gal-view-instance.c: * misc/e-attachment-bar.c: * misc/e-calendar-item.c: * misc/e-dateedit.c: Use e_util_mkdir_hier() instead of e_mkdir_hier(). Use e_util_strstrcase() instead of e_strstrcasea(). use e_strfime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_filename_make_safe() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_utf8_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. svn path=/trunk/; revision=31122
* Fix a division-by-zero error crasher. (Update: when in doubt, protect withHarish Krishnaswamy2005-11-171-2/+2
| | | | | | | | | | 2005-11-17 Harish Krishnaswamy <kharish@novell.com> * e-attachment-bar.c: (update), (e_attachment_bar_set_width): Fix a division-by-zero error crasher. (Update: when in doubt, protect with parenthesis :-)) svn path=/trunk/; revision=30631
* Fix a division-by-zero error crasherHarish Krishnaswamy2005-11-171-0/+2
| | | | svn path=/trunk/; revision=30630
* Added a function to get all attachments of the attachment bar for pluginSrinivasa Ragavan2005-11-161-0/+23
| | | | | | | | | | 2005-11-15 Srinivasa Ragavan <sragavan@novell.com> * e-attachment-bar.[ch] (e_attachment_bar_get_all_attachments): Added a function to get all attachments of the attachment bar for plugin purposes. svn path=/trunk/; revision=30620
* gtk_pixbuf_add_alpha returns a newly allocated pixbuf, so, free theVeerapuram Varadhan2005-10-041-1/+7
| | | | | | | * e-attachment-bar.c (update): gtk_pixbuf_add_alpha returns a newly allocated pixbuf, so, free the original one. svn path=/trunk/; revision=30487
* Fix for bug #314136. Shows filename in the remote download in composer.Srinivasa Ragavan2005-08-241-4/+9
| | | | | | | | | | | | | | | | | | 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
* Use camel_url to construct url (eab_icon_clicked_cb)Srinivasa Ragavan2005-08-191-7/+58
| | | | | | | | | | | | | | | | | 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
* Fix for bug #312545Srinivasa Ragavan2005-08-161-2/+6
| | | | | | | | | 2005-08-16 Srinivasa Ragavan <sragavan@novell.com> * mail/em-format-html-display.c: * widgets/misc/e-attachment*.c: Fix for bug #312545 svn path=/trunk/; revision=30126
* Added a function to force refresh/resize the icons.Srinivasa Ragavan2005-08-111-0/+6
| | | | | | | | | 2005-08-11 Srinivasa Ragavan <sragavan@novell.com> * e-attachment-bar.[ch] (e_attachment_bar_refresh): Added a function to force refresh/resize the icons. svn path=/trunk/; revision=30082
* escape the "%" character correctly.David Malcolm2005-08-031-1/+1
| | | | | | * e-attachment-bar.c: (update_remote_file): escape the "%" character correctly. svn path=/trunk/; revision=29959
* Void function should not return value.Mengjie Yu2005-07-291-2/+4
| | | | | | | | | | | 2005-07-28 Mengjie Yu <meng-jie.yu@sun.com> * misc/e-attachment-bar.c: (update_remote_file): Void function should not return value. Fixes #311837 svn path=/trunk/; revision=29924
* Added checks for the parameters.Srinivasa Ragavan2005-07-251-0/+26
| | | | | | | | | | | 2005-07-25 Srinivasa Ragavan <sragavan@novell.com> * e-attachment-bar,c: (e_attachment_bar_remove_selected) (e_attachment_bar_edit_selected) (e_attachment_bar_get_attachment) (e_attachment_bar_get_parts) (e_attachment_bar_get_download_count) (e_attachment_bar_attach_remote_file): Added checks for the parameters. svn path=/trunk/; revision=29874
* Cleaned up most of it. Added the DnD.Srinivasa Ragavan2005-07-201-121/+269
| | | | | | | | | | | | | | | 2005-07-20 Srinivasa Ragavan <sragavan@novell.com> * e-attachment-bar.[ch]:(remove_attachment) (update) (e_attachment_bar_get_selector) (e_attachment_bar_get_attachment) (destroy) (init) (e_attachment_bar_new) (e_attachment_bar_add_attachment) (e_attachment_bar_attach_remote_file) Cleaned up most of it. Added the DnD. * e-attachment.[ch]: (real_changed) (class_init) (init) (e_attachment_new) (e_attachment_new_remote_file) (e_attachment_build_remote_file): Moved the remote download code from bar to here and few cleanups. svn path=/trunk/; revision=29813
* Added gnome-vfs-module-2.0 to E_WIDGET_CFLAGS. Added e-attachment-bar.[ch]Srinivasa Ragavan2005-07-111-0/+934
2005-07-11 Srinivasa Ragavan <sragavan@novell.com> * configure.in: Added gnome-vfs-module-2.0 to E_WIDGET_CFLAGS. * Added e-attachment-bar.[ch] e-attachment.[ch] e-attachment.glade to directory structure and the Makefile.am svn path=/trunk/; revision=29708