Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
menuRemoveAll :: (HasCallStack, MonadIO m, IsMenu a) => a -> m ()gi-gio GI.Gio.Objects.Menu Removes all items in the menu. Since: 2.38
type
MenuModelItemsChangedCallback = Int32 -> Int32 -> Int32 -> IO ()gi-gio GI.Gio.Objects.MenuModel Emitted when a change has occurred to the menu. The only changes that can occur to a menu is that items are removed or added. Items may not change (except by being removed and added back in the same location). This signal is capable of describing both of those changes (at the same time). The signal means that starting at the index position, removed items were removed and added items were added in their place. If removed is zero then only items were added. If added is zero then only items were removed. As an example, if the menu contains items a, b, c, d (in that order) and the signal (2, 1, 3) occurs then the new composition of the menu will be a, b, _, _, _, d (with each _ representing some new item). Signal handlers may query the model (particularly the added items) and expect to see the results of the modification that is being reported. The signal is emitted after the modification.
type
MountOperationAbortedCallback = IO ()gi-gio GI.Gio.Objects.MountOperation Emitted by the backend when e.g. a device becomes unavailable while a mount operation is in progress. Implementations of GMountOperation should handle this signal by dismissing open password dialogs. Since: 2.20
type
MountOperationAskPasswordCallback = Text -> Text -> Text -> [AskPasswordFlags] -> IO ()gi-gio GI.Gio.Objects.MountOperation Emitted when a mount operation asks the user for a password. If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a GtkMessageDialog.
type
MountOperationAskQuestionCallback = Text -> [Text] -> IO ()gi-gio GI.Gio.Objects.MountOperation Emitted when asking the user a question and gives a list of choices for the user to choose from. If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a GtkMessageDialog.
type
MountOperationReplyCallback = MountOperationResult -> IO ()gi-gio GI.Gio.Objects.MountOperation Emitted when the user has replied to the mount operation.
type
MountOperationShowProcessesCallback = Text -> [Int32] -> [Text] -> IO ()gi-gio GI.Gio.Objects.MountOperation Emitted when one or more processes are blocking an operation e.g. unmounting/ejecting a Mount or stopping a Drive. Note that this signal may be emitted several times to update the list of blocking processes as processes close files. The application should only respond with mountOperationReply to the latest signal (setting MountOperation:choice to the choice the user made). If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a GtkMessageDialog. Since: 2.22
type
MountOperationShowUnmountProgressCallback = Text -> Int64 -> Int64 -> IO ()gi-gio GI.Gio.Objects.MountOperation Emitted when an unmount operation has been busy for more than some time (typically 1.5 seconds). When unmounting or ejecting a volume, the kernel might need to flush pending data in its buffers to the volume stable storage, and this operation can take a considerable amount of time. This signal may be emitted several times as long as the unmount operation is outstanding, and then one last time when the operation is completed, with bytesLeft set to zero. Implementations of GMountOperation should handle this signal by showing an UI notification, and then dismiss it, or show another notification of completion, when bytesLeft reaches zero. If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a GtkMessageDialog. Since: 2.34
-
gi-gio GI.Gio.Objects.OutputStream Tries to write count bytes from buffer into the stream. Will block during the operation. This function is similar to outputStreamWrite, except it tries to write as many bytes as requested, only stopping on an error. On a successful write of count bytes, True is returned, and bytesWritten is set to count. If there is an error during the operation False is returned and error is set to indicate the error status. As a special exception to the normal conventions for functions that use GError, if this function returns False (and sets error) then bytesWritten will be set to the number of bytes that were successfully written before the error was encountered. This functionality is only available from C. If you need it from another language then you must write your own loop around outputStreamWrite.
-
gi-gio GI.Gio.Objects.OutputStream Request an asynchronous write of count bytes from buffer into the stream. When the operation is finished callback will be called. You can then call outputStreamWriteAllFinish to get the result of the operation. This is the asynchronous version of outputStreamWriteAll. Call outputStreamWriteAllFinish to collect the result. Any outstanding I/O request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is PRIORITY_DEFAULT. Note that no copy of buffer will be made, so it must stay valid until callback is called. Since: 2.44