[gnome-builder/wip/gtk4-port: 543/736] libide/terminal: remove text-inserted signal




commit 1f894811f0ef34add728ce8be858228b1302dcc0
Author: Christian Hergert <chergert redhat com>
Date:   Sat Apr 9 13:27:32 2022 -0700

    libide/terminal: remove text-inserted signal
    
    This doesn't exist in GTK 4.x VTE and wasn't emitted anymore anyway since
    0.66 of VTE.

 src/libide/terminal/ide-terminal-page.c | 34 ---------------------------------
 1 file changed, 34 deletions(-)
---
diff --git a/src/libide/terminal/ide-terminal-page.c b/src/libide/terminal/ide-terminal-page.c
index 4e6f64af8..99a59e547 100644
--- a/src/libide/terminal/ide-terminal-page.c
+++ b/src/libide/terminal/ide-terminal-page.c
@@ -52,13 +52,7 @@ enum {
   N_PROPS
 };
 
-enum {
-  TEXT_INSERTED,
-  N_SIGNALS
-};
-
 static GParamSpec *properties [N_PROPS];
-static guint signals [N_SIGNALS];
 
 static void ide_terminal_page_connect_terminal (IdeTerminalPage *self,
                                                 VteTerminal     *terminal);
@@ -356,16 +350,6 @@ ide_terminal_page_context_set (GtkWidget  *widget,
     self->launcher = ide_terminal_launcher_new (context);
 }
 
-static void
-ide_terminal_page_on_text_inserted_cb (IdeTerminalPage *self,
-                                       VteTerminal     *terminal)
-{
-  g_assert (IDE_IS_TERMINAL_PAGE (self));
-  g_assert (VTE_IS_TERMINAL (terminal));
-
-  g_signal_emit (self, signals [TEXT_INSERTED], 0);
-}
-
 static GFile *
 ide_terminal_page_get_file_or_directory (IdePage *page)
 {
@@ -528,18 +512,6 @@ ide_terminal_page_class_init (IdeTerminalPageClass *klass)
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_properties (object_class, N_PROPS, properties);
-
-  signals [TEXT_INSERTED] =
-    g_signal_new ("text-inserted",
-                  G_TYPE_FROM_CLASS (klass),
-                  G_SIGNAL_RUN_LAST,
-                  0,
-                  NULL, NULL,
-                  g_cclosure_marshal_VOID__VOID,
-                  G_TYPE_NONE, 0);
-  g_signal_set_va_marshaller (signals [TEXT_INSERTED],
-                              G_TYPE_FROM_CLASS (klass),
-                              g_cclosure_marshal_VOID__VOIDv);
 }
 
 static void
@@ -556,12 +528,6 @@ ide_terminal_page_init (IdeTerminalPage *self)
 
   gtk_widget_init_template (GTK_WIDGET (self));
 
-  g_signal_connect_object (self->terminal,
-                           "text-inserted",
-                           G_CALLBACK (ide_terminal_page_on_text_inserted_cb),
-                           self,
-                           G_CONNECT_SWAPPED);
-
   panel_widget_set_icon_name (PANEL_WIDGET (self), "builder-terminal-symbolic");
   ide_page_set_can_split (IDE_PAGE (self), TRUE);
   ide_page_set_menu_id (IDE_PAGE (self), "ide-terminal-page-document-menu");


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