summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-widget-view.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-20 14:58:18 +0800
committerraveit65 <[email protected]>2019-08-26 14:21:14 +0200
commit093aacfeccdb47b6b12b1978dd88243479626398 (patch)
tree4e03f0d98674e9e3087512ebd07fc220a3cac6c6 /src/file-manager/fm-widget-view.c
parent840f8890e05dab73d9ded916947973032d9d0091 (diff)
downloadcaja-093aacfeccdb47b6b12b1978dd88243479626398.tar.bz2
caja-093aacfeccdb47b6b12b1978dd88243479626398.tar.xz
Set FmWidgetView is single view.
Diffstat (limited to 'src/file-manager/fm-widget-view.c')
-rw-r--r--src/file-manager/fm-widget-view.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/file-manager/fm-widget-view.c b/src/file-manager/fm-widget-view.c
index 482ee4a3..9d2aeff1 100644
--- a/src/file-manager/fm-widget-view.c
+++ b/src/file-manager/fm-widget-view.c
@@ -374,15 +374,15 @@ fm_widget_view_supports_uri (const char *uri,
static CajaViewInfo fm_widget_view =
{
- FM_WIDGET_VIEW_ID,
- N_("Widget View"),
+ .id = FM_WIDGET_VIEW_ID,
+ .view_combo_label = N_("Widget View"),
/* translators: this is used in the view menu */
- N_("_Widget View"),
- N_("The widget view encountered an error."),
- N_("The widget view encountered an error while starting up."),
- N_("Display this location with the widget view."),
- fm_widget_view_create,
- fm_widget_view_supports_uri
+ .view_menu_label_with_mnemonic = N_("_Widget View"),
+ .error_label = N_("The widget view encountered an error."),
+ .startup_error_label = N_("The widget view encountered an error while starting up."),
+ .display_location_label = N_("Display this location with the widget view."),
+ .create = fm_widget_view_create,
+ .supports_uri = fm_widget_view_supports_uri
};
void
@@ -394,6 +394,7 @@ fm_widget_view_register (void)
fm_widget_view.error_label = _(fm_widget_view.error_label);
fm_widget_view.startup_error_label = _(fm_widget_view.startup_error_label);
fm_widget_view.display_location_label = _(fm_widget_view.display_location_label);
+ fm_widget_view.single_view = TRUE;
caja_view_factory_register (&fm_widget_view);
}