[evolution-patches] Please review my patch for bug #46018
- From: Antonio Xu <antonio xu sun com>
- To: evolution-patches ximian com
- Cc: Jeffrey Stedfast <fejj ximian com>
- Subject: [evolution-patches] Please review my patch for bug #46018
- Date: Fri, 11 Jul 2003 00:45:45 +0800
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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]