[gnome-notes] note-view: Remove unused signal callback
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] note-view: Remove unused signal callback
- Date: Tue, 15 Jun 2021 03:17:16 +0000 (UTC)
commit 23eef5cdb07a46e12a5876ce074846aa898e92b4
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sat Jun 5 10:10:22 2021 +0530
note-view: Remove unused signal callback
The callback does nothing. So let's remove it
src/bjb-note-view.c | 16 ----------------
1 file changed, 16 deletions(-)
---
diff --git a/src/bjb-note-view.c b/src/bjb-note-view.c
index 2651ae72..9a0ed9f2 100644
--- a/src/bjb-note-view.c
+++ b/src/bjb-note-view.c
@@ -53,7 +53,6 @@ struct _BjbNoteView
G_DEFINE_TYPE (BjbNoteView, bjb_note_view, GTK_TYPE_OVERLAY)
-static void on_window_closed(GtkWidget *window,gpointer note);
static void on_note_color_changed_cb (BijiNoteObj *note, BjbNoteView *self);
void
@@ -73,7 +72,6 @@ bjb_note_view_set_detached (BjbNoteView *self,
static void
bjb_note_view_disconnect (BjbNoteView *self)
{
- g_signal_handlers_disconnect_by_func (self->window, on_window_closed, self->note);
g_signal_handlers_disconnect_by_func (self->note, on_note_color_changed_cb, self);
}
@@ -139,17 +137,6 @@ bjb_note_view_init (BjbNoteView *self)
{
}
-static void
-on_window_closed(GtkWidget *window,gpointer note)
-{
- if ( window == NULL )
- {
- /* Note is deleted */
- }
-}
-
-/* Callbacks */
-
static void
on_note_color_changed_cb (BijiNoteObj *note, BjbNoteView *self)
{
@@ -200,9 +187,6 @@ bjb_note_view_constructed (GObject *obj)
/* view new from note deserializes the note-content. */
self->view = biji_note_obj_open (self->note);
- g_signal_connect(self->window,"destroy",
- G_CALLBACK(on_window_closed), self->note);
-
self->stack = gtk_stack_new ();
gtk_widget_show (self->stack);
gtk_container_add (GTK_CONTAINER (self), self->stack);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]