Is there an example how to catch the event when I click the icon on taskbar with right button of the
- by Gtker
#include <gtk/gtk.h>
int main( int argc, char *argv[])
{
GtkWidget *window;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(window);
gtk_main();
return 0;
}
The above can pop up a window and a corresponding icon on taskbar.
I googled a lot but can't find any article that handles this problem.
So any information is greatly appreciated!