aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/main.c48
2 files changed, 34 insertions, 20 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index fb3a22e426..00c4cf0d92 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,11 @@
2001-10-05 Ettore Perazzoli <ettore@ximian.com>
+ * main.c (quit_box_new): Also `gdk_flush()'.
+ (idle_cb): If the user doesn't specify at least one `evolution:'
+ URI, restore from the settings. [Fixes #6093.]
+
+2001-10-05 Ettore Perazzoli <ettore@ximian.com>
+
* evolution-shell-component.c: New member `ping_timeout_id' in
`EvolutionShellComponentPrivate'.
(setup_owner_pinging): New helper function.
diff --git a/shell/main.c b/shell/main.c
index 2e6d95e612..5260ea5696 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -53,6 +53,7 @@
#include "e-util/e-gtk-utils.h"
+#include "e-shell-constants.h"
#include "e-setup.h"
#include "e-shell.h"
@@ -94,6 +95,7 @@ quit_box_new (void)
/* For some reason, the window fails to update without this
sometimes. */
gtk_widget_queue_draw (window);
+ gdk_flush ();
while (gtk_events_pending ())
gtk_main_iteration ();
@@ -203,7 +205,8 @@ idle_cb (void *data)
GNOME_Evolution_Shell corba_shell;
CORBA_Environment ev;
EShellConstructResult result;
- gboolean restored;
+ GSList *p;
+ gboolean have_evolution_uri;
CORBA_exception_init (&ev);
@@ -219,11 +222,6 @@ idle_cb (void *data)
gtk_signal_connect (GTK_OBJECT (shell), "destroy",
GTK_SIGNAL_FUNC (destroy_cb), NULL);
- if (uri_list == NULL)
- restored = e_shell_restore_from_settings (shell);
- else
- restored = FALSE;
-
if (!getenv ("EVOLVE_ME_HARDER"))
development_warning ();
@@ -240,8 +238,6 @@ idle_cb (void *data)
gtk_main_quit ();
return FALSE;
}
-
- restored = FALSE;
break;
default:
@@ -254,28 +250,40 @@ idle_cb (void *data)
}
- if (! restored && uri_list == NULL) {
- const char *uri = E_SHELL_VIEW_DEFAULT_URI;
+ have_evolution_uri = FALSE;
+ for (p = uri_list; p != NULL; p = p->next) {
+ const char *uri;
- GNOME_Evolution_Shell_handleURI (corba_shell, uri, &ev);
- if (ev._major != CORBA_NO_EXCEPTION)
- g_warning ("CORBA exception %s when requesting URI -- %s", ev._repo_id, uri);
- } else {
- GSList *p;
-
- for (p = uri_list; p != NULL; p = p->next) {
- char *uri;
+ uri = (const char *) p->data;
+ if (strncmp (uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0)
+ have_evolution_uri = TRUE;
+ }
- uri = (char *) p->data;
+ if (! have_evolution_uri) {
+ if (! e_shell_restore_from_settings (shell)) {
+ const char *uri;
+ uri = E_SHELL_VIEW_DEFAULT_URI;
GNOME_Evolution_Shell_handleURI (corba_shell, uri, &ev);
if (ev._major != CORBA_NO_EXCEPTION)
g_warning ("CORBA exception %s when requesting URI -- %s", ev._repo_id, uri);
}
+ }
+
+ for (p = uri_list; p != NULL; p = p->next) {
+ const char *uri;
- g_slist_free (uri_list);
+ uri = (const char *) p->data;
+ GNOME_Evolution_Shell_handleURI (corba_shell, uri, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION)
+ g_warning ("CORBA exception %s when requesting URI -- %s", ev._repo_id, uri);
+
+ if (strncmp (uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0)
+ have_evolution_uri = TRUE;
}
+ g_slist_free (uri_list);
+
CORBA_Object_release (corba_shell, &ev);
CORBA_exception_free (&ev);
class='deletions'>-8/+10 * -Fix the build on FreeBSD 6.x and below.mezz2008-03-271-2/+1 * - Restore correct sorting orderdanfe2008-03-271-2/+2 * Lua scripting support is rather common these days.danfe2008-03-271-0/+1 * - Fix plistgahr2008-03-273-206/+217 * - update to 3.1.2db2008-03-2715-608/+248 * - Force commit to note the correct version. It is 0.11.1, not 0.11.2lme2008-03-270-0/+0 * - Update to 0.11.2lme2008-03-272-5/+4 * Fix the build with new glib 2.16.mezz2008-03-271-0/+11 * Remove a dead linkdelphij2008-03-271-1/+0 * Update to 2.3.3delphij2008-03-273-59/+71 * Fix the plist, bump the PORTREVISION.mezz2008-03-272-1/+3 * Fix the plist, bump the PORTREVISION on glibmm-reference.mezz2008-03-273-3/+10 * Document buffer overflow in silc-client and silc-server.wxs2008-03-271-0/+38 * Unbreak on 7.x and later.fjoe2008-03-271-8/+3 * libdiscid --> ports/audio/libdiscidmiwi2008-03-271-0/+1 * libdiscid is a C library for creating MusicBrainz DiscIDs from audio CDs. Itmiwi2008-03-275-0/+43 * p5-MIME-Lite-TT-HTML --> ports/mail/p5-MIME-Lite-TT-HTMLmiwi2008-03-271-0/+1 * This module provide easy interface to make MIME::Lite object with htmlmiwi2008-03-275-0/+45 * p5-MIME-Lite-TT --> ports/mail/p5-MIME-Lite-TTmiwi2008-03-271-0/+1 * MIME::Lite::TT is the wrapper of MIME::Lite which enabled Template::Toolkitmiwi2008-03-275-0/+45 * - Update to 1.1.1miwi2008-03-272-12/+12 * glsfcave --> ports/games/glsfcavemiwi2008-03-271-0/+1 * GLSFcave is a port of SunFlat's SFcave for UNIX/OpenGL. SFcave ismiwi2008-03-274-0/+56 * * Pipe is not slash. *sigh*koitsu2008-03-271-1/+1 * * Maintainer freebsd@jdc.parodius.com --> koitsu@FreeBSD.org (I'm both)koitsu2008-03-273-5/+5 * - Update to 3.0.5.0miwi2008-03-274-8/+8 * - Update to 1.1.2miwi2008-03-272-4/+4 * - Remove USE_XLIB in favor of USE_XORGmiwi2008-03-271-3/+3 * - Remove USE_X_PREFIXmiwi2008-03-261-3/+2 * - Force commitmiwi2008-03-260-0/+0 * * Depend on `makedepend' in a correct waymiwi2008-03-261-3/+2 * - Update to 0.76miwi2008-03-264-36/+77 * - Update to 0.4.3miwi2008-03-262-6/+10 * - Update to 0.5.901miwi2008-03-263-12/+18 * afflib --> ports/sysutils/afflibmiwi2008-03-261-0/+1 * The Advanced Forensics Format is an open and extensible file formatdesignedmiwi2008-03-266-0/+72 * - Update to 1.9.3jadawin2008-03-264-9/+126 * p5-WWW-Spinn3r --> ports/www/p5-WWW-Spinn3rmiwi2008-03-261-0/+1 * WWW::Spinn3r is an iterative interface to the Spinn3r API. The Spinn3rmiwi2008-03-265-0/+44 * remove unused audio/flac dependencynaddy2008-03-261-2/+2 * - Update to 0.9.9.5.trasz2008-03-262-4/+4 * linux_base-f8 -> ports/emulators/linux_base-f8bsam2008-03-261-0/+1 * Welcome to the new emulation/linux_base-f8 port.bsam2008-03-2622-2140/+2333 * - Update to 2008.03.22rafan2008-03-263-48/+41 * libnotifymm --> ports/devel/libnotifymmahze2008-03-261-0/+1 * - Update to 1.7.3miwi2008-03-262-4/+3 * Add libnotifymmahze2008-03-265-0/+53 * - Update to 0.9miwi2008-03-265-20/+51 * - Update to 2.1.1miwi2008-03-264-6/+7 * p5-HTML-CTPP2 --> ports/textproc/p5-HTML-CTPP2miwi2008-03-261-0/+1 * Templates like perl module HTML::Templatemiwi2008-03-265-0/+41 * - Update to 0.8.1miwi2008-03-264-101/+84 * - Update to 1.1.4miwi2008-03-263-11/+61 * Only download patchset if needed.ehaupt2008-03-261-1/+4 * Update to 1.4.13ahze2008-03-263-5/+8 * Update to 2.22.1ahze2008-03-262-4/+4 * Update to 20080323 snapshot.ale2008-03-262-7/+7 * - Fix build with slave portsmiwi2008-03-261-3/+3 * Take jkoshy's commit bit in for safe keepingerwin2008-03-261-1/+0 * - Updated to 0.29;clsung2008-03-262-4/+4 * - Chase database/namazu2 shlib version bumpmiwi2008-03-261-2/+2 * - Add missing dependensmiwi2008-03-264-4/+8 * - Update to 13.4sat2008-03-262-4/+4 * - Update to 1.6.2beech2008-03-263-6/+9 * - Update to 2.3.0.trasz2008-03-265-25/+26 * - use CPAN macroleeym2008-03-261-9/+13 * - fix conditional dependency of dual-life modulesleeym2008-03-261-8/+16 * Fix the build with new glib 2.16.mezz2008-03-262-0/+8 * py-GinGin --> ports/www/py-GinGinrafan2008-03-261-0/+1 * GinGin is a hybrid of WIKI and BLOG. Users of GinGin can setup tags forrafan2008-03-265-0/+160 * py-mez_xml --> ports/devel/py-mez_xmlrafan2008-03-261-0/+1 * mez_xml is a templte engine. It generates a Python template module for arafan2008-03-265-0/+47 * p5-Net-Hiveminder --> ports/net/p5-Net-Hiveminderclsung2008-03-261-0/+1 * Hiveminder is a collaborate todo list organizer, built with Jifty.clsung2008-03-265-0/+50 * Add a delay loop which keeps GDM from starting until the gettys have beenmarcus2008-03-262-2/+23 * Add a missing dependency on gtksourceview2.marcus2008-03-261-1/+2 * Fix build on 6.X.marcus2008-03-261-3/+11 * Add a missing BUILD_DEPENDS on libxslt.marcus2008-03-261-1/+2 * Add a missing manpage.marcus2008-03-261-1/+3 * Add a missing dependency on gtksourceview2.marcus2008-03-261-2/+3 * Fix the build with the new glib20.marcus2008-03-261-0/+4 * - Move variables to make portlint happier.kuriyama2008-03-261-2/+1 * - Use CPAN macro.kuriyama2008-03-261-4/+3 * - Switch to USE_XORGrafan2008-03-261-1/+2 * - Update to 5.72miwi2008-03-263-5/+4 * Fix build by changing the file the port depends onhq2008-03-261-1/+1 * - Update to 0.0.18miwi2008-03-263-5/+5 * - Update to 0.3.3.miwi2008-03-263-5/+12 * - Update to 1.1.1miwi2008-03-264-8/+8 * - Update to 2.5.1miwi2008-03-265-108/+16 * - Update to 0.25miwi2008-03-262-4/+4 * - Update to 1.3.0miwi2008-03-269-29/+57 * - Update to 1.1.6miwi2008-03-262-4/+4 * - USE_GLmiwi2008-03-261-3/+2 * - Update to4.4miwi2008-03-262-4/+4 * - Update to 1.0.10miwi2008-03-263-9/+7 * - Update to 1.2.0miwi2008-03-264-10/+10 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-26212-360/+199 * Repocopy linux_base-f7 -> linux_base-f8 is completed.bsam2008-03-260-0/+0 * - Add xext, xfixes, xi, xrandr, sm to USE_XORGbeech2008-03-261-1/+1 * - Add depends for xpm and xv to USE_XORGbeech2008-03-261-1/+1 * - Add depend for libSM to USE_XORGbeech2008-03-261-1/+1 * - Fix buildmiwi2008-03-261-2/+2 * Update to 20080320:stefan2008-03-263-26/+101 * - Fix hpacucli start.lippe2008-03-262-2/+2 * - Upgrade to 1.8.0.lippe2008-03-264-12/+19 * Sync overlays with configure script, while I'm there, also sync theredelphij2008-03-261-9/+19 * Update to 0.74mat2008-03-263-7/+7 * Update to build 1015.jkim2008-03-262-4/+4 * Update to 2.21mat2008-03-263-18/+16 * OPTIONSify [1]oliver2008-03-262-9/+19 * - Fix buildmiwi2008-03-261-2/+2 * update to 4.3.1oliver2008-03-262-5/+4 * - This will install one extra file when it detects Python, so make Python anpav2008-03-262-1/+3 * Fix plistahze2008-03-262-130/+60 * libgda3:kwm2008-03-268-12/+7 * - Correct glib dependencypav2008-03-251-2/+3 * Update to 0.1.3ahze2008-03-253-5/+8 * Sort plist to fix plistahze2008-03-252-1/+2 * - Update to 5.38pav2008-03-258-54/+48 * - Fix empty directory creation in packagepav2008-03-252-1/+2 * Update to 0.9.7ahze2008-03-252-8/+6 * - Add libbonobo dependency, it's no longer assumedpav2008-03-251-1/+1 * Update to 0.7.6ahze2008-03-251-2/+0 * Fix plistahze2008-03-254-1/+5 * - Update to 3.54tabthorpe2008-03-253-4/+13 * Depends updates for GNOME 2.22ahze2008-03-251-2/+2 * Use PKGNAMESUFFIX:=${PKGNAMESUFFIX}-reference instead of PORTNAME:=${PORTNAME...ahze2008-03-251-1/+1 * - Fix plistpav2008-03-254-2/+4 * Update to 1.053ahze2008-03-253-4/+15 * - Remove reference to X_CLIENTS_PORT and X11BASErafan2008-03-252-9/+10 * Add desktop-file-utils to BUILD_DEPENDS to fix installahze2008-03-251-1/+2 * - Distfile rerolled for a unicode fixahze2008-03-252-3/+4 * Update to 0.0.8ahze2008-03-254-15/+17 * Make gcc 4 happy. Thanks for the patch from Jeremie.ambrisko2008-03-251-0/+90 * Fix plist in epiphany-webkitahze2008-03-253-4/+5 * Fix build for GNOME 2.22ahze2008-03-251-2/+2 * Fix fetch of x11/gnome-panel-referenceahze2008-03-251-0/+1 * - fix dependencyleeym2008-03-251-7/+15 * - Fix buildmiwi2008-03-252-2/+4 * - update to 0.3.3dinoex2008-03-252-9/+7 * Update to 1.4.0.knu2008-03-252-7/+13 * - Update to 0.7.0.b1330beech2008-03-253-11/+12 * Update to 0.07lth2008-03-252-4/+4 * Adjust MASTER_SITES to an other server of mineitetcu2008-03-2512-18/+13 * Update to 0.31lth2008-03-252-4/+4 * Update to 3.8lth2008-03-253-5/+7 * - adjust MASTER_SITES to an other server of mineitetcu2008-03-251-2/+2 * Update to 2.14lth2008-03-252-4/+4 * - Adjust MASTER_SITES to an other server of mineitetcu2008-03-251-2/+2 * Remove extra '\'itetcu2008-03-251-1/+1 * Adjust MASTER_SITES to an other server of mineitetcu2008-03-254-9/+6 * Write MASTER_STIES path right this time.itetcu2008-03-252-2/+2 * Adjust MASTER_SITES to an other server of mine, since the old one will be goneitetcu2008-03-251-2/+2 * - Update to 0.6.1beech2008-03-254-132/+171 * Adjust MASTER_SITES to an other server of mine, since the old one will be goneitetcu2008-03-251-1/+1 * - Update to 1.3.1jadawin2008-03-252-6/+5 * siteatschool --> ports/www/siteatschoolbeech2008-03-251-0/+1 * - New port siteatschool-2.4.10beech2008-03-256-0/+1908 * remove duplicate entriesedwin2008-03-251-2/+0 * add SIZE, comment NO_SIZEedwin2008-03-252-1/+2 * remove duplicates for gcc-objc-4.2.1.tar.bz2edwin2008-03-251-3/+0 * add SHA256 for check-0.9.5.tar.gzedwin2008-03-251-0/+1 * Fix SIZE line for pg-8111-icu-xx-2008-02-19.diff.gzedwin2008-03-251-1/+1 * fix SIZE for postgresql/pg-8015-icu-xx-2008-01-08.diff.gzedwin2008-03-251-1/+1 * remote stray entryedwin2008-03-251-1/+0 * add SHA256 checksums and reformat Makefileedwin2008-03-252-20/+31 * Disable the libarchive module on versions of FreeBSD that have an oldermarcus2008-03-252-2/+9 * Add p5-JSON1.kuriyama2008-03-251-0/+1 * - Repository copy from p5-JSON to p5-JSON1.kuriyama2008-03-255-26/+22 * fastest_sites --> ports/ports-mgmt/fastest_siteswxs2008-03-251-0/+1 * Sort every mirror list in bsd.sites.mk.wxs2008-03-254-0/+43 * Add note about possible problems when fetching from behind a proxy.wxs2008-03-251-0/+6 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-25