// compile with: gcc 693664.c `pkg-config gtk+-3.0 --cflags --libs`

#include <gtk/gtk.h>

gboolean
on_scroll_event (GtkStatusIcon  *status_icon,
                 GdkEventScroll *event,
                 gpointer        user_data)
{
	printf("on_scroll_event: %d\n", event->direction);
	return TRUE;
}

void
on_activate (GtkStatusIcon *status_icon,
             gpointer       user_data)
{
	printf("on_activate\n");
}

int main (void)
{
	gtk_init (NULL, 0);

	GtkStatusIcon *icon = gtk_status_icon_new ();
	g_signal_connect (icon, "scroll-event", G_CALLBACK(on_scroll_event), NULL);
	g_signal_connect (icon, "activate", G_CALLBACK(on_activate), NULL);
	gtk_main ();
}

