dbus-menu 0.1.1.0 → 0.1.1.1
raw patch · 3 files changed
+7/−8 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +5/−0
- dbus-menu.cabal +1/−1
- src/DBusMenu.hs +1/−7
ChangeLog.md view
@@ -1,5 +1,10 @@ # Changelog for dbus-menu +## 0.1.1.1++* Fix "menu already attached" GTK warning by removing redundant+ `menuAttachToWidget` call on submenus (superseded by `menuItemSetSubmenu`)+ ## 0.1.1.0 * Expand module exports (DBusMenu, DBusMenu.Client, DBusMenu.Client.Util)
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: dbus-menu-version: 0.1.1.0+version: 0.1.1.1 synopsis: A Haskell implementation of the DBusMenu protocol description: Haskell client for the com.canonical.dbusmenu DBus interface, providing GTK3 menu construction from DBusMenu services. category: System
src/DBusMenu.hs view
@@ -213,7 +213,7 @@ -- * @dbusmenu-menu@ (base menu class) -- * @dbusmenu-submenu@ buildGtkMenuItem :: Client -> BusName -> ObjectPath -> Gtk.Menu -> LayoutNode -> IO Gtk.MenuItem-buildGtkMenuItem client dest path parentMenu node = do+buildGtkMenuItem client dest path _parentMenu node = do let isChecked = menuItemToggleState node == Just 1 item <- case menuItemType node of Just "separator" -> do@@ -276,12 +276,6 @@ Gtk.widgetSetName submenu (T.pack ("dbusmenu-submenu-" <> show (lnId node))) submenuW <- Gtk.toWidget submenu addCssClass submenuW "dbusmenu-submenu"- -- Attach the submenu to the parent menu widget so it inherits the- -- same CSS parent chain (via menuAttachToWidget). Without this,- -- the submenu popup window is CSS-isolated and high-specificity- -- rules like .outer-pad.sni-tray menu menuitem * don't reach it.- parentMenuW <- Gtk.toWidget parentMenu- Gtk.menuAttachToWidget submenu parentMenuW Nothing -- Populate with the eagerly-fetched layout so submenus are usable even if -- the service doesn't support/require lazy updates. populateGtkMenu client dest path submenu node