Functions¶
|
|
|
|
|
|
|
Details¶
- GPasteGtk.util_compute_checksum(texture)¶
- Parameters:
texture (
Gdk.Texture
) – theGdk.Texture
to checksum- Returns:
the newly allocated checksum
- Return type:
Compute the checksum of an image
- GPasteGtk.util_confirm_dialog(parent, action, msg, on_confirmation, *user_data)¶
- Parameters:
parent (
Gtk.Window
orNone
) – the parentGtk.Window
action (
str
) –msg (
str
) – the message to displayon_confirmation (
GPasteGtk.ConfirmDialogCallback
) – handler to invoke when we get a confirmation
Ask the user for confirmation
- GPasteGtk.util_empty_history(parent_window, client, settings, history)¶
- Parameters:
parent_window (
Gtk.Window
orNone
) – the parentGtk.Window
client (
GPaste.Client
) – aGPaste.Client
instancesettings (
GPaste.Settings
) – aGPaste.Settings
instancehistory (
str
) – the name of the history to empty
Empty history after prompting user for confirmation
- GPasteGtk.util_show_window(application)¶
- Parameters:
application (
Gio.Application
) – aGtk.Application
Present the application’s window to user