summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* files-view: Add empty state for Recentwip/cdavis/use-status-pageAntónio Fernandes2022-07-171-0/+6
|
* files-view: Build from UI templateAntónio Fernandes2022-07-177-96/+71
| | | | | | | We have multiple empty state .ui files, which make little sense now that they are so simple, thanks to AdwStatusPage. So, instead, add a single UI file for the whole view.
* general: Refine status page writing styleChristopher Davis2022-07-173-5/+5
| | | | | | | Updates the writing style of the status pages to follow https://developer.gnome.org/hig/guidelines/writing-style.html. This means making sure titles use header grammar and capitalization, and that sentences have punctuation.
* gtkplacesview: Use AdwStatusPageChristopher Davis2022-07-171-55/+10
| | | | | | The places view had placeholders in a popover and for search. These are both use cases where we can and should use AdwStatusPage, now that we no longer keep this code in sync with GTK.
* resources: Use AdwStatusPage for empty viewsChristopher Davis2022-07-174-143/+13
| | | | | | | libadwaita provides a widget for status/empty pages. Instead of rolling our own lookalike, we can now use the original since we have a GtkStack instead of a GtkOverlay managing views.
* files-view: Use GtkStack to manage viewsChristopher Davis2022-07-175-28/+23
| | | | | | | The port to GTK4 allows us to rework how we structure the view to use a more modern view management widget: GtkStack. Now instead of managing visibility with `show()`/`hide()`, we use `GtkStack:visible-child`.
* list-base: Move bg click gestures to viewAntónio Fernandes2022-07-171-3/+2
| | | | | | | | | | | | | | We've been setting background click gestures on the view_ui widget, which is either GtkGridView or GtkColumnView. But this means the empty state widgets don't get to handle these clicks. And the situation would get worse with AdwStatusPage, which fills the whole area. So, follow the lead of the background drop target and set the gestures on the NautilusFilesView container itself. This has the side effect of clicks on the floating status bar working like clicks on the empty space. But it's not a big problem.
* Update Occitan translationQuentin PAGÈS2022-07-171-360/+367
|
* Update Ukrainian translationYuri Chornoivan2022-07-161-14/+18
|
* nautilus-files-view.c: separated actions for creating a linkCodeboybebop2022-07-161-0/+15
| | | | | | Single action for creating a link can be either enabled and visible or disabled and invisible. Creating separate action allows hiding entry in context menu without disabling a shortcut. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2315
* general: Use GtkButton:icon-name moreChristopher Davis2022-07-166-73/+12
| | | | | | | Instead of packing a GtkImage, we can now set the icon name on buttons directly. GtkButton's API sets the right style classes automatically.
* batch-rename-dialog: Use always-show-arrow for numbering orderChristopher Davis2022-07-162-23/+7
| | | | | GtkMenuButton now has the `always-show-arrow` property. This means we don't need to pack a label and icon ourselves anymore.
* Batch-rename-dialog: Use AdwButtonContent for add tag buttonChristopher Davis2022-07-161-15/+5
| | | | | AdwButtonContent is a pre-made widget for this use case that provides everything you need.
* general: Remove unnecessary use of `receives-default`Christopher Davis2022-07-165-10/+0
| | | | Same rationale as previous commit for `focusable`.
* general: Remove unnecessary use of `focusable`Christopher Davis2022-07-1610-48/+1
| | | | | | | gtk4-builder-tool tries to port uses of `can_focus` to `focusable`, but in real code you generally don't need to set `focusable` - the defaults are always sensible, and removing the explicit property means less code without any behavior change.
* grid-view: Don't set `focusable`Christopher Davis2022-07-161-2/+0
| | | | | | | | | | | The view can receive focus, which causes it to draw an unnecessary ring when focused and requires an extra focus step to get into the items. The view itself should not be focusable. This was set as a translation of `can-focus`, but the semantics are different, and you generally don't want to manually set `focusable` as the widgets set proper defaults.
* list-base: Clear scroll_to idle handler before clearing list-baseCorey Berla2022-07-161-0/+1
| | | | | | | | | | | When you the navigation buttons to go back and forth very quickly you can reliably get Nautilus to crash. This happens because there is an idle timer set to scroll to the item to be selected. If you change the view before the scroll has happened, the handler will attempt to scroll to a non-existent item. Clear scroll_to_file_handle_id before clearing all view items in real_clear().
* pathbar: Don't make new tab activeCorey Berla2022-07-161-2/+3
| | | | | | | | | | Opening a new tab from the main view and side bar is set with NAUTILUS_OPEN_FLAG_DONT_MAKE_ACTIVE. Prior to 022867e3d3370560f2c6c07f90ad5fdfd7916d50 this was the same for tabs opened from the pathbar. It appears that the change was unintentional (GTK Open Flags don't have a "don't make active" flag). Set new tabs as not active from the path bar.
* toolbar: Open new tab on back/forward middle clickCorey Berla2022-07-161-3/+23
| | | | | | | | | Middle click should open a new tab. This is consistent with the main view, sidebar, and pathbar. When opening the new tab set the location preemptively to either one location forward or back. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1490
* window: Add helper to open new tab from a back / forward selectionCorey Berla2022-07-162-0/+51
| | | | | | Add function like nautilus_window_back_or_foward(), but instead of acting on the current slot, open a new tab. This will be used when middle clicking the navigation buttons in the toolbar.
* window: Move NautilusNavigationDirection from toolbar.c to window.hCorey Berla2022-07-162-7/+7
| | | | We need to reuse the same enum when navigating to new tabs.
* grid-view: Make GridView fill the whole heightCodeboybebop2022-07-161-1/+1
| | | | | | | | | | | | | valign property of the widget responsible for the folder content was set to GTK_ALIGN_START. This widget was moved to the top part of the parent if this widget receives enough space. However, this is not needed in this situation, since GridView already placing folders and files from top to bottom. Also, the height of the GridView was bounded by parent height and by some linear function of the number of elements in a folder. Changing valign will force the GridView to fill all allowed vertical space. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2301
* Update Persian translationDanial Behzadi2022-07-161-221/+230
|
* Update POTFILES.inPiotr Drąg2022-07-161-0/+1
|
* Update Ukrainian translationYuri Chornoivan2022-07-161-219/+229
|
* Update Portuguese translationHugo Carvalho2022-07-151-228/+237
|
* clipboard: Check for empty string when deserializingCorey Berla2022-07-151-0/+5
| | | | | | | | | | | It's possible that nautilus_clipbaord_from_string() receives an empty string. When an empty string is received nautilus crashes because g_str_equal() cannot handle the null value returned from g_strsplit(). We could simply change g_str_equal() to g_strcmp0() but that opens up the possibility for the for loop to give unexpected results (it only checks for NULL starting at index=1). Check if the results from g_strsplit()[0] == NULL and return early.
* window-slot: Show special-directory info bar for Public folderCorey Berla2022-07-141-0/+7
| | | | | Check for schema org.gnome.desktop.file-sharing to verify gnome-user-share is installed.
* special-location-bar: Extend to support Public folder for sharingCorey Berla2022-07-142-2/+65
| | | | | | | | | | | | | | | | | gnome-user-share maintains an extension to create an info bar in the ~/Public folder notifying the user of the ability to turn on file sharing. This is broken with 43.alpha because of gtk3-gtk4. This is a core feature and it will be easier to implement and maintain in Nautilus itself rather than as an extension. Extend special-location-bar for the Public folder / sharing. Use dbus-launcher to open Settings to the "sharing" panel on button click. Fixes: https://gitlab.gnome.org/GNOME/gnome-user-share/-/issues/26 Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2155 See: https://gitlab.gnome.org/GNOME/gnome-user-share/-/merge_requests/18
* file-utilities: Add ability to check for installed schemaCorey Berla2022-07-142-0/+30
| | | | | | | | | | | Now that we are bringing the gnome-user-share extension into Nautilus itself, we need the ability to check if gnome-user-share is installed. GNOME Settings does this by checking the schema. Let's use the same code that Settings uses. This doesn't work within sandboxes, so if we are sandboxed always return TRUE;
* sidebar: Use dbus-launcher to open gnome disksCorey Berla2022-07-141-28/+20
| | | | | | | When running Nautilus in a flatpak, the format option is not available on the sidebar. Use dbus_launcher to check / run gnome disks for stability and flatpak integration.
* properties: Use dbus-launcher to open gnome-disksCorey Berla2022-07-141-17/+18
| | | | | | | Use the dbus_launcher to launch gnome disks rather than the commandline for stability and flatpak integration. Related to: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1997
* trash-bar: Use dbus-launcher to open settingsCorey Berla2022-07-141-17/+9
| | | | | | With the trash-bar the "settings" button opens Settings via commandline which doesn't work within a flatpak. Use dbus-launcher to open settings for flatpak integration and stability.
* dbus-launcher: Launch programs via DBUSCorey Berla2022-07-146-0/+261
| | | | | | | | | Nautilus launches external programs (i.e. Settings & gnome-disks) directly via the commandline which doesn't work in flatpaks. Create new module nautilus-dbus-launcher to allow for launching these programs via DBus. nautilus-application holds ono a singleton instance of the dbus launcher (similar to undo manager and tag manager) so we don't need to create proxies over and over again.
* places: Add properties to context menu of local and network mountsCorey Berla2022-07-141-5/+20
| | | | | Places only allows properties for "Computer". Add properties for local and network mounts.
* places: Don't show available space for / when running in a flatpakCorey Berla2022-07-141-1/+13
| | | | | | | | The available space is incorrect when running in a flatpak. Don't show available space for "/" when the /.flatpak-info file exists Related to: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1997
* properties: Don't show volume information for root when in flatpakCorey Berla2022-07-141-0/+11
| | | | | | | | Nautilus shows incorrect statistics for the root volume when running in a flatpak. Don't show volume information when the /.flatpak-info file exists Related to: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1997
* application: Move is_sandboxed() to allow re-useCorey Berla2022-07-143-17/+18
| | | | | Move function is_sandboxed() from mime-actions to nautilus-application to allow reuse.
* properties-window: Remove duplicate includeCorey Berla2022-07-141-1/+0
|
* Update Chinese (China) translationLuming Zh2022-07-141-245/+241
|
* Update Hebrew translationYosef Or Boczko2022-07-141-290/+283
|
* Update Indonesian translationKukuh Syafaat2022-07-121-687/+711
|
* Update Portuguese translationHugo Carvalho2022-07-111-214/+206
|
* Update Persian translationDanial Behzadi2022-07-111-209/+200
|
* Update Ukrainian translationYuri Chornoivan2022-07-111-212/+205
|
* general: GtkPaned -> AdwFlapChristopher Davis2022-07-116-80/+82
| | | | | | | | | | | Exchange the adjustable GtkPaned widget for AdwFlap. We lose a resizable sidebar, but gain an adaptive one. For windows narrower than 600px, we fold the sidebar. The loss of the resizable sidebar means that all settings related to it are removed. Fixes #2156
* general: Always show sidebarChristopher Davis2022-07-117-105/+0
| | | | | | Always show the sidebar, and remove the setting to hide it. We are going to introduce a replacement next commit: AdwFlap.
* window: Use NautilusGtkPlacesSidebar directlyChristopher Davis2022-07-092-18/+10
| | | | | Get rid of the middleman; Use `g_type_ensure()` to initialize the type.
* placessidebar: Remove "sidebar" style classChristopher Davis2022-07-091-2/+0
| | | | | This style class is deprecated. See https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/style-classes.html#sidebar
* Post-release version bumpAntónio Fernandes2022-07-091-1/+1
|