root / src / trayicon.h @ 2733
History | View | Annotate | Download (1.5 kB)
| 1 | 510 | hiro | /*
|
|---|---|---|---|
| 2 | 510 | hiro | * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client |
| 3 | 1189 | hiro | * Copyright (C) 1999-2006 Hiroyuki Yamamoto |
| 4 | 510 | hiro | * |
| 5 | 510 | hiro | * This program is free software; you can redistribute it and/or modify |
| 6 | 510 | hiro | * it under the terms of the GNU General Public License as published by |
| 7 | 510 | hiro | * the Free Software Foundation; either version 2 of the License, or |
| 8 | 510 | hiro | * (at your option) any later version. |
| 9 | 510 | hiro | * |
| 10 | 510 | hiro | * This program is distributed in the hope that it will be useful, |
| 11 | 510 | hiro | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | 510 | hiro | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | 510 | hiro | * GNU General Public License for more details. |
| 14 | 510 | hiro | * |
| 15 | 510 | hiro | * You should have received a copy of the GNU General Public License |
| 16 | 510 | hiro | * along with this program; if not, write to the Free Software |
| 17 | 510 | hiro | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | 510 | hiro | */ |
| 19 | 510 | hiro | |
| 20 | 510 | hiro | #ifndef __TRAYICON_H__
|
| 21 | 510 | hiro | #define __TRAYICON_H__
|
| 22 | 510 | hiro | |
| 23 | 510 | hiro | #include <glib.h> |
| 24 | 510 | hiro | #include <gtk/gtkwidget.h> |
| 25 | 1189 | hiro | #include <gtk/gtkversion.h> |
| 26 | 510 | hiro | |
| 27 | 1189 | hiro | #if GTK_CHECK_VERSION(2, 10, 0) |
| 28 | 1189 | hiro | # include <gtk/gtkstatusicon.h> |
| 29 | 1189 | hiro | #endif
|
| 30 | 1189 | hiro | |
| 31 | 1189 | hiro | typedef struct _TrayIcon TrayIcon; |
| 32 | 1189 | hiro | |
| 33 | 510 | hiro | #include "mainwindow.h" |
| 34 | 510 | hiro | #include "stock_pixmap.h" |
| 35 | 510 | hiro | |
| 36 | 1189 | hiro | struct _TrayIcon
|
| 37 | 1189 | hiro | {
|
| 38 | 1189 | hiro | #if GTK_CHECK_VERSION(2, 10, 0) |
| 39 | 1189 | hiro | GtkStatusIcon *status_icon; |
| 40 | 1189 | hiro | #else
|
| 41 | 1189 | hiro | GtkWidget *widget; |
| 42 | 1189 | hiro | #endif
|
| 43 | 1189 | hiro | }; |
| 44 | 1189 | hiro | |
| 45 | 1189 | hiro | TrayIcon *trayicon_create (MainWindow *mainwin); |
| 46 | 1191 | hiro | void trayicon_show (TrayIcon *tray_icon);
|
| 47 | 1198 | hiro | void trayicon_hide (TrayIcon *tray_icon);
|
| 48 | 1189 | hiro | void trayicon_destroy (TrayIcon *tray_icon);
|
| 49 | 510 | hiro | void trayicon_set_tooltip (const gchar *text); |
| 50 | 1191 | hiro | void trayicon_set_notify (gboolean enabled);
|
| 51 | 510 | hiro | void trayicon_set_stock_icon (StockPixmap icon);
|
| 52 | 510 | hiro | |
| 53 | 510 | hiro | #endif /* __TRAYICON_H__ */ |