#include #include static gboolean invert_visible (gpointer data) { gtk_status_icon_set_visible (GTK_STATUS_ICON (data), !gtk_status_icon_get_visible (GTK_STATUS_ICON (data))); return TRUE; } static gboolean invert_blink (gpointer data) { gtk_status_icon_set_blinking (GTK_STATUS_ICON (data), !gtk_status_icon_get_blinking (GTK_STATUS_ICON (data))); return TRUE; } gint main (gint argc, gchar **argv) { GtkStatusIcon *icon; gtk_init (&argc, &argv); icon = gtk_status_icon_new_from_stock (GTK_STOCK_ABOUT); g_timeout_add_seconds (10, invert_visible, icon); g_timeout_add_seconds (5, invert_blink, icon); gtk_main (); return EXIT_SUCCESS; }