Functions¶
  | 
|
  | 
|
  | 
|
  | 
Details¶
- GPasteGtk.util_compute_checksum(image)¶
 - Parameters:
 image (
GdkPixbuf.Pixbuf) – theGdkPixbuf.Pixbufto checksum- Returns:
 the newly allocated checksum
- Return type:
 
Compute the checksum of an image
- GPasteGtk.util_confirm_dialog(parent, action, msg)¶
 - Parameters:
 parent (
Gtk.WindoworNone) – the parentGtk.Windowaction (
str) –msg (
str) – the message to display
- Return type:
 
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_win(application)¶
 - Parameters:
 application (
Gio.Application) – aGtk.Application
Present the application’s window to user