diff options
author | Sargastic <[email protected]> | 2018-08-11 21:40:02 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-12-27 13:11:09 +0100 |
commit | 58e987622a1d4ff137b9e5475880376dd60ac18b (patch) | |
tree | 9eefd32199ba49d8500074b2a087ebc009431ae7 /libcaja-private/caja-window-info.c | |
parent | 040a897fe879e949f4e11be4b0d065486c677e97 (diff) | |
download | caja-58e987622a1d4ff137b9e5475880376dd60ac18b.tar.bz2 caja-58e987622a1d4ff137b9e5475880376dd60ac18b.tar.xz |
Add independent show/hide backup files
Diffstat (limited to 'libcaja-private/caja-window-info.c')
-rw-r--r-- | libcaja-private/caja-window-info.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libcaja-private/caja-window-info.c b/libcaja-private/caja-window-info.c index f55e6803..cce05f7d 100644 --- a/libcaja-private/caja-window-info.c +++ b/libcaja-private/caja-window-info.c @@ -31,6 +31,7 @@ enum SELECTION_CHANGED, TITLE_CHANGED, HIDDEN_FILES_MODE_CHANGED, + BACKUP_FILES_MODE_CHANGED, LAST_SIGNAL }; @@ -81,6 +82,15 @@ caja_window_info_base_init (gpointer g_class) g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); + caja_window_info_signals[BACKUP_FILES_MODE_CHANGED] = + g_signal_new ("backup_files_mode_changed", + CAJA_TYPE_WINDOW_INFO, + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (CajaWindowInfoIface, backup_files_mode_changed), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); + initialized = TRUE; } } @@ -248,6 +258,24 @@ caja_window_info_set_hidden_files_mode (CajaWindowInfo *window, mode); } +CajaWindowShowBackupFilesMode +caja_window_info_get_backup_files_mode (CajaWindowInfo *window) +{ + g_return_val_if_fail (CAJA_IS_WINDOW_INFO (window), CAJA_WINDOW_SHOW_BACKUP_FILES_DEFAULT); + + return (* CAJA_WINDOW_INFO_GET_IFACE (window)->get_backup_files_mode) (window); +} + +void +caja_window_info_set_backup_files_mode (CajaWindowInfo *window, + CajaWindowShowBackupFilesMode mode) +{ + g_return_if_fail (CAJA_IS_WINDOW_INFO (window)); + + (* CAJA_WINDOW_INFO_GET_IFACE (window)->set_backup_files_mode) (window, + mode); +} + GtkUIManager * caja_window_info_get_ui_manager (CajaWindowInfo *window) { |