Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. menuItemSetAttributeValue :: (HasCallStack, MonadIO m, IsMenuItem a) => a -> Text -> Maybe GVariant -> m ()

    gi-gio GI.Gio.Objects.MenuItem

    Sets or unsets an attribute on menuItem. The attribute to set or unset is specified by attribute. This can be one of the standard attribute names MENU_ATTRIBUTE_LABEL, MENU_ATTRIBUTE_ACTION, MENU_ATTRIBUTE_TARGET, or a custom attribute name. Attribute names are restricted to lowercase characters, numbers and '-'. Furthermore, the names must begin with a lowercase character, must not end with a '-', and must not contain consecutive dashes. must consist only of lowercase ASCII characters, digits and '-'. If value is non-Nothing then it is used as the new value for the attribute. If value is Nothing then the attribute is unset. If the value GVariant is floating, it is consumed. See also g_menu_item_set_attribute() for a more convenient way to do the same. Since: 2.32

  2. menuItemSetDetailedAction :: (HasCallStack, MonadIO m, IsMenuItem a) => a -> Text -> m ()

    gi-gio GI.Gio.Objects.MenuItem

    Sets the "action" and possibly the "target" attribute of menuItem. The format of detailedAction is the same format parsed by actionParseDetailedName. See g_menu_item_set_action_and_target() or menuItemSetActionAndTargetValue for more flexible (but slightly less convenient) alternatives. See also menuItemSetActionAndTargetValue for a description of the semantics of the action and target attributes. Since: 2.32

  3. menuItemSetIcon :: (HasCallStack, MonadIO m, IsMenuItem a, IsIcon b) => a -> b -> m ()

    gi-gio GI.Gio.Objects.MenuItem

    Sets (or unsets) the icon on menuItem. This call is the same as calling iconSerialize and using the result as the value to menuItemSetAttributeValue for MENU_ATTRIBUTE_ICON. This API is only intended for use with "noun" menu items; things like bookmarks or applications in an "Open With" menu. Don't use it on menu items corresponding to verbs (eg: stock icons for 'Save' or 'Quit'). If icon is Nothing then the icon is unset. Since: 2.38

  4. menuItemSetLabel :: (HasCallStack, MonadIO m, IsMenuItem a) => a -> Maybe Text -> m ()

    gi-gio GI.Gio.Objects.MenuItem

    Sets or unsets the "label" attribute of menuItem. If label is non-Nothing it is used as the label for the menu item. If it is Nothing then the label attribute is unset. Since: 2.32

  5. menuItemSetLink :: (HasCallStack, MonadIO m, IsMenuItem a, IsMenuModel b) => a -> Text -> Maybe b -> m ()

    gi-gio GI.Gio.Objects.MenuItem

    Creates a link from menuItem to model if non-Nothing, or unsets it. Links are used to establish a relationship between a particular menu item and another menu. For example, MENU_LINK_SUBMENU is used to associate a submenu with a particular menu item, and MENU_LINK_SECTION is used to create a section. Other types of link can be used, but there is no guarantee that clients will be able to make sense of them. Link types are restricted to lowercase characters, numbers and '-'. Furthermore, the names must begin with a lowercase character, must not end with a '-', and must not contain consecutive dashes. Since: 2.32

  6. menuItemSetSection :: (HasCallStack, MonadIO m, IsMenuItem a, IsMenuModel b) => a -> Maybe b -> m ()

    gi-gio GI.Gio.Objects.MenuItem

    Sets or unsets the "section" link of menuItem to section. The effect of having one menu appear as a section of another is exactly as it sounds: the items from section become a direct part of the menu that menuItem is added to. See menuItemNewSection for more information about what it means for a menu item to be a section. Since: 2.32

  7. menuItemSetSubmenu :: (HasCallStack, MonadIO m, IsMenuItem a, IsMenuModel b) => a -> Maybe b -> m ()

    gi-gio GI.Gio.Objects.MenuItem

    Sets or unsets the "submenu" link of menuItem to submenu. If submenu is non-Nothing, it is linked to. If it is Nothing then the link is unset. The effect of having one menu appear as a submenu of another is exactly as it sounds. Since: 2.32

  8. mountOperationSetAnonymous :: (HasCallStack, MonadIO m, IsMountOperation a) => a -> Bool -> m ()

    gi-gio GI.Gio.Objects.MountOperation

    Sets the mount operation to use an anonymous user if anonymous is True.

  9. mountOperationSetChoice :: (HasCallStack, MonadIO m, IsMountOperation a) => a -> Int32 -> m ()

    gi-gio GI.Gio.Objects.MountOperation

    Sets a default choice for the mount operation.

  10. mountOperationSetDomain :: (HasCallStack, MonadIO m, IsMountOperation a) => a -> Maybe Text -> m ()

    gi-gio GI.Gio.Objects.MountOperation

    Sets the mount operation's domain.

Page 1242 of many | Previous | Next