aboutsummaryrefslogtreecommitdiff
path: root/fiv.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-01-12 11:12:01 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-01-12 11:12:32 +0100
commit757bc9beaabb8470a0d6cf2628269dbf720fbf31 (patch)
tree53529bf9b7da06d6b9e6555f72b686839e37c135 /fiv.c
parentf632510d2a8b96e25f529c9f408fa1bef9693557 (diff)
downloadfiv-757bc9beaabb8470a0d6cf2628269dbf720fbf31.tar.gz
fiv-757bc9beaabb8470a0d6cf2628269dbf720fbf31.tar.xz
fiv-757bc9beaabb8470a0d6cf2628269dbf720fbf31.zip
Fully support GNOME's inode/directory mechanism
Diffstat (limited to 'fiv.c')
-rw-r--r--fiv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fiv.c b/fiv.c
index 69d6cb8..56944e3 100644
--- a/fiv.c
+++ b/fiv.c
@@ -880,11 +880,12 @@ open_any_file(GFile *file, gboolean force_browser)
} else if (type == G_FILE_TYPE_DIRECTORY) {
load_directory(uri);
} else if (force_browser) {
- // GNOME, e.g., invokes this as a hint to focus the particular file,
- // which we can't currently do yet.
+ // GNOME, e.g., invokes this as a hint to focus the particular file.
gchar *parent = parent_uri(file);
load_directory(parent);
g_free(parent);
+
+ fiv_browser_select(FIV_BROWSER(g.browser), uri);
} else {
open(uri);
}