[evolution-patches] Patch to change icon for "sent" folder
- From: "Pasupathilingam Sankarasivasubramanian" <psankar novell com>
- To: <evolution-patches gnome org>
- Subject: [evolution-patches] Patch to change icon for "sent" folder
- Date: Thu, 15 Sep 2005 05:45:55 -0600
Hi,
Attached with this mail is the patches to use the gnome stock icon for
"sent" folder.
Fixes http://bugzilla.gnome.org/show_bug.cgi?id=257321.
Please review.
Thanks,
Sankar
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/ChangeLog,v
retrieving revision 1.2476
diff -u -p -r1.2476 ChangeLog
--- ChangeLog 12 Sep 2005 09:49:38 -0000 1.2476
+++ ChangeLog 15 Sep 2005 11:38:40 -0000
@@ -1,3 +1,9 @@
+2005-09-15 Sankar P <psankar novell com>
+
+ * camel-store.h:
+ Defined new macro CAMEL_FOLDER_TYPE_SENT for identifying sent-folder.
+ Needed for fixing #257321
+
2005-09-12 Parthasarathi Susarla <sparthasarathi novell com>
** See bug #314574
Index: camel-store.h
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/camel-store.h,v
retrieving revision 1.79
diff -u -p -r1.79 camel-store.h
--- camel-store.h 31 Aug 2005 04:21:56 -0000 1.79
+++ camel-store.h 15 Sep 2005 11:38:40 -0000
@@ -92,6 +92,9 @@ typedef struct _CamelFolderInfo {
#define CAMEL_FOLDER_TYPE_TRASH (3 << 10)
/* a spam folder */
#define CAMEL_FOLDER_TYPE_JUNK (4 << 10)
+/* a sent-items folder */
+#define CAMEL_FOLDER_TYPE_SENT (5 << 10)
+
/* next bit is 1<<13 */
/* store premissions */
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3705
diff -u -p -r1.3705 ChangeLog
--- ChangeLog 2 Sep 2005 17:50:40 -0000 1.3705
+++ ChangeLog 15 Sep 2005 11:39:55 -0000
@@ -1,3 +1,9 @@
+2005-09-15 Sankar P <psankar novell com>
+
+ * em-folder-tree-model.c (em_folder_tree_model_set_folder_info):
+ * em-folder-tree.c (render_pixbuf): Added enum and the code to
+ change the icon for sent items folder. Fixes #257321
+
2005-09-02 Harish Krishnaswamy <kharish novell com>
* default/C/Inbox: Update the Welcome mail.
Index: em-folder-tree-model.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-tree-model.c,v
retrieving revision 1.70
diff -u -p -r1.70 em-folder-tree-model.c
--- em-folder-tree-model.c 11 Aug 2005 06:11:04 -0000 1.70
+++ em-folder-tree-model.c 15 Sep 2005 11:39:56 -0000
@@ -475,6 +475,7 @@ em_folder_tree_model_set_folder_info (EM
name = _("Outbox");
} else if (!strcmp(fi->full_name, "Sent")) {
name = _("Sent");
+ flags = (flags & ~CAMEL_FOLDER_TYPE_MASK) | CAMEL_FOLDER_TYPE_SENT;
}
}
Index: em-folder-tree.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-tree.c,v
retrieving revision 1.154
diff -u -p -r1.154 em-folder-tree.c
--- em-folder-tree.c 10 Aug 2005 02:04:31 -0000 1.154
+++ em-folder-tree.c 15 Sep 2005 11:39:56 -0000
@@ -268,6 +268,7 @@ enum {
FOLDER_ICON_JUNK,
FOLDER_ICON_SHARED_TO_ME,
FOLDER_ICON_SHARED_BY_ME,
+ FOLDER_ICON_SENT,
FOLDER_ICON_LAST
};
@@ -290,6 +291,7 @@ render_pixbuf (GtkTreeViewColumn *column
folder_icons[FOLDER_ICON_JUNK] = e_icon_factory_get_icon ("stock_spam", E_ICON_SIZE_MENU);
folder_icons[FOLDER_ICON_SHARED_TO_ME] = e_icon_factory_get_icon ("stock_shared-to-me", E_ICON_SIZE_MENU);
folder_icons[FOLDER_ICON_SHARED_BY_ME] = e_icon_factory_get_icon ("stock_shared-by-me", E_ICON_SIZE_MENU);
+ folder_icons[FOLDER_ICON_SENT] = e_icon_factory_get_icon ("stock_sent-mail", E_ICON_SIZE_MENU);
initialised = TRUE;
}
@@ -309,6 +311,9 @@ render_pixbuf (GtkTreeViewColumn *column
break;
case CAMEL_FOLDER_TYPE_JUNK:
pixbuf = folder_icons[FOLDER_ICON_JUNK];
+ break;
+ case CAMEL_FOLDER_TYPE_SENT:
+ pixbuf = folder_icons[FOLDER_ICON_SENT];
break;
default:
if (flags & CAMEL_FOLDER_SHARED_TO_ME)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]