diff options
Diffstat (limited to 'fastiv.c')
-rw-r--r-- | fastiv.c | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -266,13 +266,6 @@ on_next(void) } static void -on_item_activated(G_GNUC_UNUSED FastivBrowser *browser, const char *path, - G_GNUC_UNUSED gpointer data) -{ - open(path); -} - -static void spawn_path(const char *path) { char *argv[] = {PROJECT_NAME, (char *) path, NULL}; @@ -282,6 +275,16 @@ spawn_path(const char *path) g_clear_error(&error); } +static void +on_item_activated(G_GNUC_UNUSED FastivBrowser *browser, const char *path, + GtkPlacesOpenFlags flags, G_GNUC_UNUSED gpointer data) +{ + if (flags == GTK_PLACES_OPEN_NEW_WINDOW) + spawn_path(path); + else + open(path); +} + static gboolean open_any_path(const char *path) { |