aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2006-09-28 16:48:15 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-09-28 16:48:15 +0800
commit2b5562aee01b4db6030199deef62ea97bb573def (patch)
treed244f694bf806e139365db224af0a7c72ab55ceb /shell/e-shell-window.c
parent0fa1dbec3cbb6cc5b16a7dcbf94620eecbdf2e96 (diff)
downloadgsoc2013-evolution-2b5562aee01b4db6030199deef62ea97bb573def.tar
gsoc2013-evolution-2b5562aee01b4db6030199deef62ea97bb573def.tar.gz
gsoc2013-evolution-2b5562aee01b4db6030199deef62ea97bb573def.tar.bz2
gsoc2013-evolution-2b5562aee01b4db6030199deef62ea97bb573def.tar.lz
gsoc2013-evolution-2b5562aee01b4db6030199deef62ea97bb573def.tar.xz
gsoc2013-evolution-2b5562aee01b4db6030199deef62ea97bb573def.tar.zst
gsoc2013-evolution-2b5562aee01b4db6030199deef62ea97bb573def.zip
** Fix for bug #343331
2006-09-28 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #343331 * e-shell-window.c: (impl_dispose): Remove the timer which seem to get activated after we destroy. svn path=/trunk/; revision=32817
Diffstat (limited to 'shell/e-shell-window.c')
-rw-r--r--shell/e-shell-window.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c
index d5773baabd..a133985461 100644
--- a/shell/e-shell-window.c
+++ b/shell/e-shell-window.c
@@ -146,6 +146,7 @@ static GdkBitmap *offline_mask = NULL;
static GdkPixmap *online_pixmap = NULL;
static GdkBitmap *online_mask = NULL;
+static gboolean store_window_size (GtkWidget* widget);
/* ComponentView handling. */
@@ -834,7 +835,8 @@ setup_widgets (EShellWindow *window)
static void
impl_dispose (GObject *object)
{
- EShellWindowPrivate *priv = E_SHELL_WINDOW (object)->priv;
+ EShellWindow *self = E_SHELL_WINDOW (object);
+ EShellWindowPrivate *priv = self->priv;
if (priv->shell != NULL) {
g_object_remove_weak_pointer (G_OBJECT (priv->shell), (void **) &priv->shell);
@@ -851,6 +853,14 @@ impl_dispose (GObject *object)
priv->tooltips = NULL;
}
+ if (priv->store_window_size_timer) {
+ g_source_remove (priv->store_window_size_timer);
+ self->priv->store_window_size_timer = 0;
+
+ /* There was a timer. Let us store the settings.*/
+ store_window_size (self);
+ }
+
#ifdef NM_SUPPORT_GLIB
e_shell_nm_glib_dispose (E_SHELL_WINDOW (object));
#elif NM_SUPPORT