Use GtkPopover for menus or quicklists

Bug #1279895 reported by Camilo Higuita
46
This bug affects 23 people
Affects Status Importance Assigned to Milestone
Plank
Triaged
Wishlist
Unassigned

Bug Description

make use of the new gnome widget GtkPopover for the right click menu.

Changed in plank:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

Still not possible while GtkPopover are only presentable in the visible area of its parent window.

Changed in plank:
status: Triaged → Opinion
Changed in plank:
status: Opinion → Triaged
Revision history for this message
PK (pk1111) wrote :

I started implementing feature of https://bugs.launchpad.net/plank/+bug/709022, but I noticed that there is a problem within Popovers as @ricotz mentioned - they cannot be displayed of if parent is not shown. Well, then I realized there is workaround for it which needs some changes in the same way as developers did it for Wingpanel (elementaryos/wingpanel):

The indicators on wingpanel are aggregated in Gtk.MenuBars and Indicators are MenuItems. So for Plank: Each DockElement is not GLib.Object but Gtk.MenuItem and the Dock is mocked MenuBar.

It resolves two mayor issues problems: It is able "out-of-the-box" to bind a popover or other gtk-element which needs to be pinned to something. Also the dockitems are like MenuItems - they inherits methods to way easier control position in the dock.

But I have concerns of this workaround, because we only need show popover not refactor whole code of this program... :)

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

@pk1111: Using GtkWidgets to compose the dock is not wanted and not possible while preserving all features afaics.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.