diff options
Diffstat (limited to 'src/trayicon.h')
| -rw-r--r-- | src/trayicon.h | 53 |
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 | |||
| 31 | typedef struct _TrayIcon TrayIcon; | ||
| 32 | |||
| 33 | #include "mainwindow.h" | ||
| 34 | #include "stock_pixmap.h" | ||
| 35 | |||
| 36 | struct _TrayIcon | ||
| 37 | { | ||
| 38 | #if GTK_CHECK_VERSION(2, 10, 0) | ||
| 39 | GtkStatusIcon *status_icon; | ||
| 40 | #else | ||
| 41 | GtkWidget *widget; | ||
| 42 | #endif | ||
| 43 | }; | ||
| 44 | |||
| 45 | TrayIcon *trayicon_create (MainWindow *mainwin); | ||
| 46 | void trayicon_show (TrayIcon *tray_icon); | ||
| 47 | void trayicon_hide (TrayIcon *tray_icon); | ||
| 48 | void trayicon_destroy (TrayIcon *tray_icon); | ||
| 49 | void trayicon_set_tooltip (const gchar *text); | ||
| 50 | void trayicon_set_notify (gboolean enabled); | ||
| 51 | void trayicon_set_stock_icon (StockPixmap icon); | ||
| 52 | |||
| 53 | #endif /* __TRAYICON_H__ */ | ||
