diff options
author | Wu Xiaotian <[email protected]> | 2019-07-20 14:58:18 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 21:40:42 +0200 |
commit | 958b4fa7f6f460121dc1a5eff5ce0a353188333b (patch) | |
tree | 32546bd679ee02961bcc21cc4bd38171119c7e34 /libcaja-private/caja-view-factory.c | |
parent | 989f2dc1964f011d7f6ebd037afe4fd3d48e8eba (diff) | |
download | caja-958b4fa7f6f460121dc1a5eff5ce0a353188333b.tar.bz2 caja-958b4fa7f6f460121dc1a5eff5ce0a353188333b.tar.xz |
Set FmWidgetView is single view.
Diffstat (limited to 'libcaja-private/caja-view-factory.c')
-rw-r--r-- | libcaja-private/caja-view-factory.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libcaja-private/caja-view-factory.c b/libcaja-private/caja-view-factory.c index abe291c1..e5e4219f 100644 --- a/libcaja-private/caja-view-factory.c +++ b/libcaja-private/caja-view-factory.c @@ -1,4 +1,4 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- +/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- caja-view-factory.c: register and create CajaViews @@ -116,7 +116,14 @@ caja_view_factory_get_views_for_uri (const char *uri, if (view_info->supports_uri (uri, file_type, mime_type)) { - res = g_list_prepend (res, g_strdup (view_info->id)); + if (view_info->single_view) + { + g_list_free_full (res, g_free); + res = g_list_prepend (NULL, g_strdup (view_info->id)); + break; + } else { + res = g_list_prepend (res, g_strdup (view_info->id)); + } } } |