[gnome-builder/wip/gtk4-port: 279/736] plugins/project-tree: use GtkEditable instead of entry API




commit 00b2713e93783549f951618294dcbedb215556ae
Author: Christian Hergert <chergert redhat com>
Date:   Thu Mar 31 02:54:05 2022 -0700

    plugins/project-tree: use GtkEditable instead of entry API

 src/plugins/project-tree/gbp-new-file-popover.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/project-tree/gbp-new-file-popover.c b/src/plugins/project-tree/gbp-new-file-popover.c
index 5b29639a1..4febf55b2 100644
--- a/src/plugins/project-tree/gbp-new-file-popover.c
+++ b/src/plugins/project-tree/gbp-new-file-popover.c
@@ -66,7 +66,7 @@ gbp_new_file_popover_button_clicked (GbpNewFilePopover *self,
   if (self->directory == NULL)
     return;
 
-  path = gtk_entry_get_text (self->entry);
+  path = gtk_editable_get_text (GTK_EDITABLE (self->entry));
   if (ide_str_empty0 (path))
     return;
 
@@ -178,7 +178,7 @@ gbp_new_file_popover_entry_changed (GbpNewFilePopover *self,
 
   /* make sure to strip so that warnings (eg. "file already exists") are
    * consistents with the final behavior (creating the file). */
-  stripped = g_strstrip(g_strdup (gtk_entry_get_text (entry)));
+  stripped = g_strstrip(g_strdup (gtk_editable_get_text (GTK_EDITABLE (entry))));
 
   gtk_widget_set_sensitive (GTK_WIDGET (self->button), !ide_str_empty0 (stripped));
 
@@ -372,7 +372,7 @@ gbp_new_file_popover_set_directory (GbpNewFilePopover *self,
     {
       const gchar *path;
 
-      path = gtk_entry_get_text (self->entry);
+      path = gtk_editable_get_text (GTK_EDITABLE (self->entry));
       gbp_new_file_popover_check_exists (self, directory, path);
       g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DIRECTORY]);
     }


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