aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-02 10:26:45 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-02 10:26:45 +0800
commitc29d3eb6f8827d937002bce1b93c27bf635a8b21 (patch)
tree7a47b9eca22dfe4600a9868036b6fc69611442b8 /shell/main.c
parent10639cdca92f3225f2c246289402677d5af16755 (diff)
downloadgsoc2013-evolution-c29d3eb6f8827d937002bce1b93c27bf635a8b21.tar.gz
gsoc2013-evolution-c29d3eb6f8827d937002bce1b93c27bf635a8b21.tar.zst
gsoc2013-evolution-c29d3eb6f8827d937002bce1b93c27bf635a8b21.zip
Make the close button on the shell view exit Evolution cleanly. Not a
real fix, but at least it makes it work correctly for the current setup that only allows one view. svn path=/trunk/; revision=3364
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/shell/main.c b/shell/main.c
index 407abaebc5..c4d8735eb9 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -140,11 +140,25 @@ development_warning ()
gnome_dialog_run (GNOME_DIALOG (warning_dialog));
gtk_object_destroy (GTK_OBJECT (warning_dialog));
-}
+}
+
+static void
+view_delete_event_cb (GtkWidget *widget,
+ GdkEventAny *event,
+ void *data)
+{
+ EShell *shell;
+
+ shell = E_SHELL (data);
+
+ gtk_widget_destroy (widget);
+ e_shell_quit (shell);
+}
static gint
idle_cb (gpointer data)
{
+ GtkWidget *view;
char *evolution_directory;
evolution_directory = (char *) data;
@@ -163,7 +177,9 @@ idle_cb (gpointer data)
gtk_signal_connect (GTK_OBJECT (shell), "destroy",
GTK_SIGNAL_FUNC (destroy_cb), NULL);
- e_shell_new_view (shell, STARTUP_URI);
+ view = e_shell_new_view (shell, STARTUP_URI);
+ gtk_signal_connect (GTK_OBJECT (view), "delete_event",
+ GTK_SIGNAL_FUNC (view_delete_event_cb), shell);
if (!getenv ("EVOLVE_ME_HARDER"))
development_warning ();
mat2018-01-091-73/+71 * Remove MPL (without version) licensedbaio2017-11-041-3/+0 * Remove WANT_GNOME and HAVE_GNOME.mat2017-10-121-1/+2 * Introduce versions of the Mozilla Public License (MPL)dbaio2017-07-271-0/+3 * Make ninja opt-out in cmake.mktcberner2017-06-261-1/+2 * Remove the USE_OPENSSL compatibility shims.mat2017-03-151-2/+3 * USE_RCORDER has been deprecated and unused for a long time.mat2017-03-141-1/+2 * Revert r429298 it has some unexpected side effects which I do not have time tobapt2016-12-251-2/+2 * Make the ports infrastructure accept at least 3 level portsbapt2016-12-241-2/+2 * Remove obsolete entry.mat2016-10-041-4/+0 * - Add developer warning about LICENSE not set by a portamdmi32016-09-091-0/+2 * Move USE_BDB and PLIST_DIRSTRY to the unsupported section, all the portsmat2016-08-171-3/+3 * Move USE_PHPEXT, USE_PHP_BUILD and USE_ZENDEXT to unsupported, now thatmat2016-06-281-4/+4 * USEify USES=php.mat2016-06-281-1/+13 * Replace bsd.openssl.mk with USES=sslmat2016-06-271-1/+3 * Improve gem.mkswills2016-04-281-0/+8 * Move MySQL support from bsd.databases.mk to Uses/mysql.mk.mat2016-04-261-1/+3 * Move USE_BDB support from bsd.databases.mk to its own file.mat2016-04-261-1/+2 * Remove USE_FIREBIRD from bsd.databases.mk, replaced by USES=firebird.mat2016-04-261-3/+2 * Remove USE_SQLITE from bsd.databases.mk, replaced by USES=sqlite.mat2016-04-261-2/+2 * USE_RC_SUBR=yes has not done anything for a long time, remove it frommat2016-04-141-0/+4 * Introduce 2 new USES: sqlite and firebirdbapt2016-01-111-1/+4 * Remove support for WANT_SDL/HAVE_SDL knobsamdmi32015-11-091-0/+4 * Add PLIST_DIRSTRY deprecation to sanity check (forgot to add it before)bapt2015-10-111-1/+2 * Add a new sanity check for knobs not needed anymorebapt2015-09-171-0/+8 * Remove UNIQUENAME and LATEST_LINK.mat2015-08-171-1/+4 * Convert code in bsd.port.mk for USE_GHOSTSCRIPT* to USES=ghostscript.kwm2015-07-171-0/+4 * Remove NEED_ROOT, the last customer has been modified to be able to properlybapt2015-06-051-2/+2 * Remove GH_COMMIT support.mat2015-05-211-1/+1 * Mark NEED_ROOT as deprecated, It was a wrong idea as people are abusing it.bapt2015-05-041-1/+2 * Mark USE_AUTOTOOLS deprecated and remove support for libtoolize.tijl2015-04-201-1/+2 * The CATEGORY warning should be dev-only.bdrewery2015-04-151-1/+1 * Rework change from r383665 for CATEGORY validation so it does not show abdrewery2015-04-151-1/+1 * Follow-up the check added in r383191 for validating the first CATEGORY so itbdrewery2015-04-101-0/+4 * Remove last traces of USE_PGSQLbapt2015-04-071-1/+2 * USE_BZIP2 and USE_XZ are not used anymore in the ports tree mark them asbapt2015-04-071-2/+2 * Re-enable and rework check added in r370464 to validate the first CATEGORYbdrewery2015-04-041-8/+3 * These lines are being expanded badly. Fix syntax error.bdrewery2015-03-201-1/+1 * Fix order of change in r381706.bdrewery2015-03-201-1/+1 * Add a sanity check for deprecating the old USE_GITHUB syntax.bdrewery2015-03-201-0/+4 * - Make LIB_DEPENDS error more usefulzi2015-03-051-1/+1 * - Remove deprecated USE_KDE4=kdehiermakc2015-02-201-4/+0 * - Remove support for deprecated python bits from the portsmva2015-01-081-17/+9 * Final removal of WITH_NEW_XORGdumbbell2014-12-231-0/+8 * KDE/FreeBSD team presents KDE SC 4.14.2 and KDE Workspace 4.11.13!makc2014-10-19