Commit graph

23334 commits

Author SHA1 Message Date
Hugo Carvalho a4cda7743c Update Portuguese translation 2022-08-07 21:40:23 +00:00
Yuri Chornoivan 911579225b Update Ukrainian translation 2022-08-07 16:05:08 +00:00
António Fernandes 57cb867383 view-controls: Set dropdown tooltip
The translatable string is not new, it was simply lost in the rebasing
process leading to commit dd407da7da
2022-08-07 14:26:16 +01:00
Danial Behzadi f92167c035 Update Persian translation 2022-08-07 12:59:09 +00:00
Piotr Drąg f2a13a1caa Update POTFILES.in 2022-08-07 14:40:27 +02:00
Asier Sarasua Garmendia 454a8c34e1 Update Basque translation 2022-08-07 09:53:52 +00:00
António Fernandes ff2268ae01 Post-release version bump 2022-08-07 05:43:05 +01:00
António Fernandes 419a411afd Release version 43.beta 2022-08-07 05:33:03 +01:00
António Fernandes 2aa8f1717c column: Fix property setting/getting
Was spamming warnings on list view.

Left over from c60d3099ed
2022-08-07 04:16:14 +01:00
António Fernandes 289ac9b85d app-chooser: Capitalize type 2022-08-07 01:15:29 +00:00
António Fernandes eac32fcad6 app-chooser: Improve layout
On the verge of UI freeze, spliting this among previous commits is not
possible, unfortunately. So, this packs a few changes at once:

  * Avoid double scrollbars. The GtkScrolledWindow is preserved for
    future use when we get rid of GtkAppChooserWidger, but otherwise
    it doesn't scroll.
  * Add a separator above default switch row.
  * Make the switch row and make the whole row clickable.
  * Fine-tune margins.
2022-08-07 01:15:29 +00:00
Corey Berla eee3427977 app-chooser: Add a description above the list 2022-08-07 01:15:29 +00:00
Corey Berla 1ccb3fe528 app-chooser: Add property filename
We need this for the description within the app chooser.
If we are working on multiple files, set to NULL.
2022-08-07 01:15:29 +00:00
Corey Berla 29616fc868 app-chooser: Use more specific title
Make default title "Open File" or "Open Folder" if it's a folder.
If we are acting on a mix of items make it "Open Items"
2022-08-07 01:15:29 +00:00
Corey Berla 8fe25c418c app-chooser: Replace Reset and Set as Default buttons with a Switch
Set the switch to active when the association is set as default
and inactive when it is not set as default (also a way to remove
the default association).  Add a label for the switch with a
subtitle indicating the content description.
2022-08-07 01:15:29 +00:00
Corey Berla d2ad33b3a3 app-chooser: Add property single-content-type
If we are acting on a single item or multiple items that all have the
same mime type, set to true. This will be used for setting the title
and ability to change file type association.
2022-08-07 01:15:29 +00:00
António Fernandes e9889275e1 libnautilus-extension: Bump pkgconfig version
Also drop GTK dependency, now that GTK is no longer used in our API.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2135
2022-08-07 01:14:22 +00:00
António Fernandes c60d3099ed column: Don't depend on GTK
We use GtkSortOrder internally only, it's not meant for extensions.
2022-08-07 01:14:22 +00:00
António Fernandes b625533fa4 libnautilus-extension: Drop widget provider
We don't want extensions to inject random inconsistent widgets
into our window.

If there are good reasons for this, in the future we can introduce a
new model-like API instead of a widget-based one.
2022-08-07 01:14:22 +00:00
António Fernandes bc55ff7599 menu-provider: Don't pass GtkWindow
We don't want menu items to create their own windows in our process.

This helps with the effort to de-GTK-ize libnautilus-extensions API.
2022-08-07 01:14:22 +00:00
António Fernandes e418cf4362 properties: Remove old extensions API
We want to control the layout of the window, not having extensions
injecting their own widgets.

This also avoids future breakage when porting to newer versions of GTK.
2022-08-07 01:14:22 +00:00
António Fernandes ad4cdb8a44 audio-video-properties: Port to new API 2022-08-07 01:14:22 +00:00
António Fernandes 33855b7b15 image-properties: Don't depend on GTK
GdkPixbuf is enough here.
2022-08-07 01:14:22 +00:00
António Fernandes 695c9c617b image-properties: Port to new API 2022-08-07 01:14:22 +00:00
António Fernandes 5d378a44e9 properties-window: Add star button
Starred status can be perceived as a property, also in grid view there
is no visual indication or easy way to change it.

Furthermore, we are to remove the star action from the view menu.
2022-08-07 01:14:22 +00:00
António Fernandes a3002b148c libnautilus-extension: Introduce model-based properties extensions
This is meant to replace the existing GtkWidget-based solution.

Part of https://gitlab.gnome.org/GNOME/nautilus/-/issues/2365
2022-08-07 01:14:22 +00:00
António Fernandes 731934d272 files-view-context-menu: Add "Visible Columns" to background menu
Because we don't have a column header-specific context menu.
2022-08-07 02:06:34 +01:00
Danial Behzadi 6ee1ab8986 Update Persian translation 2022-08-07 00:58:46 +00:00
António Fernandes b930fe7433 grid-view: Use border radius consistent with designs
This change was to be included in d7b0365621

Probably a rebase fail on my side.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2401
2022-08-07 01:54:00 +01:00
António Fernandes 5d5798d5ec compress-dialog: Rename title to mention compression
Because menu item is "Compress..." and we don't offer option to create
non-compressed Archives.
2022-08-07 00:36:04 +00:00
António Fernandes 1ea2a48de3 files-view: Bind Return to the open-with-default-application action
This is not necessary per-se, because it's the default activation
keybinding. But in order for it to appear in the context menu as a
the suggested keyboard shortcut, we need to bind it to the menu item
action.
2022-08-07 00:36:04 +00:00
António Fernandes 8622a2d60e files-view: Reorganize context menus
Resolves https://gitlab.gnome.org/GNOME/nautilus/-/issues/2207
2022-08-07 00:36:04 +00:00
António Fernandes bcd8ce2ccb pathbar: Redesign current location menu
It's been identical to background context menu so far because
the later was inaccessible in list view if scrolling.

But in the new list view, background context menu is allways
accessible. so we can deviate now.

Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2355
2022-08-07 00:36:04 +00:00
António Fernandes a0d4398730 files-view: Stop setting actions on submenus
We show Templates and Scripts submenus conditionally, using the
hidden-when=action-disabled attribute, by assigning a dummy action
which we can set as active or inactive as fit.

However, this causes criticals when the popover menu is destroyed:

(org.gnome.Nautilus:21502): GLib-CRITICAL **: 16:15:32.870: g_hash_table_iter_next: assertion 'ri->version == ri->hash_table->version' failed

Indeed, submenus are not supposed to have actions. There is a
"submenu-action" but it's for a different purpose.

So, instead of controlling the visibility through a dummy action,
set or unset the "hidden-when" attribute to control its visibility,
the same way we already do for sort menu items.
2022-08-07 00:36:04 +00:00
António Fernandes ec6110e58a files-view: Rebuild context menus every time
In GTK3, we would reuse the same GtkMenu, but update the model.

With GtkPopoverMenu, this is creating duplicate stack page each time
our submenus are updated. And it turns out we update templates and
scripts menu a lot of times, on directory monitor callbacks! Besides
warnings, this causes increasing memory consumptions.

Additionally, reusing the same popover while updating the model causes
the old model do be temporarily displayed when the popover is opened,
which sometimes even causes the popover to resize and jump around.
This is obviously bad.

Avoid both problems by creating a new popover menu every time we open
the context menu. The old one is destroyed (by unparenting) right
before this. (Not on GtkPopover::closed, because this would be too
early and actions would fail to activate!)
2022-08-07 00:36:04 +00:00
Christopher Davis f18ad7e663 toolbar: Use GtkRevealer for sidebar button
Since we don't need to deal with the automatic spacing from
GtkHeaderBar, we can take advantage of GtkRevealer to get
a smooth transition for the button's visibility. This also
gets rid of a flicker and warning from GTK.
2022-08-06 23:55:31 +00:00
Christopher Davis a8eb74c20c toolbar: Wrap toolbar children in a GtkBox
GtkHeaderBar automatically provides spacing for its children.
However, this spacing doesn't play well with hidden revealers.
In order to not have double spacing, this commit creates GtkBoxes
at both ends of the toolbar, and moves the margins to the children.
2022-08-06 23:55:31 +00:00
Christopher Davis a4b7a4ff74 window, toolbar: Change toolbar visibility based on size
Show a bottom bar at small sizes, while hiding the start
and end children.
2022-08-06 23:55:31 +00:00
António Fernandes dd407da7da toolbar: Factor out view controls
Same rationale as previous 2 commits.
2022-08-06 23:55:31 +00:00
António Fernandes cb48c84dd5 toolbar: Factor out operations progress indicator
Same rationale as last commit, except this control is independent from
the window slot, so it doesn't require any property binding.
2022-08-06 23:55:31 +00:00
Christopher Davis 3a2e1d04e6 toolbar: Factor out history controls
In order to adapt to narrow window sizes, we need to be be able to
show the same controls in different places, but we don't want to
duplicate the code or the UI definitions.

Thus, we should encapsulate the code and logic we need into distinct
reusable components.

Start with the back and forward buttons, along with their context menu.
They will update their state properly through bindings without needing
to call any functions ourselves.
2022-08-06 23:55:31 +00:00
Luming Zh 92a135f191 Update Chinese (China) translation 2022-08-06 23:19:15 +00:00
Hugo Carvalho 96ec728d56 Update Portuguese translation 2022-08-06 22:55:02 +00:00
Danial Behzadi 7ce9d62f9b Update Persian translation 2022-08-06 22:39:31 +00:00
Christopher Davis 813f903495 file-operations: Use AdwMessageDialog for empty trash dialog 2022-08-06 19:38:22 +01:00
Christopher Davis 0f85a7d8f7 ui-utilities: Use AdwMessageDialog in show_dialog() 2022-08-06 19:35:00 +01:00
Christopher Davis 544caa0311 places-view: Use AdwMessageDialog 2022-08-06 19:35:00 +01:00
Christopher Davis a80aacdf2c autorun-software: Use AdwMessageDialog 2022-08-06 19:35:00 +01:00
Christopher Davis d49a96a6a3 application: Use AdwMessageDialog for help error 2022-08-06 19:35:00 +01:00
Christopher Davis 021f0d828d eel-stock-dialogs: Use AdwMessageDialog for timed wait 2022-08-06 19:35:00 +01:00