Re: [Fwd: [evolution-patches] Patch for bug 311063 (mail)]



Can you give me an example where a search folder inside a search folder (or inside a regular folder) makes sense? I think this part of the UI could be much simplified by not allowing this kind of things.

Do other people have an opinion about this?

Parthasarathi Susarla wrote:
You can create search folders inside search folders. And that is more
important. 
Cheers,
partha
On Wed, 2005-09-28 at 12:13 -0700, Carsten Guenther wrote:
  
OK, I now know where the confusion is coming from. It never occurred
to me that you can create a search folder inside a real folder. Should
this be allowed? I find this very confusing, given that there is no
way to change the location of a search folder afterwards and that the
only way to specify a location is to right-click on "Search Folders".
IMHO all search folders should be listed at the top-level under
"Search Folders". I think this is still a bug (at least a big UI
issue) and my proposed patch would fix this.

Carsten

Carsten Guenther wrote: 
    
Sigh. This is so obvious I cannot understand your statement! Maybe
you just don't care but please take a minute and my bug report
again, very very carefully, look at the screenshots and try to
reproduce the steps I described in there. Or maybe someone else can,
I think a second opinion is helpful here.

Not Zed wrote: 
      
I said on the bug that it isn't a bug.

I have nothing further to add.

On Tue, 2005-09-27 at 10:38 +0530, Harish Krishnaswamy wrote:
  
        
Partha / NotZed ??

On Fri, 2005-09-23 at 10:47 -0700, Carsten Guenther wrote:
    
          
I didn't get any feedback on this, is this ok to commit (gnome-2-12
and head) ?

Carsten

Harish Krishnaswamy wrote: 
      
            
Forwarded this to the mailer guys for their attention. I shall take a
look into it but I'd prefer them to make the call.

Thanks,
harish

On Mon, 2005-09-12 at 16:09 -0700, Carsten Guenther wrote:
  
        
              
Hi Harish,

I sent this patch to evo-patches a while ago. Notzed was the only one 
that replied to it by saying that this was "by-design". This is so 
obviously broken, it can't be by design. Can you pls. take a quick look 
at this and let me know if it is ok to check this into the head and the 
gnome-2-12 branch? It is a straightforward patch.

Thanks,
Carsten
email message attachment ([evolution-patches] Patch for bug 311063
(mail))
    
          
                
-------- Forwarded Message --------
From: Carsten Guenther <Carsten Guenther scalix com>
To: evolution-patches gnome org
Subject: [evolution-patches] Patch for bug 311063 (mail)
Date: Tue, 6 Sep 2005 15:37:45 -0700

Attached bug fixes
     http://bugzilla.gnome.org/show_bug.cgi?id=311063

Basically the special-handling for vfolders was moved from
emfu_popup_new_folder_response() to em_folder_utils_create_folder, thus
opening the "Add new rule" dialog without going through the folder-tree
selection dialog.

Ok to commit to head and gnome-2-12 branch (with changelog of course)?

Carsten


plain text document attachment (311063.diff)
? 311063.diff
? Evolution-Mail-common.c
? Evolution-Mail-skels.c
? Evolution-Mail-stubs.c
? Evolution-Mail.h
? evolution-mail-2.4.schemas
? mail.error
? default/zh_CN/Makefile
? default/zh_CN/Makefile.in
Index: em-folder-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-utils.c,v
retrieving revision 1.6
diff -u -p -r1.6 em-folder-utils.c
--- em-folder-utils.c	10 Aug 2005 02:04:31 -0000	1.6
+++ em-folder-utils.c	6 Sep 2005 22:20:34 -0000
@@ -700,18 +700,8 @@ emfu_popup_new_folder_response (EMFolder
 		return;
 	}
 
-	/* HACK: we need to create vfolders using the vfolder editor */
-	if (CAMEL_IS_VEE_STORE(store)) {
-		EMVFolderRule *rule;
-
-		rule = em_vfolder_rule_new();
-		filter_rule_set_name((FilterRule *)rule, path);
-		vfolder_gui_add_rule(rule);
-		gtk_widget_destroy((GtkWidget *)emfs);
-	} else {
-		g_object_ref (emfs);
-		emfu_create_folder_real (si->store, path, new_folder_created_cb, emfs);
-	}
+	g_object_ref (emfs);
+	emfu_create_folder_real (si->store, path, new_folder_created_cb, emfs);
 
 	camel_object_unref (store);
 	camel_exception_clear (&ex);
@@ -723,13 +713,19 @@ em_folder_utils_create_folder (CamelFold
 	EMFolderTree *folder_tree;
 	EMFolderTreeModel *model;
 	GtkWidget *dialog;
+	EMVFolderRule *rule;
 
-	model = mail_component_peek_tree_model (mail_component_peek ());
-	folder_tree = (EMFolderTree *) em_folder_tree_new_with_model (model);
+	if (g_str_has_prefix (folderinfo->uri, "vfolder:")) {
+		rule = em_vfolder_rule_new();
+		vfolder_gui_add_rule(rule);
+	} else {
+		model = mail_component_peek_tree_model (mail_component_peek ());
+		folder_tree = (EMFolderTree *) em_folder_tree_new_with_model (model);
 	
-	dialog = em_folder_selector_create_new (folder_tree, 0, _("Create folder"), _("Specify where to create the folder:"));
-	if (folderinfo != NULL)
-		em_folder_selector_set_selected ((EMFolderSelector *) dialog, folderinfo->uri);
-	g_signal_connect (dialog, "response", G_CALLBACK (emfu_popup_new_folder_response), folder_tree);
-	gtk_widget_show (dialog);
+		dialog = em_folder_selector_create_new (folder_tree, 0, _("Create folder"), _("Specify where to create the folder:"));
+		if (folderinfo != NULL)
+			em_folder_selector_set_selected ((EMFolderSelector *) dialog, folderinfo->uri);
+		g_signal_connect (dialog, "response", G_CALLBACK (emfu_popup_new_folder_response), folder_tree);
+		gtk_widget_show (dialog);
+	}
 }

_______________________________________________
Evolution-patches mailing list
Evolution-patches gnome org
http://mail.gnome.org/mailman/listinfo/evolution-patches
      
            
                  
          
              
  
        
____________________________________________________________________

_______________________________________________
Evolution-patches mailing list
Evolution-patches gnome org
http://mail.gnome.org/mailman/listinfo/evolution-patches
  
      
_______________________________________________
Evolution-patches mailing list
Evolution-patches gnome org
http://mail.gnome.org/mailman/listinfo/evolution-patches
    
_______________________________________________
Evolution-patches mailing list
Evolution-patches gnome org
http://mail.gnome.org/mailman/listinfo/evolution-patches
  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]