summaryrefslogtreecommitdiff
path: root/src/trayicon.h
diff options
context:
space:
mode:
authorSimeon Simeonov2018-02-26 11:23:00 +0100
committerSimeon Simeonov2018-02-26 11:23:00 +0100
commit0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch)
treeaf916a30553c78ce9d4f2d8658656a175c5b6921 /src/trayicon.h
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'src/trayicon.h')
-rw-r--r--src/trayicon.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/trayicon.h b/src/trayicon.h
new file mode 100644
index 0000000..eea46af
--- /dev/null
+++ b/src/trayicon.h
@@ -0,0 +1,53 @@
1/*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2006 Hiroyuki Yamamoto
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20#ifndef __TRAYICON_H__
21#define __TRAYICON_H__
22
23#include <glib.h>
24#include <gtk/gtkwidget.h>
25#include <gtk/gtkversion.h>
26
27#if GTK_CHECK_VERSION(2, 10, 0)
28# include <gtk/gtkstatusicon.h>
29#endif
30
31typedef struct _TrayIcon TrayIcon;
32
33#include "mainwindow.h"
34#include "stock_pixmap.h"
35
36struct _TrayIcon
37{
38#if GTK_CHECK_VERSION(2, 10, 0)
39 GtkStatusIcon *status_icon;
40#else
41 GtkWidget *widget;
42#endif
43};
44
45TrayIcon *trayicon_create (MainWindow *mainwin);
46void trayicon_show (TrayIcon *tray_icon);
47void trayicon_hide (TrayIcon *tray_icon);
48void trayicon_destroy (TrayIcon *tray_icon);
49void trayicon_set_tooltip (const gchar *text);
50void trayicon_set_notify (gboolean enabled);
51void trayicon_set_stock_icon (StockPixmap icon);
52
53#endif /* __TRAYICON_H__ */