diff options
author | JP Rosevear <jpr@ximian.com> | 2003-12-03 23:36:41 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-12-03 23:36:41 +0800 |
commit | e33d1556d63dce0088e60d16d5421df9bc39a0d1 (patch) | |
tree | c7dc44e6730555ede51511f53f0e7b6439d2d4ef | |
parent | 09c5eeed505f4221e96abab1c1f954542e7401c8 (diff) | |
download | gsoc2013-evolution-e33d1556d63dce0088e60d16d5421df9bc39a0d1.tar.gz gsoc2013-evolution-e33d1556d63dce0088e60d16d5421df9bc39a0d1.tar.zst gsoc2013-evolution-e33d1556d63dce0088e60d16d5421df9bc39a0d1.zip |
save the state immediately if there is a timeout set
2003-12-03 JP Rosevear <jpr@ximian.com>
* em-folder-tree.c (em_folder_tree_destroy): save the state
immediately if there is a timeout set
(em_folder_tree_save_state): be true GSourceFunc and just return
FALSE to remove the source
svn path=/trunk/; revision=23594
-rw-r--r-- | mail/em-folder-tree.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index ef8b486a1b..73e4430372 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -122,7 +122,7 @@ static void em_folder_tree_init (EMFolderTree *emft); static void em_folder_tree_destroy (GtkObject *obj); static void em_folder_tree_finalize (GObject *obj); -static void em_folder_tree_save_state (EMFolderTree *emft); +static gboolean em_folder_tree_save_state (EMFolderTree *emft); static void em_folder_tree_queue_save_state (EMFolderTree *emft); static void tree_row_collapsed (GtkTreeView *treeview, GtkTreeIter *root, GtkTreePath *path, EMFolderTree *emft); @@ -312,7 +312,8 @@ em_folder_tree_finalize (GObject *obj) static void em_folder_tree_destroy (GtkObject *obj) { - struct _EMFolderTreePrivate *priv = ((EMFolderTree *) obj)->priv; + EMFolderTree *emft = (EMFolderTree *) obj; + struct _EMFolderTreePrivate *priv = emft->priv; if (priv->loading_row_id != 0) { g_signal_handler_disconnect (priv->model, priv->loading_row_id); @@ -1676,7 +1677,7 @@ em_folder_tree_save_state (EMFolderTree *emft) em_folder_tree_model_save_expanded (priv->model); - return FALSE + return FALSE; } |