[gnome-builder/wip/chergert/bug1] debugger: mark files as read-only
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/bug1] debugger: mark files as read-only
- Date: Tue, 29 Aug 2017 01:58:40 +0000 (UTC)
commit 260e62bd2bcdac1239f6eebedea5a77be3b3a32c
Author: Christian Hergert <chergert redhat com>
Date: Mon Aug 28 18:58:31 2017 -0700
debugger: mark files as read-only
libide/debugger/ide-debugger-view.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libide/debugger/ide-debugger-view.c b/libide/debugger/ide-debugger-view.c
index e84f927..a5b1ae4 100644
--- a/libide/debugger/ide-debugger-view.c
+++ b/libide/debugger/ide-debugger-view.c
@@ -18,6 +18,7 @@
#define G_LOG_DOMAIN "ide-debugger-view"
+#include <glib/gi18n.h>
#include <gtksourceview/gtksource.h>
#include "ide-debug.h"
@@ -255,8 +256,9 @@ ide_debugger_view_set_file (IdeDebuggerView *self,
g_object_ref (self));
name = g_file_get_basename (file);
-
- ide_layout_view_set_title (IDE_LAYOUT_VIEW (self), name);
+ /* translators: %s is for the name of the file */
+ title = g_strdup_printf (_("%s (Read-Only)"), name);
+ ide_layout_view_set_title (IDE_LAYOUT_VIEW (self), title);
/* TODO: Icon name */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]