[gnome-builder] shortcuts window: use the title for the perspective names
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] shortcuts window: use the title for the perspective names
- Date: Tue, 15 Aug 2017 16:11:42 +0000 (UTC)
commit ebc09be49ed0b3fd3e18c5ad473e1711452f4b1a
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Aug 13 23:24:46 2017 +0200
shortcuts window: use the title for the perspective names
The id is used to select the perspective but
to display it in the shortcuts window, we need to use
the title.
libide/workbench/ide-workbench-shortcuts.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libide/workbench/ide-workbench-shortcuts.c b/libide/workbench/ide-workbench-shortcuts.c
index 2e4cedd..74177d3 100644
--- a/libide/workbench/ide-workbench-shortcuts.c
+++ b/libide/workbench/ide-workbench-shortcuts.c
@@ -39,9 +39,10 @@ _ide_workbench_add_perspective_shortcut (IdeWorkbench *self,
{
DzlShortcutController *controller;
g_autofree gchar *id = ide_perspective_get_id (perspective);
+ g_autofree gchar *title = ide_perspective_get_title (perspective);
g_autofree gchar *command_id = g_strdup_printf ("org.gnome.builder.workbench.perspective('%s')", id);
g_autofree gchar *action_name = g_strdup_printf ("win.perspective('%s')", id);
- g_autofree gchar *shortcut_help = g_strdup_printf ("Switch to %s perspective", id);
+ g_autofree gchar *shortcut_help = g_strdup_printf ("Switch to %s perspective", title);
const DzlShortcutEntry workbench_shortcut_entry[] = {
{ command_id,
0, NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]