[gnome-builder/wip/gtk4-port] libide/greeter: remove remove clone from libide-greeter



commit ff8c04ef320c4a7b7e3d9937a658d882f215d5a8
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 6 18:02:18 2022 -0700

    libide/greeter: remove remove clone from libide-greeter
    
    This belongs in the vcsui plugin instead as that is where the widget lives.

 src/libide/greeter/ide-greeter-buttons-section.c |  9 ---------
 src/plugins/vcsui/gbp-vcsui-workspace-addin.c    | 10 ++++++++++
 2 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/src/libide/greeter/ide-greeter-buttons-section.c 
b/src/libide/greeter/ide-greeter-buttons-section.c
index 8581abb14..0f36f3bdb 100644
--- a/src/libide/greeter/ide-greeter-buttons-section.c
+++ b/src/libide/greeter/ide-greeter-buttons-section.c
@@ -80,15 +80,6 @@ ide_greeter_buttons_section_init (IdeGreeterButtonsSection *self)
                                                         "action-name", "win.open",
                                                         "use-underline", TRUE,
                                                         NULL));
-  ide_greeter_buttons_section_add_button (self,
-                                          100,
-                                          g_object_new (GTK_TYPE_BUTTON,
-                                                        "label", _("_Clone Repository…"),
-                                                        "visible", TRUE,
-                                                        "action-name", "win.surface",
-                                                        "action-target", g_variant_new_string ("clone"),
-                                                        "use-underline", TRUE,
-                                                        NULL));
 }
 
 #define GET_PRIORITY(w)   GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w),"PRIORITY"))
diff --git a/src/plugins/vcsui/gbp-vcsui-workspace-addin.c b/src/plugins/vcsui/gbp-vcsui-workspace-addin.c
index b35fb52cb..6cea761d4 100644
--- a/src/plugins/vcsui/gbp-vcsui-workspace-addin.c
+++ b/src/plugins/vcsui/gbp-vcsui-workspace-addin.c
@@ -22,6 +22,8 @@
 
 #include "config.h"
 
+#include <glib/gi18n.h>
+
 #include <libide-gui.h>
 #include <libide-greeter.h>
 
@@ -51,6 +53,14 @@ gbp_vcsui_workspace_addin_load (IdeWorkspaceAddin *addin,
       ide_greeter_workspace_add_page (IDE_GREETER_WORKSPACE (workspace),
                                       GTK_WIDGET (self->clone),
                                       "clone");
+      ide_greeter_workspace_add_button (IDE_GREETER_WORKSPACE (workspace),
+                                        g_object_new (GTK_TYPE_BUTTON,
+                                                      "label", _("_Clone Repository…"),
+                                                      "action-name", "greeter.page",
+                                                      "action-target", g_variant_new_string ("clone"),
+                                                      "use-underline", TRUE,
+                                                      NULL),
+                                        100);
     }
 
   IDE_EXIT;


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