/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* evolution-shell-view.c * * Copyright (C) 2000 Helix Code, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program 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 * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * Author: Ettore Perazzoli */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "evolution-shell-view.h" #define PARENT_TYPE bonobo_object_get_type () static BonoboObjectClass *parent_class = NULL; struct _EvolutionShellViewPrivate { int dummy; }; enum { SET_MESSAGE, UNSET_MESSAGE, LAST_SIGNAL }; static int signals[LAST_SIGNAL] = { 0 }; /* CORBA interface implementation. */ static POA_Evolution_ShellView__vepv ShellView_vepv; static POA_Evolution_ShellView * create_servant (void) { POA_Evolution_ShellView *servant; CORBA_Environment ev; servant = (POA_Evolution_ShellView *) g_new0 (BonoboObjectServant, 1); servant->vepv = &ShellView_vepv; CORBA_exception_init (&ev); POA_Evolution_ShellView__init ((PortableServer_Servant) servant, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_free (servant); CORBA_exception_free (&ev); return NULL; } CORBA_exception_free (&ev); return servant; } static void impl_ShellView_set_message (PortableServer_Servant servant, const CORBA_char *message, const CORBA_boolean busy, CORBA_Environment *ev) { BonoboObject *bonobo_object; bonobo_object = bonobo_object_from_servant (servant); gtk_signal_emit (GTK_OBJECT (bonobo_object), signals[SET_MESSAGE], message, busy); } static void impl_ShellView_unset_message (PortableServer_Servant servant, CORBA_Environment *ev) { BonoboObject *bonobo_object; bonobo_object = bonobo_object_from_servant (servant); gtk_signal_emit (GTK_OBJECT (bonobo_object), signals[UNSET_MESSAGE]); } /* GtkObject methods. */ static void destroy (GtkObject *object) { EvolutionShellView *shell_view; EvolutionShellViewPrivate *priv; shell_view = EVOLUTION_SHELL_VIEW (object); priv = shell_view->priv; g_free (priv); (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } static void corba_class_init (void) { POA_Evolution_ShellView__vepv *vepv; POA_Evolution_ShellView__epv *epv; PortableServer_ServantBase__epv *base_epv; base_epv = g_new0 (PortableServer_ServantBase__epv, 1); base_epv->_private = NULL; base_epv->finalize = NULL; base_epv->default_POA = NULL; epv = g_new0 (POA_Evolution_ShellView__epv, 1); epv->set_message = impl_ShellView_set_message; epv->unset_message = impl_ShellView_unset_message; vepv = &ShellView_vepv; vepv->_base_epv = base_epv; vepv->Bonobo_Unknown_epv = bonobo_object_get_epv (); vepv->Evolution_ShellView_epv = epv; } static void class_init (EvolutionShellViewClass *klass) { GtkObjectClass *object_class; object_class = GTK_OBJECT_CLASS (klass); object_class->destroy = destroy; signals[SET_MESSAGE] = gtk_signal_new ("set_message", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (EvolutionShellViewClass, set_message), gtk_marshal_NONE__POINTER_INT, GTK_TYPE_NONE, 2, GTK_TYPE_STRING, GTK_TYPE_BOOL); signals[UNSET_MESSAGE] = gtk_signal_new ("unset_message", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (EvolutionShellViewClass, unset_message), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); parent_class = gtk_type_class (bonobo_object_get_type ()); corba_class_init (); } static void init (EvolutionShellView *shell_view) { EvolutionShellViewPrivate *priv; priv = g_new (EvolutionShellViewPrivate, 1); priv->dummy = 0; shell_view->priv = priv; } /** * evolution_shell_view_construct: * @shell_view: * @corba_object: * * Construct @shell_view with the specified @corba_object. **/ void evolution_shell_view_construct (EvolutionShellView *shell_view, Evolution_ShellView corba_object) { g_return_if_fail (shell_view != NULL); g_return_if_fail (EVOLUTION_IS_SHELL_VIEW (shell_view)); bonobo_object_construct (BONOBO_OBJECT (shell_view), corba_object); } /** * evolution_shell_view_new: * * Create a new EvolutionShellView object. * * Return value: The new EvolutionShellView object. **/ EvolutionShellView * evolution_shell_view_new (void) { POA_Evolution_ShellView *servant; Evolution_ShellView corba_object; EvolutionShellView *new; servant = create_servant (); if (servant == NULL) return NULL; new = gtk_type_new (evolution_shell_view_get_type ()); corba_object = bonobo_object_activate_servant (BONOBO_OBJECT (new), servant); evolution_shell_view_construct (new, corba_object); return new; } E_MAKE_TYPE (evolution_shell_view, "EvolutionShellView", EvolutionShellView, class_init, init, PARENT_TYPE) pan class='insertions'>+6 * Likewise.Not Zed2001-09-084-12/+34 * #if 0 out the code that was hopefully going to fix bug #5325 because theJeffrey Stedfast2001-09-082-1/+9 * Change some words.Michael Zucci2001-09-081-1/+1 * kill off some warningsJeffrey Stedfast2001-09-081-2/+1 * For every category: - set .translate to FALSEChyla Zbigniew2001-09-082-2/+14 * Fixed a silly little obvious bug.Jon Trowbridge2001-09-081-3/+3 * Fixed two bugs: - missing coversion of contact name to GTK+ locale, -Chyla Zbigniew2001-09-082-15/+49 * pgp signature iconsJakub Steiner2001-09-085-0/+8 * Disconnect from the service here otherwise the locks will be destroyed andJeffrey Stedfast2001-09-082-4/+20 * New layoutIain Holmes2001-09-085-52/+41 * New designIain Holmes2001-09-082-73/+37 * Make sure to unref the mime filters when we finish with them.Jeffrey Stedfast2001-09-082-0/+7 * Give the full path of the wax-seal icons. (try_inline_pgp_sig): ConvertJeffrey Stedfast2001-09-082-22/+48 * Removed unused factory variable.Christopher James Lahey2001-09-082-2/+5 * Changed this to use the new ETable/ETree drag stuff.Christopher James Lahey2001-09-082-84/+18 * Added GDK_BUTTON_PRESS_MASK to our button mask. Fixes Ximian bug #8241.Christopher James Lahey2001-09-081-1/+1 * Give the full path of the wax-seal icons.Jeffrey Stedfast2001-09-082-2/+7 * s/Synchronising/Synchronizing/. (mbox_summary_sync_quick): Likewise.Ettore Perazzoli2001-09-082-4/+11 * constificationJeffrey Stedfast2001-09-083-5/+8 * Reuse the original boundary instead of generating our own.Jeffrey Stedfast2001-09-082-2/+11 * Don't do_something on button_release if we did something on button_press.Christopher James Lahey2001-09-082-2/+8 * Bumped version number to 0.11.99.3 for ETableWithout.Christopher James Lahey2001-09-082-2/+4 * Added e-table-config-no-group.glade.Christopher James Lahey2001-09-083-102/+1734 * Added this function.Christopher James Lahey2001-09-082-2/+30 * Don't allow the default toolbar to be configurable.Ettore Perazzoli2001-09-081-1/+0 * Don't allow the default toolbar to be configurable.Ettore Perazzoli2001-09-082-1/+6 * one-line OpenSSL fix from Yanko Kaneti <yaneti@declera.com>Dan Winship2001-09-072-1/+6 * Remove the "see previous error messages?" comment from the error messageDan Winship2001-09-072-2/+9 * Updated Slovak translation.Stanislav Visnovsky2001-09-072-3662/+3910 * new function, to notify the bonobo listener inChris Toshok2001-09-072-18/+60 * pass the VTIMEZONE component to icalcomponent_compare_vtimezones(), notDamon Chaplin2001-09-073-6/+43 * add ldap-16.png.Chris Toshok2001-09-072-0/+5 * new function, notify the bonobo listener. (remove_ldap_folder): trackChris Toshok2001-09-073-18/+64 * change to match create_folder. (e_marshal_NONE__POINTER_POINTER_POINTER):Chris Toshok2001-09-073-49/+52 * Thread function to perform filtering. (filter_free): Free the filter62001-09-074-3/+142 * change /Toolbar/ContactEditorSave to /Toolbar/ContactEditorSaveClose.Chris Toshok2001-09-072-1/+6 * Changed "Save" to "Save and Close"Anna Marie Dirks2001-09-072-5/+16 * add -DEVOLUTION_IMAGESDIR.Chris Toshok2001-09-077-39/+89 * Use camel_stream_buffer_read_line() instead of duplicationing theJeffrey Stedfast2001-09-072-28/+18 * added a default size for the saved search dialog of 600 x 300 such that itAnna Marie Dirks2001-09-072-1/+7 * Updated Swedish translation.Christian Rose2001-09-072-951/+1116 * Allow a value of -1.0 for @progress [which means "unknown progress"].Ettore Perazzoli2001-09-072-1/+7 * (handle_multipart_alternative, handle_multipart,Dan Winship2001-09-072-30/+12 * Fix a bunch of replying/forwarding-related formatting bugs.Dan Winship2001-09-076-191/+214 * Don't open multiple dialogsIain Holmes2001-09-072-0/+9 * Add E_TEXT_TO_HTML_CITE, to prepend "> " to each line.Dan Winship2001-09-073-1/+13 * Fix this to always set an exception if it returns POP3_FAIL, asDan Winship2001-09-073-6/+16 * Set an exception on POP3_FAIL as well.Jeffrey Stedfast2001-09-072-3/+10 * Have to specify a mode when using O_CREAT.Dan Winship2001-09-072-1/+6 * #ifdef out the "delete after N days" option in pop3_conf_entries, since itDan Winship2001-09-072-0/+8 * oops, take config out of SUBDIRSJeffrey Stedfast2001-09-071-1/+1 * Add mkdir config in dist-hook here instead.Jeffrey Stedfast2001-09-073-0/+5 * Updated Polish translationChyla Zbigniew2001-09-062-218/+127 * Updated Norwegian (bokmål) translation.Kjartan Maraas2001-09-062-828/+1005 * [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-063-21/+22 * [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-064-38/+38 * Fix the check for the case when mkdir() returns EEXIST to check S_ISDIR onDan Winship2001-09-062-1/+7 * the "command" of a GnomeVFSMimeApplication can include arguments as well.Dan Winship2001-09-062-11/+12 * [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-063-23/+28 * removed conflict stuffJeffrey Stedfast2001-09-061-1/+0 * Adjust the default_account index correctly.Jeffrey Stedfast2001-09-063-7/+31 * [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-063-30/+23 * LocationsIain Holmes2001-09-062-1/+6 * [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-063-25/+30 * Stop the summary jumping to the top on redrawIain Holmes2001-09-062-1/+6 * USe 24hr clock if appropriate, don't mess with the date and timeIain Holmes2001-09-062-9/+39 * Applied user-submitted patch to usage-mail.sgml.Aaron Weber2001-09-062-3/+7 * This patch should avoid flashing when loading images into mail view, creditsRadek Doulik2001-09-066-33/+196 * [Fix #5503, Edit menu is empty and should be removed.]Ettore Perazzoli2001-09-069-68/+96 * Fix a typo.Kjartan Maraas2001-09-062-1/+5 * Added.Jeffrey Stedfast2001-09-063-1/+5 * Updated slightly.Ettore Perazzoli2001-09-062-12/+11 * New. (get_efolder_from_shortcut): Removed. (impl_shortcut_dropped): UseEttore Perazzoli2001-09-062-13/+40 * added a wee bit of padding around the find now label in response to bugAnna Marie Dirks2001-09-062-0/+6 * s/Evolution/Ximian Evolution/.Ettore Perazzoli2001-09-062-4/+8 * Replace "Evolution" with "Ximian Evolution" in a bunch of user-visibleEttore Perazzoli2001-09-069-18/+44 * [Fix #6474 and friends, crash when selecting things from theEttore Perazzoli2001-09-062-2/+29 * Updated Lithuanian translation.Gediminas Paulauskas2001-09-062-882/+648 * ical meeting iconJakub Steiner2001-09-053-0/+6 * Updated Hungarian translation + terminology fixes.Andras Timar2001-09-052-154/+179 * Implemented.Federico Mena Quintero2001-09-058-46/+781 * [Fix #6971, Default folder should be the Summary.]Ettore Perazzoli2001-09-056-7/+27 * Fixes for BelgiumIain Holmes2001-09-052-10/+13 * Acell clashes fixedIain Holmes2001-09-052-9/+6 * Make the apply button activate when the new feed is addedIain Holmes2001-09-052-0/+6 * [Fixes by Neil Conway <neilconway@home.com, as per #8090.]Ettore Perazzoli2001-09-053-17/+35 * [Fix #8089, Undocumented Scrollkeeper dependency.]Ettore Perazzoli2001-09-052-0/+8 * [Fix ^#7675, Crashes trying to empty trash folder.]Ettore Perazzoli2001-09-052-5/+15 * Report errors in the dialogIain Holmes2001-09-052-0/+6 * Check if the file is a VCard before importingIain Holmes2001-09-052-0/+9 * Just ignore the request if the activity handler has theEttore Perazzoli2001-09-052-0/+30 * Change "Copy to Folder" to be Ctrl-Shift-Y so we are more like O* andEttore Perazzoli2001-09-052-1/+7 * Validation.Aaron Weber2001-09-053-43/+56 * Don't use - in front of the temperature to mean No conditionIain Holmes2001-09-053-2/+11 * [Fix #7542, "Crash Afer Closing".]Ettore Perazzoli2001-09-052-0/+12 * Fixes #7251Chyla Zbigniew2001-09-052-2/+9 * Check the file exists before trying to import itIain Holmes2001-09-052-0/+20 * Unref the source folder here because it might be a POP folder. We do thisJeffrey Stedfast2001-09-052-2/+13 * Fixes #2465Chyla Zbigniew2001-09-052-4/+14 * Shut down other components correctly when cancelling the first time startup d...Iain Holmes2001-09-052-1/+8 * Remove debugging message.Ettore Perazzoli2001-09-051-2/+0 * Remove debugging message. (tree_drag_motion): Likewise.Ettore Perazzoli2001-09-052-3/+6 * Get the correct name from the prefs file, or from the passwd file if one doesIain Holmes2001-09-052-3/+59 * Too late to sync the folders here... if this is gonna happen at all itJeffrey Stedfast2001-09-052-4/+4 * Add an F9 accelerator for the "Send/Receive" item.Ettore Perazzoli2001-09-052-1/+6 * Add the root node to the hash. (e_storage_set_view_set_show_folders):Ettore Perazzoli2001-09-052-0/+11 * Do a clean disconnect.Jeffrey Stedfast2001-09-053-3/+6 * Add an accel for Search Message.Jeffrey Stedfast2001-09-052-0/+5 * Fix capitalization. Fixes bug #7486.Jeffrey Stedfast2001-09-052-17/+22 * Wrote info on how to interract with attached iCal files.Kevin Breit2001-09-052-1/+17 * Only check for OpenSSL if we were not able to find Mozilla's NSSJeffrey Stedfast2001-09-052-60/+67 * More html stuff.Aaron Weber2001-09-053-17/+71 * Removed >>>Carlos Perelló Marín2001-09-041-1/+0 * Spell check.Carlos Perelló Marín2001-09-042-421/+554 * Credit kmarass.Aaron Weber2001-09-047-428/+462 * Added infoa about Windows not handling .psKevin Breit2001-09-042-6/+16 * Updated Hungarian translation.Andras Timar2001-09-042-645/+817 * Remove the folder from the EvolutionStorage as well as the EStorage.Peter Williams2001-09-045-13/+45 * Don't put $(srcdir) in the file path twice.Peter Williams2001-09-042-1/+6 * timezone druid iconJakub Steiner2001-09-043-0/+7 * don't call calendar_config_check_timezone_set() now, since the startupDamon Chaplin2001-09-0418-163/+470 * - additions, improvementsDirk-Jan C. Binnema2001-09-041-149/+94 * Removed addressbook/gui/widgets/alphabet.glade.Federico Mena Quintero2001-09-042-1/+4 * Fixed brokennessKevin Breit2001-09-033-7/+9 * Added info on Exchange interactionKevin Breit2001-09-032-0/+10 * Updated Slovak translation.Stanislav Visnovsky2001-09-032-732/+594 * Shut up CVS -GeorgeGeorge Lebl2001-09-031-0/+1 * Updated Polish translationChyla Zbigniew2001-09-032-119/+151 * This file is no longer needed.Chyla Zbigniew2001-09-031-355/+0 * I18n fixes (mainly making buttons on the right side less Anglocentric :-)Chyla Zbigniew2001-09-039-157/+249 * Use e_iconv_from_locale, not e_iconv_to_locale.Chyla Zbigniew2001-09-031-1/+1 * Updated French translation.Christophe Merlet2001-09-032-1411/+1086 * Strip spaces at the beginning or end as well as changing " " to " ". FixesChristopher James Lahey2001-09-021-3/+13 * Bumped the required version of gal to 0.11.99.2.Christopher James Lahey2001-09-022-1/+5 * Use e_card_get_vcard_assume_utf8 instead of e_card_get_vcard here sinceChristopher James Lahey2001-09-0222-308/+484 * Bumped the version number to 0.11.99.2 for new e_utf8 functions.Christopher James Lahey2001-09-022-54/+89 * Updated Swedish translation.Christian Rose2001-09-022-339/+423 * Updated Polish translationChyla Zbigniew2001-09-011-71/+99 * Bumped the version number to 0.111.99.1 for new e_utf8 functions.Christopher James Lahey2001-09-012-66/+154 * Rename these functions from ecn_get_text and ecn_free_text.Christopher James Lahey2001-09-019-24/+59 * changed 3 occurrences of 'Replyed' to 'replied'Damon Chaplin2001-09-012-3/+7 * updated all of the VTIMEZONE files to try to be more compatable withDamon Chaplin2001-09-01375-3652/+1025 * Fix this memmove. We've already subtracted the count from eti->rows.Christopher James Lahey2001-09-011-1/+2 * Added format for "7 PM" and equivalents. Fixes bug #7456.Federico Mena Quintero2001-09-012-4/+16 * Updated Polish translationChyla Zbigniew2001-09-012-27/+114 * Elm GUIIain Holmes2001-09-012-0/+62 * Don't convert folder name to UTF-8 manually... (setup_stock_folders): ...Chyla Zbigniew2001-09-014-19/+33 * Marked string for translation (with U_).Chyla Zbigniew2001-09-012-1/+8 * Marked strings for translation (with U_).Chyla Zbigniew2001-09-013-6/+15 * s/_/U_/Chyla Zbigniew2001-09-015-4/+23 * Use g_utf8_collate instead of g_strcasecmp for comparing names.Chyla Zbigniew2001-09-012-9/+21 * Bumped required version of GAL to 0.11.3 (for g_utf8_collate)Chyla Zbigniew2001-09-012-1/+6 * fix debugging messages so they use "" rather than NULL. Fixes bug #8559.Damon Chaplin2001-09-012-2/+8 * Updated French translation.Christophe Merlet2001-08-312-1550/+1534 * ch. virus, rm. emoticon, haiku, spam.Aaron Weber2001-08-311-51/+5 * Fix the Pine and Netscape importers. Give them a nice progress reporting GUI.Iain Holmes2001-08-319-53/+249 * Return the default folder (ie. INBOX) rather than saying we don't supportJeffrey Stedfast2001-08-312-3/+5 * revise for style. added info about calendar customizing.Aaron Weber2001-08-312-9/+63 * Check for \r in the folder name, this is an invalid char. Also take aJeffrey Stedfast2001-08-312-13/+33 * Due to the introduction of mail_folder_cache_remove(), we can no longerPeter Williams2001-08-312-38/+198 * Fixed a memory leak. (message_browser_new): Added a comment as to why ,Jeffrey Stedfast2001-08-313-21/+27 * #include pk11func.h. (ssl_bad_cert): Use CERT_GetDefaultCertDB.Jeffrey Stedfast2001-08-312-1/+7 * Instead of removing the folder from the folder cache here...Peter Williams2001-08-312-4/+12 * Updated Hungarian translation.Andras Timar2001-08-302-200/+258 * Updated Norwegian (bokmål) translation.Kjartan Maraas2001-08-302-493/+599 * Use e_select_names_model_merge to combine the selected names with anyJon Trowbridge2001-08-307-3/+97 * Paranoia. Check that name != qa->name. (quick_add_set_email): Check thatJon Trowbridge2001-08-302-10/+39 * Make sure that comp->priv->query_text isn't NULL. (Fixes bug #8195)Jon Trowbridge2001-08-302-3/+12 * This function can be re-entrant during the signal emission; Added extraJon Trowbridge2001-08-302-4/+22 * See if the set of categories changed by using the removed_categories hashFederico Mena Quintero2001-08-302-16/+91 * Importer changesIain Holmes2001-08-303-4/+69 * fix smime the same way...Jeffrey Stedfast2001-08-302-15/+34 * Special-case message/rfc822 mime parts - don't set an encoding on these,Jeffrey Stedfast2001-08-302-14/+39 * Pass in FALSE as the 'sending' arg to e_msg_composer_get_message.Jon Trowbridge2001-08-307-64/+41 * Added info about NS importing.Aaron Weber2001-08-302-1/+17 * GUIIain Holmes2001-08-302-4/+67 * in mail:Peter Williams2001-08-304-2/+10 * Toss in a call to mail_config_init () cause it might contribute to solvingPeter Williams2001-08-302-1/+8 * Rewrote this file to be...more up to date.Kevin Breit2001-08-304-130/+125 * Add progress reporting to deleting messages. Dont change the calculationNot Zed2001-08-292-2/+15 * New prototype here.Ettore Perazzoli2001-08-293-0/+40 * Initialize buf and diag_buf to NULL, hopefully this fixes the crash if theJeffrey Stedfast2001-08-292-39/+14 * Fixes bug #7879, a query may receive an update notification from theFederico Mena Quintero2001-08-295-41/+207 * Initialize buf and diag_buf to NULL, hopefully this fixes the crash if theJeffrey Stedfast2001-08-292-11/+17 * Patch to fix few 64bit issuesGeorge Lebl2001-08-295-21/+23 * Handle the case when there is no URI without crashing. Only add shortcutsEttore Perazzoli2001-08-292-6/+14 * Whoops. Double-free and FMR = bad.Peter Williams2001-08-292-2/+6 * Instead of folder_browser_factory_new_control ("", corba_shell) whenPeter Williams2001-08-292-1/+4 * Don't reveal the user's IMAP password if their server supportsPeter Williams2001-08-292-1/+9 * If the user accepts the certificate, add it to the database as a trustedJeffrey Stedfast2001-08-292-3/+32 * Make the locking more fine-grained on destruction; specifically, don'tPeter Williams2001-08-292-0/+12 * Disable interaction once the shell has quit.Peter Williams2001-08-292-0/+6 * Renamed a xref to make it work.Kevin Breit2001-08-29