Re: [evolution-patches] Please review my patch for bug #46018



this is wrong. you just need to change the logic so that paste is always
accessable in the menus (ie, in folder-browser-ui.c or some such, just
make it so that its mask isn't SINGLE_SELECTION or whatever it is)

Jeff

On Thu, 2003-07-10 at 12:45, Antonio Xu wrote:
> Hello All,
>       Could you review my patch for bug #46018? My patch can solve this 
> problem, but I don't think it is a good solution.
>       Bug Summary:cannot paste cut/copied mail into empty folder
>       Bug Link:http://bugzilla.ximian.com/createattachment.cgi?id=46018
> 
> Thanks
> Antonio Xu
> 
> 
> 
> ______________________________________________________________________
> Index: mail/folder-browser.c
> ===================================================================
> RCS file: /cvs/gnome/evolution/mail/folder-browser.c,v
> retrieving revision 1.347
> diff -u -r1.347 folder-browser.c
> --- mail/folder-browser.c	23 Jun 2003 16:56:26 -0000	1.347
> +++ mail/folder-browser.c	10 Jul 2003 15:46:00 -0000
> @@ -119,6 +119,8 @@
>  
>  static GdkAtom clipboard_atom = GDK_NONE;
>  
> +static gboolean have_copy = FALSE;
> +
>  static GtkTableClass *parent_class = NULL;
>  
>  enum {
> @@ -726,6 +728,8 @@
>  	g_ptr_array_free (uids, TRUE);
>  	
>  	fb->clipboard_selection = bytes;
> +
> +	have_copy = TRUE;
>  	
>  	gtk_selection_owner_set (fb->invisible, clipboard_atom, GDK_CURRENT_TIME);
>  }
> @@ -933,6 +937,9 @@
>  {
>  	g_return_if_fail (IS_FOLDER_BROWSER (fb));
>  	
> +	if (have_copy)
> +		bonobo_ui_component_set_prop (fb->uicomp, "/commands/EditPaste",
> +					      "sensitive", "1", NULL);
>  	if (fb->folder) {
>  		mail_refresh_folder (fb->folder, NULL, NULL);
>  	} else if (fb->uri && fb->get_id == -1) {
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com




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