[gnome-text-editor] infobar: remove unused action and widget



commit 9080b8c5d454969aefd77866d7527ed6563085d5
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 10 15:38:56 2022 -0800

    infobar: remove unused action and widget

 src/editor-info-bar.c | 14 --------------
 1 file changed, 14 deletions(-)
---
diff --git a/src/editor-info-bar.c b/src/editor-info-bar.c
index 81551a2..de6384b 100644
--- a/src/editor-info-bar.c
+++ b/src/editor-info-bar.c
@@ -35,7 +35,6 @@ struct _EditorInfoBar
 
   /* Discard widgetry */
   GtkInfoBar     *discard_infobar;
-  GtkButton      *close;
   GtkButton      *discard;
   GtkButton      *save;
   GtkLabel       *title;
@@ -118,18 +117,6 @@ on_notify_cb (EditorInfoBar  *self,
   editor_info_bar_update (self);
 }
 
-static void
-editor_info_bar_close (GtkWidget   *widget,
-                       const gchar *action_name,
-                       GVariant    *param)
-{
-  EditorInfoBar *self = (EditorInfoBar *)widget;
-
-  g_assert (EDITOR_IS_INFO_BAR (self));
-
-  gtk_info_bar_set_revealed (self->discard_infobar, FALSE);
-}
-
 static void
 on_response_cb (EditorInfoBar *self,
                 int            response,
@@ -229,7 +216,6 @@ editor_info_bar_class_init (EditorInfoBarClass *klass)
   gtk_widget_class_bind_template_child (widget_class, EditorInfoBar, save);
   gtk_widget_class_bind_template_child (widget_class, EditorInfoBar, subtitle);
   gtk_widget_class_bind_template_child (widget_class, EditorInfoBar, title);
-  gtk_widget_class_install_action (widget_class, "infobar.close", NULL, editor_info_bar_close);
 }
 
 static void


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