Create a context menu in GtkNotebook
1. create the
2. now just add new pages with
3. the first parameter is the
4. the second one will be the
5. as you cannot get button release event on
6. add
7. connect the
GtkNotebook;
2. now just add new pages with
GtkNotebook::append_page($widget, $label);
3. the first parameter is the
GtkWidgetthat will be the container of content;
4. the second one will be the
GtkWidgetof tab;
5. as you cannot get button release event on
GtkLabel, create a
GtkEventBox, and put
GtkLabelinside;
6. add
GtkEventBoxas tab widget;
7. connect the
GtkEventBoxto
button-relesae-event8. capture what button pressed, create
GtkMenuand show it at event occur