aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-select-file.c
Commit message (Collapse)AuthorAgeFilesLines
* Update the composer to use the icon theme via the EIconFactory object inMichael Terry2004-04-191-2/+10
| | | | | | | | | | 2004-04-19 Michael Terry <mike@mterry.name> * e-msg-composer-select-file.c: * e-msg-composer.c: Update the composer to use the icon theme via the EIconFactory object in e-util svn path=/trunk/; revision=25516
* Don't blindly claim that the file exists and then ask the user if he/sheJeffrey Stedfast2003-10-071-1/+1
| | | | | | | | | | | | | | | 2003-09-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (save): Don't blindly claim that the file exists and then ask the user if he/she would like to overwrite it. First check that the file even exists, if not - then we've got a different error. Fixes bug #48759. * e-msg-composer-select-file.c (e_msg_composer_select_file): Use the proper selector title, otherwise it says "Attach files" when we are trying to save a message. svn path=/trunk/; revision=22798
* Guard against the filesel's selection being NULL. Fixes bug #40679.Jeffrey Stedfast2003-04-031-6/+9
| | | | | | | | | 2003-04-02 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (e_msg_composer_select_file): Guard against the filesel's selection being NULL. Fixes bug #40679. svn path=/trunk/; revision=20648
* clean upDan Winship2003-02-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: clean up * e-msg-composer.c (autosave_manager_query_load_orphans): #include string.h (menu_file_send_cb): s/gtk_signal_emit/g_signal_emit/ * e-msg-composer-attachment.c: #include string.h (e_msg_composer_attachment_edit): s/E_GLADEDIR/EVOLUTION_GLADEDIR * e-msg-composer-attachment-bar.c: #include string.h (pixbuf_for_mime_type): s/ICONSDIR/IMAGESDIR/ * e-msg-composer-hdrs.c: #include string.h * e-msg-composer-select-file.c (run_selector): Remove unused var * evolution-composer.c: #include string.h (evolution_composer_init): Remove unused var * listener.c: #include string.h (listener_new): Remove unused var svn path=/trunk/; revision=19804
* rewrote most of this. Just use gtkfileselection directly, noNot Zed2002-11-251-208/+67
| | | | | | | | | | | | | | | | | | | | | | | | 2002-11-22 Not Zed <NotZed@Ximian.com> * e-msg-composer-select-file.c: rewrote most of this. Just use gtkfileselection directly, no e-file-selector, much smaller/simpler. 2002-11-21 Not Zed <NotZed@Ximian.com> * e-msg-composer-attachment-bar.c (remove_attachment): fix g_signal_emit params, detail in wrong spot. (add_common): Same. * e-icon-list.c (icon_new_from_pixbuf): remove the 'use_broken_event_handling' set. (emit_select): Add detail to signal emit. (text_changed): Same. * e-msg-composer.c (subject_changed_cb): Duh! dont free subject & simplify logic a little. svn path=/trunk/; revision=18904
* Removed {BEGIN,END}_GNOME_DECLS.Ettore Perazzoli2002-11-141-1/+0
| | | | | | | | | | | * listener.h: Removed {BEGIN,END}_GNOME_DECLS. * e-msg-composer-select-file.c: Do not #include <libgnome/gnome-defs.h>. * e-msg-composer.c: Likewise. * listener.h: Likewise. svn path=/trunk/; revision=18738
* Fix bonobo object setup.Not Zed2002-11-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-08 Not Zed <NotZed@Ximian.com> * listener.c: Fix bonobo object setup. * e-msg-composer-hdrs.c: Remove oaf stuff, fix destroy to be multi-call safe. * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Remove utf8 from locale conversions, & glib api changes. (ok_cb): " * e-msg-composer-attachment-bar.c (add_from_file): gtk message dialog. (pixbuf_for_mime_type): glib,gnome-vfs api changes. (init): Estimate the icon_height based on the pango font description size, this is probably not correct. (properties_cb): (remove_cb): Changed signature for gnomeui callbacks. (popup_icon_context_menu): (popup_context_menu): popup_menu api change (destroy): Protect from multiple calls. (e_msg_composer_attachment_bar_new): Remove push/pop visual/colormap stuff. * composer-marshal.list: The list of marshallers used by the composer. * Makefile.am (composer-marshal.h): Added composer marshal builder. * evolution-composer.c (class_init): bonobo object epv setup change. (factory_fn): Fix changes to factory callback. * e-icon-list.c: (icon_get_height): Use bounding box to calc height. (icon_event): drop gtk_selection_extended. (e_icon_list_remove): " (select_icon): (unselect_icon): " * e-msg-composer.c (autosave_save_draft): Dup fd rather than poke camel_stream_fd's data. Also, use camel_stream_close() rather than flush. (autosave_manager_query_load_orphans): Port to gtk dialog. (autosave_query_cb): Removed, redundant. (save): Port to gtkdialog. (prepare_engine): Fix bonobo-object-client code. (get_file_content): gtk dialog (do_exit): gtk dialog. (setup_signatures_menu): dump gtkutf8 stuff. (marshal_NONE__NONE_INT): What WAS jeff thinking? Removed :) (class_init): g object setup. (e_msg_composer_get_type): " (create_composer): remove bonobo_window_construct, use create property instead. g_signal stuff. bonobo stuff. (is_special_header): Use ascii_strncasecmp (e_msg_composer_set_pending_body): gtk->g_object_get/set_data. (e_msg_composer_set_body): use ascii_strncasecmp (e_msg_composer_add_inline_image_from_mime_part): make cid const. (autosave_manager_register): (autosave_manager_unregister): Use g_path_get_basename() & account for differences. (composer_shutdown): rename to finalise/etc. (class_init): Use object:finalize instead of shutdown. (e_msg_composer_set_body): Use _() rather than U_(). (build_message): gtk dialog. 2002-11-06 Not Zed <NotZed@Ximian.com> * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Add error return to gdk_pixbuf_new_from_file(). svn path=/trunk/; revision=18659
* Mark the file selector modal. Quick fix for bug #32256.Not Zed2002-10-171-0/+1
| | | | | | | | | 2002-10-16 Not Zed <NotZed@Ximian.com> * e-msg-composer-select-file.c (select_file_internal): Mark the file selector modal. Quick fix for bug #32256. svn path=/trunk/; revision=18380
* Set the file-selection window icon. Fixes the mailer part of bug #7368.Jeffrey Stedfast2002-08-131-21/+28
| | | | | | | | | | | | | | | | | 2002-08-12 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (create_file_selection): Set the file-selection window icon. Fixes the mailer part of bug #7368. * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Don't call new_from_mime_part() since that function now does some copying of the mime part rather than simply reffing it. (e_msg_composer_attachment_new_from_mime_part): Make a copy of the MIME part so that if the message that this part belongs to gets deleted from the the remote store, the composer will still have a copy of it. Fixes bug #20308. svn path=/trunk/; revision=17763
* From composer/ChangeLog:Christopher James Lahey2002-03-291-41/+17
| | | | | | | | | 2002-03-28 Christopher James Lahey <clahey@ximian.com> * e-msg-composer-select-file.c: Switch to using EFileSelection here instead of GtkFileSelection. svn path=/trunk/; revision=16276
* Only cancel the selection dialog if it is currently in use, otherwiseJeffrey Stedfast2001-12-221-1/+2
| | | | | | | | | | 2001-12-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (composer_hide_cb): Only cancel the selection dialog if it is currently in use, otherwise we'll get an extra gtk_main_quit and the mailer will exit :-( svn path=/trunk/; revision=15207
* If multiple-selection is enabled but nothing is slected, fall back toJeffrey Stedfast2001-12-121-14/+20
| | | | | | | | | | | | 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (confirm): If multiple-selection is enabled but nothing is slected, fall back to using the filename in the entry box as the "selected" file. (create_file_selection): If the composer gets hidden (ie it's being "sent") then cancel the file selection dialog. svn path=/trunk/; revision=14999
* If multiple-selection is enabled but nothing is slected, fall back toJeffrey Stedfast2001-12-121-4/+7
| | | | | | | | | | 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (confirm): If multiple-selection is enabled but nothing is slected, fall back to using the filename in the entry box as the "selected" file. svn path=/trunk/; revision=14994
* If the widget is non-NULL, then gtk_widget_destroy that bad boy...Jeffrey Stedfast2001-12-121-3/+2
| | | | | | | | | | 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (file_selection_info_destroy_notify): If the widget is non-NULL, then gtk_widget_destroy that bad boy... svn path=/trunk/; revision=14984
* select_file_attachments now returns a GPtrArray so handle that and loopJeffrey Stedfast2001-12-111-46/+100
| | | | | | | | | | | | | | | | | | | | | 2001-12-10 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (add_from_user): select_file_attachments now returns a GPtrArray so handle that and loop until we've added all the attachment files. * e-msg-composer-select-file.c (confirm): Add an evil kludge to get a list of filenames from the GtkFileSelection widget based on the label in the history option menu item and the base filenames of the selected items in the filename clist. (create_file_selection): Setup the clist to allow multiple selection. (file_selection_info_destroy_notify): Destroy the GPtrArray containing the list of xselected files. (select_file_internal): Return a GPtrArray of files instead of a char *. svn path=/trunk/; revision=14968
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* Close the file selection dialog when the composer is closedIain Holmes2001-07-101-0/+3
| | | | svn path=/trunk/; revision=10920
* Added missing #include <config.h> to make translations working.Chyla Zbigniew2001-07-091-0/+4
| | | | | | | * e-msg-composer-select-file.c: Added missing #include <config.h> to make translations working. svn path=/trunk/; revision=10906
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-1/+1
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* Replace the disposition option menu with a checkbox.Dan Winship2001-06-131-7/+51
| | | | | | | | | | | | | | | | | | | | | | | | * e-msg-composer-attachment.glade: Replace the disposition option menu with a checkbox. * e-msg-composer-select-file.c (e_msg_composer_select_file_attachment): New function to select a file to attach. Adds a "suggest inline disposition" checkbox. * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Add a disposition argument rather than always defaulting to "attachment". (struct _DialogData, ok_cb, e_msg_composer_attachment_edit): Update for optionmenu->checkbox change for disposition. * e-msg-composer-attachment-bar.c (add_from_file): Add a disposition argument. (add_from_user): Use e_msg_composer_select_file_attachment, pass chosen disposition to add_from_file. (e_msg_composer_attachment_bar_attach): Pass "attachment" to add_from_file for the disposition. svn path=/trunk/; revision=10200
* Fix previous.Dan Winship2001-04-121-1/+4
| | | | | | | * e-msg-composer-select-file.c (create_file_selection): Fix previous. svn path=/trunk/; revision=9254
* Set the default filename to the user's homedir.Jeffrey Stedfast2001-04-121-1/+1
| | | | | | | | | 2001-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (create_file_selection): Set the default filename to the user's homedir. svn path=/trunk/; revision=9243
* Change into the user's home dir before opening the filesel.Jeffrey Stedfast2001-04-121-0/+1
| | | | | | | | | 2001-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (create_file_selection): Change into the user's home dir before opening the filesel. svn path=/trunk/; revision=9242
* Replace #include <gtk/gtk.h> Replace #include <gnome.h> Remove #includeKjartan Maraas2001-03-301-1/+2
| | | | | | | | | | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * e-icon-list.c: Replace #include <gtk/gtk.h> * e-msg-composer-attachment-bar.c: Replace #include <gnome.h> * e-msg-composer-attachment-bar.h: Remove #include <gnome.h> * e-msg-composer-attachment.c: Remove #include <gnome.h> * e-msg-composer-attachment.h: Same here. * e-msg-composer-hdrs.c: Replace #include <gnome.h> and <bonobo.h> * e-msg-composer-hdrs.h: Replace #include <gnome.h> * e-msg-composer-file.c: #include <gtk/gtkmain.h>, <gtk/gtksignal.h> * e-msg-composer.c: Replace #include <bonobo.h>, <gnome.h> * e-msg-composer.h: Replace #include <gnome.h> and <bonobo.h> * evolution-composer.c: Replace #include <bonobo.h> * listener.c: Same here. svn path=/trunk/; revision=9023
* Summary is back in :DIain Holmes2000-10-261-0/+2
| | | | | | Fixed a silly size issue for composer file selectors. svn path=/trunk/; revision=6187
* Merge with camel-async.Peter Williams2000-08-111-0/+2
| | | | svn path=/trunk/; revision=4687
* I18N the message composer's title bar. Don't install header files.Ettore Perazzoli2000-06-171-0/+169
Initial implementation of the "Open" and "Save as" commands (not really tested/finished, I am just syncing the tree before leaving). Put the cursor on the "To:" field when the message composer is shown. Set the correct shadow type in the scroll frame. svn path=/trunk/; revision=3603