[gnome-builder/piotrdrag/add-context-to-titles] Add context to titles to disambiguate them from the .desktop file
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/piotrdrag/add-context-to-titles] Add context to titles to disambiguate them from the .desktop file
- Date: Wed, 6 Mar 2019 17:48:51 +0000 (UTC)
commit f5c7820a827c42e84d0b7d999ab0cfe77e99be08
Author: Piotr Drąg <piotrdrag gmail com>
Date: Wed Mar 6 18:47:45 2019 +0100
Add context to titles to disambiguate them from the .desktop file
src/libide/greeter/ide-greeter-workspace.ui | 4 ++--
src/plugins/create-project/gbp-create-project-surface.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/greeter/ide-greeter-workspace.ui b/src/libide/greeter/ide-greeter-workspace.ui
index f06f8790d..2857e23c4 100644
--- a/src/libide/greeter/ide-greeter-workspace.ui
+++ b/src/libide/greeter/ide-greeter-workspace.ui
@@ -72,7 +72,7 @@
<signal name="notify::visible-child" handler="stack_notify_visible_child_cb"
object="IdeGreeterWorkspace" swapped="true"/>
<child>
<object class="IdeSurface" id="sections_surface">
- <property name="title" translatable="yes">Open a Project</property>
+ <property name="title" translatable="yes" context="title">Open a Project</property>
<property name="visible">true</property>
<style>
<class name="sectionssurface"/>
@@ -185,7 +185,7 @@
</child>
<child>
<object class="IdeCloneSurface" id="clone_surface">
- <property name="title" translatable="yes">Clone Repository</property>
+ <property name="title" translatable="yes" context="title">Clone Repository</property>
<property name="visible">true</property>
</object>
<packing>
diff --git a/src/plugins/create-project/gbp-create-project-surface.c
b/src/plugins/create-project/gbp-create-project-surface.c
index 5458f8956..99f02cc98 100644
--- a/src/plugins/create-project/gbp-create-project-surface.c
+++ b/src/plugins/create-project/gbp-create-project-surface.c
@@ -574,7 +574,7 @@ gbp_create_project_surface_init (GbpCreateProjectSurface *self)
gtk_widget_init_template (GTK_WIDGET (self));
gtk_widget_set_name (GTK_WIDGET (self), "create-project");
- ide_surface_set_title (IDE_SURFACE (self), _("Start New Project"));
+ ide_surface_set_title (IDE_SURFACE (self), C_("title", "Start New Project"));
projects_dir = g_file_new_for_path (ide_get_projects_dir ());
gbp_create_project_surface_set_directory (self, projects_dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]