Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gtk3 Popover outside the window

How can i make Popover appears outside application window like menu in gnome-shell panel? Or should i use another GTK widget?

gnome-shell panel popup menu

like image 774
br. Avatar asked Nov 16 '15 19:11

br.


1 Answers

This should be possible (at least on wayland). gtk_popover_set_constrain_to (GtkPopover *popover, GtkPopoverConstraint constraint); "GTK_POPOVER_CONSTRAINT_NONE"

and

gtk_popover_set_pointing_to (GtkPopover *popover, const GdkRectangle *rect);

like image 114
Gtk Fan Avatar answered Nov 13 '22 02:11

Gtk Fan