[gnome-builder/wip/gtk4-port] plugins/ls: remove "— Directory" from title



commit 56ba1a43343c7515e45eb532b36d30b3a5c12d93
Author: Christian Hergert <chergert redhat com>
Date:   Mon May 16 16:50:38 2022 -0700

    plugins/ls: remove "— Directory" from title
    
    Not really necessary, we have icons that can provide this.

 src/plugins/ls/gbp-ls-page.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/plugins/ls/gbp-ls-page.c b/src/plugins/ls/gbp-ls-page.c
index 24af63682..9af578286 100644
--- a/src/plugins/ls/gbp-ls-page.c
+++ b/src/plugins/ls/gbp-ls-page.c
@@ -310,7 +310,6 @@ void
 gbp_ls_page_set_directory (GbpLsPage *self,
                            GFile     *directory)
 {
-  g_autofree gchar *title = NULL;
   g_autofree gchar *name = NULL;
   g_autoptr(GFile) workdir = NULL;
   g_autoptr(GFile) home = NULL;
@@ -360,8 +359,7 @@ gbp_ls_page_set_directory (GbpLsPage *self,
   else
     name = ide_path_collapse (g_file_peek_path (directory));
 
-  title = g_strdup_printf (_("%s — Directory"), name);
-  panel_widget_set_title (PANEL_WIDGET (self), title);
+  panel_widget_set_title (PANEL_WIDGET (self), name);
 
   g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DIRECTORY]);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]