Functions

util_compute_checksum (texture)

util_confirm_dialog (parent, action, msg, on_confirmation, *user_data)

util_empty_history (parent_window, client, settings, history)

util_show_window (application)

Details

GPasteGtk.util_compute_checksum(texture)
Parameters:

texture (Gdk.Texture) – the Gdk.Texture to checksum

Returns:

the newly allocated checksum

Return type:

str

Compute the checksum of an image

GPasteGtk.util_confirm_dialog(parent, action, msg, on_confirmation, *user_data)
Parameters:

Ask the user for confirmation

GPasteGtk.util_empty_history(parent_window, client, settings, history)
Parameters:

Empty history after prompting user for confirmation

GPasteGtk.util_show_window(application)
Parameters:

application (Gio.Application) – a Gtk.Application

Present the application’s window to user