Make a middle click open items in a new instance
This commit is contained in:
17
fastiv.c
17
fastiv.c
@@ -265,13 +265,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)
|
||||
{
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user