aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-02-16 20:14:49 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:35 +0800
commit65bc58546c359048a20af6c98351015aa232085e (patch)
tree89d86b28e384390be0b4554b47a6f7a03de0a425 /modules/mail
parent90f59dca71e40ae909c58fc97ed79f851947f39b (diff)
downloadgsoc2013-evolution-65bc58546c359048a20af6c98351015aa232085e.tar.gz
gsoc2013-evolution-65bc58546c359048a20af6c98351015aa232085e.tar.zst
gsoc2013-evolution-65bc58546c359048a20af6c98351015aa232085e.zip
Bug #638333 - Critical warning when invoking File->New->Mail Folder
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-backend.c15
-rw-r--r--modules/mail/e-mail-shell-view-actions.c2
2 files changed, 14 insertions, 3 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index c7bba4944a..601b8e0c25 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -108,24 +108,35 @@ action_mail_folder_new_cb (GtkAction *action,
{
EMFolderTree *folder_tree = NULL;
EMailShellSidebar *mail_shell_sidebar;
+ EMailSession *mail_session;
EShellSidebar *shell_sidebar;
EShellView *shell_view;
const gchar *view_name;
/* Take care not to unnecessarily load the mail shell view. */
view_name = e_shell_window_get_active_view (shell_window);
- if (g_strcmp0 (view_name, BACKEND_NAME) != 0)
+ if (g_strcmp0 (view_name, BACKEND_NAME) != 0) {
+ EShellBackend *mail_backend;
+
+ mail_backend = e_shell_get_backend_by_name (e_shell_window_get_shell (shell_window), BACKEND_NAME);
+ g_return_if_fail (mail_backend != NULL);
+
+ mail_session = e_mail_backend_get_session (E_MAIL_BACKEND (mail_backend));
+ g_return_if_fail (mail_session != NULL);
+
goto exit;
+ }
shell_view = e_shell_window_get_shell_view (shell_window, view_name);
shell_sidebar = e_shell_view_get_shell_sidebar (shell_view);
mail_shell_sidebar = E_MAIL_SHELL_SIDEBAR (shell_sidebar);
folder_tree = e_mail_shell_sidebar_get_folder_tree (mail_shell_sidebar);
+ mail_session = em_folder_tree_get_session (folder_tree);
exit:
em_folder_utils_create_folder (
- NULL, folder_tree, GTK_WINDOW (shell_window));
+ NULL, folder_tree, mail_session, GTK_WINDOW (shell_window));
}
static void
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 1665b8e8ce..e0a445abdd 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -394,7 +394,7 @@ action_mail_folder_new_cb (GtkAction *action,
g_return_if_fail (folder_info != NULL);
em_folder_utils_create_folder (
- folder_info, folder_tree, GTK_WINDOW (shell_window));
+ folder_info, folder_tree, em_folder_tree_get_session (folder_tree), GTK_WINDOW (shell_window));
camel_folder_info_free (folder_info);
}
eBSD.org> 1998-08-19 12:16:15 +0800 Add MAINTAINER (ports@FreeBSD.ORG). Reorder variable.' href='/~lantw44/cgit/freebsd-ports-gnome/commit/ftp/moxftp/Makefile?id=48382268c4715938223d89bd197f296469d9cb4a'>48382268c471
369a0094c3ab





c478dd0c2424
e21411799f2d




369a0094c3ab
e21411799f2d


369a0094c3ab
5d179de3a0e2
8efcf00b2e58

e21411799f2d
5d179de3a0e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45




                                              
           
 

                          
                   


                                                                     
                      
 

                                 

                   
                   
                                 
                                                                           
      





                                                                               
                                               




                       
                      


                  
 
             

                                                                                          
 
                      
# New ports collection makefile for:    moxftp
# Version required: 2.2
# Date created:     19 December 1994
# Whom:         janek
#
# $FreeBSD$
#

DISTNAME=   moxftp-2.2
CATEGORIES= ftp
MASTER_SITES=   ftp://metalab.unc.edu/pub/X11/contrib/applications/ \
        ftp://ftp.inria.fr/X/contrib-R5/applications/ \
        ftp://ftp.tk.mesh.ad.jp/pub/X/contrib/applications/
EXTRACT_SUFX=   .tar.Z

MAINTAINER= ports@FreeBSD.ORG

REQUIRES_MOTIF= yes
GNU_CONFIGURE=  yes
USE_X_PREFIX=   yes
MAN1=       ${PROGRAM_NAME}.1
PLIST_SUB=  PROGRAM_NAME=${PROGRAM_NAME} RESOURCE_NAME=${RESOURCE_NAME}
STRIP=

# CONFIGURE_ARGS set to :
#   motif - for motif version, (not tested!!!)
#   athena - for athena version,
#   athena3d - for athena 3 d version, (you should have installed Xaw3d!!!)
#   openlook - for open look version - (not tested!!!)
# If you use athena3d uncomment LIB_DEPENDS !!!
.if defined(HAVE_MOTIF)
CONFIGURE_ARGS= motif
PROGRAM_NAME=mftp
RESOURCE_NAME=Mftp
.else
CONFIGURE_ARGS= athena
PROGRAM_NAME=xftp
RESOURCE_NAME=Xftp
.endif

post-install:
    @strip ${PREFIX}/bin/${PROGRAM_NAME}
    @${INSTALL_MAN} ${WRKSRC}/${PROGRAM_NAME}.man ${PREFIX}/man/man1/${PROGRAM_NAME}.1

.include <bsd.port.mk>