* src/plugins/pgpmime/plugin.c
* src/plugins/trayicon/Makefile.am
* src/plugins/trayicon/newmarkedmail.xpm
* src/plugins/trayicon/trayicon.c
* src/plugins/trayicon/unreadmarkedmail.xpm
Sync with HEAD
+2004-11-24 [colin] 0.9.12cvs169.1
+
+ * src/plugins/pgpmime/plugin.c
+ * src/plugins/trayicon/Makefile.am
+ * src/plugins/trayicon/newmarkedmail.xpm
+ * src/plugins/trayicon/trayicon.c
+ * src/plugins/trayicon/unreadmarkedmail.xpm
+ Sync with HEAD
+
2004-11-23 [colin] 0.9.12cvs168.1
* src/partial_download.c
2004-11-23 [colin] 0.9.12cvs168.1
* src/partial_download.c
( cvs diff -u -r 1.115.2.23 -r 1.115.2.24 src/main.c; ) > 0.9.12cvs163.1.patchset
( cvs diff -u -r 1.155.2.13 -r 1.155.2.14 src/Makefile.am; cvs diff -u -r 1.65.2.19 -r 1.65.2.20 src/codeconv.c; cvs diff -u -r 1.382.2.74 -r 1.382.2.75 src/compose.c; cvs diff -u -r 1.207.2.21 -r 1.207.2.22 src/folderview.c; cvs diff -u -r 1.115.2.24 -r 1.115.2.25 src/main.c; cvs diff -u -r 0 -r 1 src/partial_download.c; cvs diff -u -r 0 -r 1 src/partial_download.h; cvs diff -u -r 1.105.2.13 -r 1.105.2.14 src/prefs_account.c; cvs diff -u -r 1.49.2.8 -r 1.49.2.9 src/prefs_account.h; cvs diff -u -r 1.10.2.3 -r 1.10.2.4 src/privacy.c; cvs diff -u -r 1.10.2.2 -r 1.10.2.3 src/privacy.h; cvs diff -u -r 1.49.2.22 -r 1.49.2.23 src/procmime.c; cvs diff -u -r 1.24.2.4 -r 1.24.2.5 src/common/Makefile.am; cvs diff -u -r 1.1 -r 1.2 src/common/base64.h; cvs diff -u -r -1.1.2.5 -r -1.1.2.6 src/common/partial_download.c; cvs diff -u -r -1.1.2.2 -r -1.1.2.3 src/common/partial_download.h; cvs diff -u -r 1.12.2.7 -r 1.12.2.8 src/gtk/prefswindow.c; cvs diff -u -r 1.7.2.1 -r 1.7.2.2 src/gtk/prefswindow.h; cvs diff -u -r 1.1.2.11 -r 1.1.2.12 src/plugins/pgpmime/pgpmime.c; cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpmime/prefs_gpg.c; cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpmime/prefs_gpg.h; cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/plugins/pgpmime/sgpgme.c; cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/plugins/pgpmime/sgpgme.h; ) > 0.9.12cvs166.1.patchset
( cvs diff -u -r 1.1.2.1 -r 1.1.2.2 src/partial_download.c; cvs diff -u -r 1.1.2.1 -r 1.1.2.2 src/partial_download.h; cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/plugins/pgpmime/plugin.c; ) > 0.9.12cvs168.1.patchset
( cvs diff -u -r 1.115.2.23 -r 1.115.2.24 src/main.c; ) > 0.9.12cvs163.1.patchset
( cvs diff -u -r 1.155.2.13 -r 1.155.2.14 src/Makefile.am; cvs diff -u -r 1.65.2.19 -r 1.65.2.20 src/codeconv.c; cvs diff -u -r 1.382.2.74 -r 1.382.2.75 src/compose.c; cvs diff -u -r 1.207.2.21 -r 1.207.2.22 src/folderview.c; cvs diff -u -r 1.115.2.24 -r 1.115.2.25 src/main.c; cvs diff -u -r 0 -r 1 src/partial_download.c; cvs diff -u -r 0 -r 1 src/partial_download.h; cvs diff -u -r 1.105.2.13 -r 1.105.2.14 src/prefs_account.c; cvs diff -u -r 1.49.2.8 -r 1.49.2.9 src/prefs_account.h; cvs diff -u -r 1.10.2.3 -r 1.10.2.4 src/privacy.c; cvs diff -u -r 1.10.2.2 -r 1.10.2.3 src/privacy.h; cvs diff -u -r 1.49.2.22 -r 1.49.2.23 src/procmime.c; cvs diff -u -r 1.24.2.4 -r 1.24.2.5 src/common/Makefile.am; cvs diff -u -r 1.1 -r 1.2 src/common/base64.h; cvs diff -u -r -1.1.2.5 -r -1.1.2.6 src/common/partial_download.c; cvs diff -u -r -1.1.2.2 -r -1.1.2.3 src/common/partial_download.h; cvs diff -u -r 1.12.2.7 -r 1.12.2.8 src/gtk/prefswindow.c; cvs diff -u -r 1.7.2.1 -r 1.7.2.2 src/gtk/prefswindow.h; cvs diff -u -r 1.1.2.11 -r 1.1.2.12 src/plugins/pgpmime/pgpmime.c; cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpmime/prefs_gpg.c; cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpmime/prefs_gpg.h; cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/plugins/pgpmime/sgpgme.c; cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/plugins/pgpmime/sgpgme.h; ) > 0.9.12cvs166.1.patchset
( cvs diff -u -r 1.1.2.1 -r 1.1.2.2 src/partial_download.c; cvs diff -u -r 1.1.2.1 -r 1.1.2.2 src/partial_download.h; cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/plugins/pgpmime/plugin.c; ) > 0.9.12cvs168.1.patchset
+( cvs diff -u -r 1.1.2.6 -r 1.1.2.7 src/plugins/pgpmime/plugin.c; cvs diff -u -r 1.4.2.1 -r 1.4.2.2 src/plugins/trayicon/Makefile.am; cvs diff -u -r 0 -r 1 src/plugins/trayicon/newmarkedmail.xpm; cvs diff -u -r 1.14.2.12 -r 1.14.2.13 src/plugins/trayicon/trayicon.c; cvs diff -u -r 0 -r 1 src/plugins/trayicon/unreadmarkedmail.xpm; ) > 0.9.12cvs169.1.patchset
MICRO_VERSION=12
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=12
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=.1
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=.1
- if ((sylpheed_get_version() < MAKE_NUMERIC_VERSION(0, 9, 12, 34))) {
+ if ((sylpheed_get_version() < MAKE_NUMERIC_VERSION(0, 9, 12, 164))) {
*error = g_strdup("Your sylpheed version is too old");
return -1;
}
*error = g_strdup("Your sylpheed version is too old");
return -1;
}
EXTRA_DIST = \
README \
newmail.xpm \
EXTRA_DIST = \
README \
newmail.xpm \
+ unreadmail.xpm \
+ unreadmarkedmail.xpm
#include "gtk/manage_window.h"
#include "eggtrayicon.h"
#include "gtk/manage_window.h"
#include "eggtrayicon.h"
+#include "newmarkedmail.xpm"
+#include "unreadmarkedmail.xpm"
#include "newmail.xpm"
#include "unreadmail.xpm"
#include "nomail.xpm"
#include "newmail.xpm"
#include "unreadmail.xpm"
#include "nomail.xpm"
static GdkPixmap *newmail_bitmap;
static GdkPixmap *unreadmail_pixmap;
static GdkPixmap *unreadmail_bitmap;
static GdkPixmap *newmail_bitmap;
static GdkPixmap *unreadmail_pixmap;
static GdkPixmap *unreadmail_bitmap;
+static GdkPixmap *newmarkedmail_pixmap;
+static GdkPixmap *newmarkedmail_bitmap;
+static GdkPixmap *unreadmarkedmail_pixmap;
+static GdkPixmap *unreadmarkedmail_bitmap;
static GdkPixmap *nomail_pixmap;
static GdkPixmap *nomail_bitmap;
static GdkPixmap *nomail_pixmap;
static GdkPixmap *nomail_bitmap;
typedef enum
{
TRAYICON_NEW,
typedef enum
{
TRAYICON_NEW,
TRAYICON_UNREAD,
TRAYICON_UNREADMARKED,
TRAYICON_NOTHING,
TRAYICON_UNREAD,
TRAYICON_UNREADMARKED,
TRAYICON_NOTHING,
pixmap = newmail_pixmap;
bitmap = newmail_bitmap;
break;
pixmap = newmail_pixmap;
bitmap = newmail_bitmap;
break;
+ case TRAYICON_NEWMARKED:
+ pixmap = newmarkedmail_pixmap;
+ bitmap = newmarkedmail_bitmap;
+ break;
- case TRAYICON_UNREADMARKED:
pixmap = unreadmail_pixmap;
bitmap = unreadmail_bitmap;
break;
pixmap = unreadmail_pixmap;
bitmap = unreadmail_bitmap;
break;
+ case TRAYICON_UNREADMARKED:
+ pixmap = unreadmarkedmail_pixmap;
+ bitmap = unreadmarkedmail_bitmap;
+ break;
default:
pixmap = nomail_pixmap;
bitmap = nomail_bitmap;
default:
pixmap = nomail_pixmap;
bitmap = nomail_bitmap;
{
gint new, unread, unreadmarked, total;
gchar *buf;
{
gint new, unread, unreadmarked, total;
gchar *buf;
+ TrayIconType icontype = TRAYICON_NOTHING;
folder_count_total_msgs(&new, &unread, &unreadmarked, &total);
buf = g_strdup_printf("New %d, Unread: %d, Total: %d", new, unread, total);
gtk_tooltips_set_tip(tooltips, eventbox, buf, "");
g_free(buf);
folder_count_total_msgs(&new, &unread, &unreadmarked, &total);
buf = g_strdup_printf("New %d, Unread: %d, Total: %d", new, unread, total);
gtk_tooltips_set_tip(tooltips, eventbox, buf, "");
g_free(buf);
-
- set_trayicon_pixmap(new > 0 ? TRAYICON_NEW : (unread > 0 ? TRAYICON_UNREAD : TRAYICON_NOTHING));
+
+ if (new > 0 && unreadmarked > 0)
+ icontype = TRAYICON_NEWMARKED;
+ else if (new > 0)
+ icontype = TRAYICON_NEW;
+ else if (unreadmarked > 0)
+ icontype = TRAYICON_UNREADMARKED;
+ else if (unread > 0)
+ icontype = TRAYICON_UNREAD;
+
+ set_trayicon_pixmap(icontype);
}
static gboolean folder_item_update_hook(gpointer source, gpointer data)
}
static gboolean folder_item_update_hook(gpointer source, gpointer data)
PIXMAP_CREATE(GTK_WIDGET(trayicon), nomail_pixmap, nomail_bitmap, nomail_xpm);
PIXMAP_CREATE(GTK_WIDGET(trayicon), unreadmail_pixmap, unreadmail_bitmap, unreadmail_xpm);
PIXMAP_CREATE(GTK_WIDGET(trayicon), newmail_pixmap, newmail_bitmap, newmail_xpm);
PIXMAP_CREATE(GTK_WIDGET(trayicon), nomail_pixmap, nomail_bitmap, nomail_xpm);
PIXMAP_CREATE(GTK_WIDGET(trayicon), unreadmail_pixmap, unreadmail_bitmap, unreadmail_xpm);
PIXMAP_CREATE(GTK_WIDGET(trayicon), newmail_pixmap, newmail_bitmap, newmail_xpm);
+ PIXMAP_CREATE(GTK_WIDGET(trayicon), unreadmarkedmail_pixmap, unreadmarkedmail_bitmap, unreadmarkedmail_xpm);
+ PIXMAP_CREATE(GTK_WIDGET(trayicon), newmarkedmail_pixmap, newmarkedmail_bitmap, newmarkedmail_xpm);
eventbox = gtk_event_box_new();
gtk_container_set_border_width(GTK_CONTAINER(eventbox), 0);
eventbox = gtk_event_box_new();
gtk_container_set_border_width(GTK_CONTAINER(eventbox), 0);