All contributions

linuxmint/nemo

Nemo

The file manager of the Cinnamon desktop, developed by the Linux Mint team. Written in C with GTK.

Language
C
GitHub stars
1,589
Merged changes
3

What we changed

Three interface fixes: a file hidden by a rename leaves the view at once, the middle mouse button opens a new tab with one click in the list view, and permission checkboxes for several files work on the first click.

What this work shows

  • GTK mouse events
  • Unix file permissions and bit masks
  • Refreshing a view after file changes
What was broken

A file renamed to a dot name stayed in view

With hidden files not shown, renaming a file or folder to a name starting with a dot left it in the view under its old name. It only disappeared after a refresh with F5.

How we fixed it

The view drops files it should no longer show

In process_new_files every changed file is now passed on, not only the ones the view should show. The view itself removes the files it should no longer display, so the folder disappears right after the rename.

#3858

What was broken

The list view needed a double middle-click

In double-click mode the list view opened an item in a new tab only after two middle-clicks. The icon and compact views do it with a single middle-click.

How we fixed it

One middle-click opens a new tab

The list view now activates on middle-button release whatever the click policy, like the icon view. The double-click handler now ignores the middle button.

#3857

What was broken

Permission checkboxes needed two clicks

With several files selected, initial_permission_state_consistent() kept the full mode of the first file but compared the others after masking. The state never looked consistent, so the first click on "Allow executing file as program" just put the original permissions back.

How we fixed it

One click changes the permissions

The first file is now compared after masking too. For two 0644 files the first click sets 0755 right away, the advanced r/w/x boxes work the same way, and single files and mixed selections behave as before.

#3845

What it taught us

An interface bug in a C and GTK file manager often has its cause in one small spot in the code. Finding it lets you remove the bug without reworking the surrounding code.

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.