diff options
author | Patrick Griffis <tingping@tingping.se> | 2018-03-05 19:25:08 -0500 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2018-03-09 18:23:25 +0000 |
commit | e9b9ff9f38abc82c0a5002d5e58a5c226b698f82 (patch) | |
tree | a9fa9c40111985faae17348ce47293a048dd6bbb /src/fe-gtk/plugin-tray.c | |
parent | 9b8a7eaa0147c6a564c1d1401d57cc685461e320 (diff) |
Various fixes for mingw
Diffstat (limited to 'src/fe-gtk/plugin-tray.c')
-rw-r--r-- | src/fe-gtk/plugin-tray.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c index 55565955..9b8d74fa 100644 --- a/src/fe-gtk/plugin-tray.c +++ b/src/fe-gtk/plugin-tray.c @@ -465,6 +465,7 @@ tray_make_item (GtkWidget *menu, char *label, void *callback, void *userdata) return item; } +#ifndef WIN32 static void tray_toggle_cb (GtkCheckMenuItem *item, unsigned int *setting) { @@ -476,6 +477,7 @@ blink_item (unsigned int *setting, GtkWidget *menu, char *label) { menu_toggle_item (label, menu, tray_toggle_cb, setting, *setting); } +#endif static void tray_menu_destroy (GtkWidget *menu, gpointer userdata) @@ -586,7 +588,7 @@ tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata) g_signal_connect (G_OBJECT (menu), "enter-notify-event", G_CALLBACK (tray_menu_enter_cb), NULL); - tray_menu_timer = g_timeout_add (500, tray_check_hide, menu); + tray_menu_timer = g_timeout_add (500, (GSourceFunc)tray_check_hide, menu); #endif gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, |