diff options
author | António Fernandes <antoniof@gnome.org> | 2021-12-18 20:58:57 +0000 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2021-12-28 22:24:39 +0000 |
commit | 96503372ff4fd148405afa858c7d87329987d495 (patch) | |
tree | a10563f8cb242d689995e1836094fda66a38f7e9 /src/nautilus-places-view.c | |
parent | 4ca63d19eb3e522eea54a92c0f479911e2a17f4a (diff) | |
download | nautilus-96503372ff4fd148405afa858c7d87329987d495.tar.gz |
enums: Make OpenFlags more generic
GtkPlacesOpenFlags as public API are gone in GTK 4. In preparation,
rename our NautilusWindowOpenFlags enumeration type and make it
value-compatible with GtkPlacesOpenFlags.
Diffstat (limited to 'src/nautilus-places-view.c')
-rw-r--r-- | src/nautilus-places-view.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nautilus-places-view.c b/src/nautilus-places-view.c index a167ce02c..2e4372b06 100644 --- a/src/nautilus-places-view.c +++ b/src/nautilus-places-view.c @@ -66,7 +66,7 @@ open_location_cb (NautilusPlacesView *view, GFile *location, GtkPlacesOpenFlags open_flags) { - NautilusWindowOpenFlags flags; + NautilusOpenFlags flags; GtkWidget *slot; slot = gtk_widget_get_ancestor (GTK_WIDGET (view), NAUTILUS_TYPE_WINDOW_SLOT); @@ -75,14 +75,14 @@ open_location_cb (NautilusPlacesView *view, { case GTK_PLACES_OPEN_NEW_TAB: { - flags = NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB | - NAUTILUS_WINDOW_OPEN_FLAG_DONT_MAKE_ACTIVE; + flags = NAUTILUS_OPEN_FLAG_NEW_TAB | + NAUTILUS_OPEN_FLAG_DONT_MAKE_ACTIVE; } break; case GTK_PLACES_OPEN_NEW_WINDOW: { - flags = NAUTILUS_WINDOW_OPEN_FLAG_NEW_WINDOW; + flags = NAUTILUS_OPEN_FLAG_NEW_WINDOW; } break; |