diff options
| author | Ansuz Inspirati <[email protected]> | 2025-08-25 08:35:41 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-24 22:35:41 +0000 |
| commit | f093cfa7e4cbb27280576d39d63e5000df9f0d7c (patch) | |
| tree | 9f5d8e14234c9b596327b60e136099421a2c5f0a /src/caja-file-management-properties.c | |
| parent | 1cd4e8eeccc7d2424c674a0ebcf646e71b2d2a7b (diff) | |
| download | caja-f093cfa7e4cbb27280576d39d63e5000df9f0d7c.tar.bz2 caja-f093cfa7e4cbb27280576d39d63e5000df9f0d7c.tar.xz | |
New feature - show git branch with icon view text (#1838)
Display the git branch along with directory name in icon view; when the directory is a git repository.
Obviously further work will be required to enable/disable as a displayed option, and potentially some level of customisation. This would require open discussion of possibilities.
Solutions for co-existence with other displayable parameters also to be community determined.
Consideration and feedback appreciated.
* Add UI support to enable/disable option
Added user interface support for option to enable and disable the display of the git branch name in icon view.
* Add internationsation support for the new feature
With translations for most of the currently supported languages.
* Update caja.pot
Build system regenerated .pot file with additional strings from new feature (already in previous commit), new strings already introduced to code-base, along with updated source file line numbers of existing strings. Required for the automated pull mechanism in Transifex - which should complete once merged with master branch.
Diffstat (limited to 'src/caja-file-management-properties.c')
| -rw-r--r-- | src/caja-file-management-properties.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c index ba76ebda..6606c834 100644 --- a/src/caja-file-management-properties.c +++ b/src/caja-file-management-properties.c @@ -61,6 +61,7 @@ #define CAJA_FILE_MANAGEMENT_PROPERTIES_FOLDERS_FIRST_WIDGET "sort_folders_first_checkbutton" #define CAJA_FILE_MANAGEMENT_PROPERTIES_COMPACT_LAYOUT_WIDGET "compact_layout_checkbutton" #define CAJA_FILE_MANAGEMENT_PROPERTIES_LABELS_BESIDE_ICONS_WIDGET "labels_beside_icons_checkbutton" +#define CAJA_FILE_MANAGEMENT_PROPERTIES_DISPLAY_GIT_BRANCH_WIDGET "display_git_branch_checkbutton" #define CAJA_FILE_MANAGEMENT_PROPERTIES_ALL_COLUMNS_SAME_WIDTH "all_columns_same_width_checkbutton" #define CAJA_FILE_MANAGEMENT_PROPERTIES_ALWAYS_USE_BROWSER_WIDGET "always_use_browser_checkbutton" #define CAJA_FILE_MANAGEMENT_PROPERTIES_TRASH_CONFIRM_WIDGET "trash_confirm_checkbutton" @@ -1106,6 +1107,9 @@ caja_file_management_properties_dialog_setup (GtkBuilder *builder, GtkWindow *wi bind_builder_bool (builder, caja_icon_view_preferences, CAJA_FILE_MANAGEMENT_PROPERTIES_LABELS_BESIDE_ICONS_WIDGET, CAJA_PREFERENCES_ICON_VIEW_LABELS_BESIDE_ICONS); + bind_builder_bool (builder, caja_icon_view_preferences, + CAJA_FILE_MANAGEMENT_PROPERTIES_DISPLAY_GIT_BRANCH_WIDGET, + CAJA_PREFERENCES_ICON_VIEW_DISPLAY_GIT_BRANCH); bind_builder_bool (builder, caja_compact_view_preferences, CAJA_FILE_MANAGEMENT_PROPERTIES_ALL_COLUMNS_SAME_WIDTH, CAJA_PREFERENCES_COMPACT_VIEW_ALL_COLUMNS_SAME_WIDTH); |
