[gnome-builder] greeter: tweak word usage for greeter



commit 4fe1cc1cf2da940c039a1a1f216b6a9ec35a682c
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 18 17:31:05 2019 -0800

    greeter: tweak word usage for greeter

 src/libide/greeter/ide-greeter-workspace-actions.c | 14 +++++++++++---
 src/libide/greeter/ide-greeter-workspace.ui        |  2 +-
 2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/src/libide/greeter/ide-greeter-workspace-actions.c 
b/src/libide/greeter/ide-greeter-workspace-actions.c
index 63cc3aa8f..5a11649ac 100644
--- a/src/libide/greeter/ide-greeter-workspace-actions.c
+++ b/src/libide/greeter/ide-greeter-workspace-actions.c
@@ -68,6 +68,7 @@ ide_greeter_workspace_dialog_notify_filter (IdeGreeterWorkspace  *self,
 {
   GtkFileFilter *filter;
   GtkFileChooserAction action;
+  const gchar *title;
 
   g_assert (IDE_IS_GREETER_WORKSPACE (self));
   g_assert (pspec != NULL);
@@ -76,11 +77,18 @@ ide_greeter_workspace_dialog_notify_filter (IdeGreeterWorkspace  *self,
   filter = gtk_file_chooser_get_filter (GTK_FILE_CHOOSER (dialog));
 
   if (filter && g_object_get_data (G_OBJECT (filter), "IS_DIRECTORY"))
-    action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER;
+    {
+      action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER;
+      title = _("Select Project Folder");
+    }
   else
-    action = GTK_FILE_CHOOSER_ACTION_OPEN;
+    {
+      action = GTK_FILE_CHOOSER_ACTION_OPEN;
+      title = _("Select Project File");
+    }
 
   gtk_file_chooser_set_action (GTK_FILE_CHOOSER (dialog), action);
+  gtk_window_set_title (GTK_WINDOW (dialog), title);
 }
 
 static void
@@ -104,7 +112,7 @@ ide_greeter_workspace_actions_open (GSimpleAction *action,
                          "action", GTK_FILE_CHOOSER_ACTION_OPEN,
                          "transient-for", self,
                          "modal", TRUE,
-                         "title", _("Open Project"),
+                         "title", _("Select Project Folder"),
                          "visible", TRUE,
                          NULL);
   gtk_dialog_add_buttons (GTK_DIALOG (dialog),
diff --git a/src/libide/greeter/ide-greeter-workspace.ui b/src/libide/greeter/ide-greeter-workspace.ui
index d509a1f28..4980f13d0 100644
--- a/src/libide/greeter/ide-greeter-workspace.ui
+++ b/src/libide/greeter/ide-greeter-workspace.ui
@@ -154,7 +154,7 @@
         </child>
         <child>
           <object class="IdeCloneSurface" id="clone_surface">
-            <property name="title" translatable="yes">Clone Project</property>
+            <property name="title" translatable="yes">Clone Repository</property>
             <property name="visible">true</property>
           </object>
           <packing>


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