nautilus:abderrahim/libportal

Last commit made on 2021-12-25
Get this branch:
git clone -b abderrahim/libportal https://git.launchpad.net/nautilus

Branch merges

Branch information

Name:
abderrahim/libportal
Repository:
lp:nautilus

Recent commits

55cfd66... by =?utf-8?q?Ant=C3=B3nio_Fernandes?= <email address hidden>

general: Add libportal-gtk3 dependency

The portal-gtk3.h header has been moved into a separate library which
binds gtk3 explicitly.

https://github.com/flatpak/libportal/pull/53

f4ee5c4... by =?utf-8?q?Ant=C3=B3nio_Fernandes?= <email address hidden>

Stop using gtk_widget_new()

Gone in GTK 4. Just use g_object_new() and cast as necessary.

9d07df3... by =?utf-8?q?Ant=C3=B3nio_Fernandes?= <email address hidden>

shell-search-provider: Prepare for gtk_show_uri_full()

gtk_show_uri_on_window() is gone in GTK 4. Instead, we are going to need
gtk_show_uri_full(), which uses an async result API.

Split the code in advance, to reduce the necessary changes at the time
of the GTK 3 to 4 switch.

ba46882... by =?utf-8?q?Ant=C3=B3nio_Fernandes?= <email address hidden>

compress-dialog-controller: Drop signals from UI file

We have signals defined in the GtkBuilder UI XML file. However, as we
are not using it as a template (we are not subclassing GtkDialog), we
still need to manually bind the callback symbols and even explicitly
bind them with gtk_builder_connect_signals().

In GTK 4 gtk_builder_connect_signals() is gone and the alternative is
setting the signal data (in this case, 'self') before loading the
UI definition.

However, we need to load the UI definition before we create 'self',
because some widgets are requires as construct-only properties. Given
this circular dependency, doing it the GTK 4 way is impossibile.

Therefore, just connect signals in code and remove them from the UI
file. This is compatible with GTK 4. And even under GTK 3 its simpler!

d4aa18e... by Kukuh Syafaat

Update Indonesian translation

dde0b49... by Display Name

batch-rename-dialog: Replace ::event handlers with controllers

Rebased and ammended by António Fernandes <email address hidden>

58d68c2... by Display Name

rename-file-popover-controller: Use controller for key events

Rebased and ammended by António Fernandes <email address hidden>

8cc9209... by =?utf-8?q?Ant=C3=B3nio_Fernandes?= <email address hidden>

window-slot: Don't forward Escape and BackSpace

Unless it is already visible.

This fixes a regression caused by the previous commit. Making it a
separate commit because I'm not sure why this is needed now if it
wasn't before.

41ee247... by =?utf-8?q?Ant=C3=B3nio_Fernandes?= <email address hidden>

query-editor: Drop gtk_search_entry_handle_event()

It's going away in GTK4. Also, as we use a key event controller now,
we can use gtk_event_controller_key_forward() instead.

This is how GTK4 implements gtk_search_entry_set_key_capture_widget(),
so reimplement it here. We were not going to inherit anyway, because we
need a custom widget for a tagged entry in GTK4.

522e391... by =?utf-8?q?Ant=C3=B3nio_Fernandes?= <email address hidden>

window: Drop usage of gtk_window_propagate_key_event

It's going away in GTK4. Also, as we use a key event controller now,
we can use gtk_event_controller_key_forward() instead.