aboutsummaryrefslogtreecommitdiff
path: root/src/trayicon.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-31 07:32:50 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-31 07:32:50 +0000
commit68814466894003778231a186f47ce885ec222593 (patch)
tree9d017bd031358c89730fbc00fb3f2981665a8fbf /src/trayicon.c
parentad72787db3616726e7ee1b3d866b571101f0dd52 (diff)
enable compilation on MinGW.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@532 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/trayicon.c')
-rw-r--r--src/trayicon.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/trayicon.c b/src/trayicon.c
index 537b7671..02f8fb2b 100644
--- a/src/trayicon.c
+++ b/src/trayicon.c
@@ -35,6 +35,7 @@
#include "eggtrayicon.h"
#include "stock_pixmap.h"
+#ifdef GDK_WINDOWING_X11
static GtkWidget *trayicon;
static GtkWidget *trayicon_img;
@@ -54,7 +55,7 @@ GtkWidget *trayicon_create(MainWindow *mainwin)
g_signal_connect(G_OBJECT(eventbox), "button_press_event",
G_CALLBACK(trayicon_button_pressed), mainwin);
trayicon_img = stock_pixbuf_widget_scale(NULL, STOCK_PIXMAP_SYLPHEED,
- 24, 24);
+ 24, 24);
gtk_container_add(GTK_CONTAINER(eventbox), trayicon_img);
trayicon_tip = gtk_tooltips_new();
@@ -90,3 +91,20 @@ static void trayicon_button_pressed(GtkWidget *widget, GdkEventButton *event,
if (event && event->button == 1)
gtk_window_present(GTK_WINDOW(mainwin->window));
}
+
+#else /* GDK_WINDOWING_X11 */
+
+GtkWidget *trayicon_create(MainWindow *mainwin)
+{
+ return NULL;
+}
+
+void trayicon_set_tooltip(const gchar *text)
+{
+}
+
+void trayicon_set_stock_icon(StockPixmap icon)
+{
+}
+
+#endif /* GDK_WINDOWING_X11 */