Functions¶
  | 
|
  | 
|
  | 
|
  | 
Details¶
- GPasteGtk.util_compute_checksum(texture)¶
 - Parameters:
 texture (
Gdk.Texture) – theGdk.Textureto 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.WindoworNone) – the parentGtk.Windowaction (
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.WindoworNone) – the parentGtk.Windowclient (
GPaste.Client) – aGPaste.Clientinstancesettings (
GPaste.Settings) – aGPaste.Settingsinstancehistory (
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