GPaste.Settings¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
The “changed” signal is emitted when a key has potentially changed.  | 
|
The “rebind” signal is emitted when a key has potentially changed.  | 
|
The “track” signal is emitted when the daemon starts or stops tracking clipboard changes  | 
Fields¶
- Inherited:
 
Class Details¶
- class GPaste.Settings(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new()¶
 - Returns:
 a newly allocated
GPaste.Settingsfree it withGObject.Object.unref- Return type:
 
Create a new instance of
GPaste.Settings
- get_close_on_select()¶
 - Returns:
 the value of the “close-on-select” setting
- Return type:
 
Get the “close-on-select” setting
- get_element_size()¶
 - Returns:
 the value of the “element-size” setting
- Return type:
 
Get the “element-size” setting
- get_empty_history_confirmation()¶
 - Returns:
 the value of the “empty-history-confirmation” setting
- Return type:
 
Get the “empty-history-confirmation” setting
- get_extension_enabled()¶
 - Returns:
 Whether the gnome-shell extension is enabled or not
- Return type:
 
Get the “extension-enabled” special setting
- get_growing_lines()¶
 - Returns:
 the value of the “growing-lines” setting
- Return type:
 
Get the “growing-lines” setting
- get_history_name()¶
 - Returns:
 the value of the “history-name” setting
- Return type:
 
Get the “history-name” setting
- get_images_support()¶
 - Returns:
 the value of the “images-support” setting
- Return type:
 
Get the “images-support” setting
- get_launch_ui()¶
 - Returns:
 the value of the “launch-ui” setting
- Return type:
 
Get the “launch-ui” setting
- get_make_password()¶
 - Returns:
 the value of the “make-password” setting
- Return type:
 
Get the “make-password” setting
- get_max_displayed_history_size()¶
 - Returns:
 the value of the “max-displayed-history-size” setting
- Return type:
 
Get the “max-displayed-history-size” setting
- get_max_history_size()¶
 - Returns:
 the value of the “max-history-size” setting
- Return type:
 
Get the “max-history-size” setting
- get_max_memory_usage()¶
 - Returns:
 the value of the “max-memory-usage” setting
- Return type:
 
Get the “max-memory-usage” setting
- get_max_text_item_size()¶
 - Returns:
 the value of the “max-text-item-size” setting
- Return type:
 
Get the “max-text-item-size” setting
- get_min_text_item_size()¶
 - Returns:
 the value of the “min-text-item-size” setting
- Return type:
 
Get the “min-text-item-size” setting
- get_open_centered()¶
 - Returns:
 the value of the “open-centered” setting
- Return type:
 
Get the “open-centered” setting
- get_primary_to_history()¶
 - Returns:
 the value of the “primary-to-history” setting
- Return type:
 
Get the “primary-to-history” setting
- get_rich_text_support()¶
 - Returns:
 the value of the “rich-text-support” setting
- Return type:
 
Get the “rich-text-support” setting
- get_save_history()¶
 - Returns:
 the value of the “save-history” setting
- Return type:
 
Get the “save-history” setting
- get_show_history()¶
 - Returns:
 the value of the “show-history” setting
- Return type:
 
Get the “show-history” setting
- get_sync_clipboard_to_primary()¶
 - Returns:
 the value of the “sync-clipboard-to-primary” setting
- Return type:
 
Get the “sync-clipboard-to-primary” setting
- get_sync_primary_to_clipboard()¶
 - Returns:
 the value of the “sync-primary-to-clipboard” setting
- Return type:
 
Get the “sync-primary-to-clipboard” setting
- get_synchronize_clipboards()¶
 - Returns:
 the value of the “synchronize-clipboards” setting
- Return type:
 
Get the “synchronize-clipboards” setting
- get_track_changes()¶
 - Returns:
 the value of the “track-changes” setting
- Return type:
 
Get the “track-changes” setting
- get_track_extension_state()¶
 - Returns:
 the value of the “track-extension-state” setting
- Return type:
 
Get the “track-extension-state” setting
- get_trim_items()¶
 - Returns:
 the value of the “trim-items” setting
- Return type:
 
Get the “trim-items” setting
- reset_close_on_select()¶
 Reset the “close-on-select” setting
- reset_element_size()¶
 Reset the “element-size” setting
- reset_empty_history_confirmation()¶
 Reset the “empty-history-confirmation” setting
- reset_growing_lines()¶
 Reset the “growing-lines” setting
- reset_history_name()¶
 Reset the “history-name” setting
- reset_images_support()¶
 Reset the “images-support” setting
- reset_launch_ui()¶
 Reset the “launch-ui” setting
- reset_make_password()¶
 Reset the “make-password” setting
- reset_max_displayed_history_size()¶
 Reset the “max-displayed-history-size” setting
- reset_max_history_size()¶
 Reset the “max-history-size” setting
- reset_max_memory_usage()¶
 Reset the “max-memory-usage” setting
- reset_max_text_item_size()¶
 Reset the “max-text-item-size” setting
- reset_min_text_item_size()¶
 Reset the “min-text-item-size” setting
- reset_open_centered()¶
 Reset the “open-centered” setting
- reset_pop()¶
 Reset the “pop” setting
- reset_primary_to_history()¶
 Reset the “primary-to-history” setting
- reset_rich_text_support()¶
 Reset the “rich-text-support” setting
- reset_save_history()¶
 Reset the “save-history” setting
- reset_show_history()¶
 Reset the “show-history” setting
- reset_sync_clipboard_to_primary()¶
 Reset the “sync-clipboard-to-primary” setting
- reset_sync_primary_to_clipboard()¶
 Reset the “sync-primary-to-clipboard” setting
- reset_synchronize_clipboards()¶
 Reset the “synchronize-clipboards” setting
- reset_track_changes()¶
 Reset the “track-changes” setting
- reset_track_extension_state()¶
 Reset the “track-extension-state” setting
- reset_trim_items()¶
 Reset the “trim-items” setting
- reset_upload()¶
 Reset the “upload” setting
- set_close_on_select(value)¶
 - Parameters:
 value (
bool) – the new history name
Change the “close-on-select” setting
- set_element_size(value)¶
 - Parameters:
 value (
int) – the maximum displayed size of an item
Change the “element-size” setting
- set_empty_history_confirmation(value)¶
 - Parameters:
 value (
bool) – whether to prompt for confirmation when emptying a history
Change the “empty-history-confirmation” setting
- set_extension_enabled(value)¶
 - Parameters:
 value (
bool) – whether to enable or not the gnome-shell extension
Change the “extension-enabled” special setting
- set_growing_lines(value)¶
 - Parameters:
 value (
bool) – whether to detect or not growing lines
Change the “growing-lines” setting
- set_history_name(value)¶
 - Parameters:
 value (
str) – the new history name
Change the “history-name” setting
- set_images_support(value)¶
 - Parameters:
 value (
bool) – the new history name
Change the “images-support” setting
- set_launch_ui(value)¶
 - Parameters:
 value (
str) – the new keyboard shortcut
Change the “launch-ui” setting
- set_make_password(value)¶
 - Parameters:
 value (
str) – the new keyboard shortcut
Change the “make-password” setting
- set_max_displayed_history_size(value)¶
 - Parameters:
 value (
int) – the maximum number of items to display
Change the “max-displayed-history-size” setting
- set_max_history_size(value)¶
 - Parameters:
 value (
int) – the maximum number of items the history can contain
Change the “max-history-size” setting
- set_max_memory_usage(value)¶
 - Parameters:
 value (
int) – the maximum amount of memory we can use
Change the “max-memory-usage” setting
- set_max_text_item_size(value)¶
 - Parameters:
 value (
int) – the maximum size for a textual item to be handled
Change the “max-text-item-size” setting
- set_min_text_item_size(value)¶
 - Parameters:
 value (
int) – the minimum size for a textual item to be handled
Change the “min-text-item-size” setting
- set_open_centered(value)¶
 - Parameters:
 value (
bool) – the new history name
Change the “open-centered” setting
- set_primary_to_history(value)¶
 - Parameters:
 value (
bool) – whether to track or not the primary selection changes as clipboard ones
Change the “primary-to-history” setting
- set_rich_text_support(value)¶
 - Parameters:
 value (
bool) – the new history name
Change the “rich-text-support” setting
- set_save_history(value)¶
 - Parameters:
 value (
bool) – whether to save or not the history
Change the “save-history” setting
- set_show_history(value)¶
 - Parameters:
 value (
str) – the new keyboard shortcut
Change the “show-history” setting
- set_sync_clipboard_to_primary(value)¶
 - Parameters:
 value (
str) – the new keyboard shortcut
Change the “sync-clipboard-to-primary” setting
- set_sync_primary_to_clipboard(value)¶
 - Parameters:
 value (
str) – the new keyboard shortcut
Change the “sync-primary-to-clipboard” setting
- set_synchronize_clipboards(value)¶
 - Parameters:
 value (
bool) – whether to synchronize the clipboard and the primary selection or not
Change the “synchronize-clipboards” setting
- set_track_changes(value)¶
 - Parameters:
 value (
bool) – whether to track or not the clipboard changes
Change the “track-changes” setting
- set_track_extension_state(value)¶
 - Parameters:
 value (
bool) – whether to stop tracking or not the clipboard changes when an applet exits
Change the “track-extension-state” setting
Signal Details¶
- GPaste.Settings.signals.changed(settings, key)¶
 - Signal Name:
 changed- Flags:
 - Parameters:
 settings (
GPaste.Settings) – The object which received the signalkey (
str) – the name of the key that changed
The “changed” signal is emitted when a key has potentially changed. You should call one of the g_paste_settings_get() calls to check the new value.
This signal supports detailed connections. You can connect to the detailed signal “changed::x” in order to only receive callbacks when key “x” changes.
- GPaste.Settings.signals.rebind(settings, key)¶
 - Signal Name:
 rebind- Flags:
 - Parameters:
 settings (
GPaste.Settings) – The object which received the signalkey (
str) – the name of the key that changed
The “rebind” signal is emitted when a key has potentially changed. You should call one of the g_paste_settings_get() calls to check the new value.
This signal supports detailed connections. You can connect to the detailed signal “rebind::x” in order to only receive callbacks when key “x” changes.
- GPaste.Settings.signals.track(settings, tracking_state)¶
 - Signal Name:
 track- Flags:
 - Parameters:
 settings (
GPaste.Settings) – The object which received the signaltracking_state (
bool) – whether we’re now tracking or not
The “track” signal is emitted when the daemon starts or stops tracking clipboard changes