aboutsummaryrefslogtreecommitdiff
path: root/src/trayicon.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-09-26 09:11:35 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-09-26 09:11:35 +0000
commit3f9199ca083813e08de4299a5fb966bc0c716420 (patch)
treeeef2a25209041d9bf29591da89915aab2f3a2b98 /src/trayicon.h
parentb94e6a1d8c18513d022cd1ff57a1924de7be1b84 (diff)
implemented tray icon in Win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1189 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/trayicon.h')
-rw-r--r--src/trayicon.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/trayicon.h b/src/trayicon.h
index b15c132b..a5869666 100644
--- a/src/trayicon.h
+++ b/src/trayicon.h
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +22,28 @@
#include <glib.h>
#include <gtk/gtkwidget.h>
+#include <gtk/gtkversion.h>
+
+#if GTK_CHECK_VERSION(2, 10, 0)
+# include <gtk/gtkstatusicon.h>
+#endif
+
+typedef struct _TrayIcon TrayIcon;
#include "mainwindow.h"
#include "stock_pixmap.h"
-GtkWidget *trayicon_create (MainWindow *mainwin);
+struct _TrayIcon
+{
+#if GTK_CHECK_VERSION(2, 10, 0)
+ GtkStatusIcon *status_icon;
+#else
+ GtkWidget *widget;
+#endif
+};
+
+TrayIcon *trayicon_create (MainWindow *mainwin);
+void trayicon_destroy (TrayIcon *tray_icon);
void trayicon_set_tooltip (const gchar *text);
void trayicon_set_stock_icon (StockPixmap icon);