[gtksourceview] vim: remove internal split signal



commit 318d30601534ae72177c8b6cfbdcf0182413d03b
Author: Christian Hergert <chergert redhat com>
Date:   Mon Dec 13 13:19:35 2021 -0800

    vim: remove internal split signal
    
    We can just use the command API for this and avoid an extra signal/API to
    pass this along to applications.

 gtksourceview/vim/gtksourcevim.c | 37 -------------------------------------
 gtksourceview/vim/gtksourcevim.h |  5 -----
 2 files changed, 42 deletions(-)
---
diff --git a/gtksourceview/vim/gtksourcevim.c b/gtksourceview/vim/gtksourcevim.c
index 0bc389ba..a2d2a19d 100644
--- a/gtksourceview/vim/gtksourcevim.c
+++ b/gtksourceview/vim/gtksourcevim.c
@@ -55,7 +55,6 @@ enum {
        FILTER,
        FORMAT,
        READY,
-       SPLIT,
        N_SIGNALS
 };
 
@@ -493,29 +492,6 @@ gtk_source_vim_class_init (GtkSourceVimClass *klass)
                              NULL, NULL,
                              NULL,
                              G_TYPE_NONE, 0);
-
-       /**
-        * GtkSourceVim::split:
-        * @self: a #GtkSourceVim
-        * @orientation: a #GtkOrientation for vertical or horizontal
-        * @new_document: %TRUE if a new document should be created
-        * @focus_split: %TRUE if the new document should be focused
-        * @numeric: a numeric value provided with the command such as
-        *   the number of columns for the split
-        */
-       signals[SPLIT] =
-               g_signal_new ("split",
-                             G_TYPE_FROM_CLASS (klass),
-                             G_SIGNAL_RUN_LAST,
-                             0,
-                             NULL, NULL,
-                             NULL,
-                             G_TYPE_NONE,
-                             3,
-                             GTK_TYPE_ORIENTATION,
-                             G_TYPE_BOOLEAN,
-                             G_TYPE_BOOLEAN,
-                             G_TYPE_INT);
 }
 
 static void
@@ -564,19 +540,6 @@ gtk_source_vim_get_command_bar_text (GtkSourceVim *self)
        return "";
 }
 
-void
-gtk_source_vim_emit_split (GtkSourceVim   *self,
-                           GtkOrientation  orientation,
-                           gboolean        new_document,
-                           gboolean        focus_split,
-                           int             numeric)
-{
-       g_return_if_fail (GTK_SOURCE_IS_VIM (self));
-
-       g_signal_emit (self, signals[SPLIT], 0,
-                      orientation, new_document, focus_split, numeric);
-}
-
 void
 gtk_source_vim_reset (GtkSourceVim *self)
 {
diff --git a/gtksourceview/vim/gtksourcevim.h b/gtksourceview/vim/gtksourcevim.h
index 295b757c..16bde865 100644
--- a/gtksourceview/vim/gtksourcevim.h
+++ b/gtksourceview/vim/gtksourcevim.h
@@ -42,10 +42,5 @@ gboolean      gtk_source_vim_emit_format          (GtkSourceVim   *self,
                                                    GtkTextIter    *begin,
                                                    GtkTextIter    *end);
 void          gtk_source_vim_emit_ready           (GtkSourceVim   *self);
-void          gtk_source_vim_emit_split           (GtkSourceVim   *self,
-                                                   GtkOrientation  orientation,
-                                                   gboolean        new_document,
-                                                   gboolean        focus_split,
-                                                   int             numeric);
 
 G_END_DECLS


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