nautilus:gtk4-preparation-trunk

Last commit made on 2022-01-01
Get this branch:
git clone -b gtk4-preparation-trunk https://git.launchpad.net/nautilus

Branch merges

Branch information

Name:
gtk4-preparation-trunk
Repository:
lp:nautilus

Recent commits

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

general: Stop using GtkWidget::popup-menu

The signal is gone in GTK 4.

Replace the most relevant use with an action and a keyboard accelerator.

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

notebook: Don't subclass GtkNotebook

GtkNotebook is a final class in GTK 4.

Drop the NautliusNotebook class and have its API act on GtkNotebook.

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

notebook: Dont override .insert-page()

In GTK 4 this vfunc won't be available for override.

Instead, we can achieve the same result by connecting to ::page-added.

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

notebook: Set action on close button

We listed to the button's "clicked" event and emit "tab-close-request",
which NautilusWindow listens to and closes slot in response.

Instead, we can make this a lot simpler by setting the equivalent action
and removing the signals glue.

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

window: Handle tab clicks here

We have 2 gestures for handling clicks on the notebook: one in the
notebook.c file, the other in window.c file.

The notebook one needs to emit a signal which the window listens to
anyway. So, it's simpler to handle everything in a single gesture
in the window class.

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

general: Don't subclass GtkInfoBar

It's going to be a final class one we switch to GTK 4.

In preparation, become bins containing an info bar.
Also, stop using gtk_info_bar_get_action_area(), which is gone in GTK 4
and we are using it only to set the box to horizontal orientation,
which is the default anyway.

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

pathbar: Change .button_menu_popover type

This is going to make porting to GTK 4 easier because
gtk_widget_unparent() expects a GtkWidget.

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

batch-rename-dialog: Use GtkMenuButton proper

We have been using GtkToggleButtons which popovers are relative to,
adding signals to entangle their states. Basically reinventing
GtkMenuButton.

So, just use GtkMenuButtons, which also allows us to set the menu
model directly in the UI template as a property of the button.
Furthermore, this solution is compatible with GTK 4, unlike the
current GtkToggleButton + GtkPopover setup.

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

batch-rename-dialog: Import menu models into template file

Having the menu models in a separate file is keeping us from setting
them as properties directly in the template UI definition.

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

eel: Drop gtk extensions

No longer used.