[balsa] Pass NULL marshaller to g_signal_new()



commit e918a6249abfeecff5dbd91960faa700e3054cd0
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Nov 28 13:56:50 2018 -0500

    Pass NULL marshaller to g_signal_new()
    
    Pass NULL instead of a stock marshaller to g_signal_new();
    g_signal_new() finds it for us, and also provides a va marshaller
    (whatever that is :-).
    
    * libbalsa/address-view.c (libbalsa_address_view_class_init):
    * libbalsa/cell-renderer-button.c (libbalsa_cell_renderer_button_class_init):
    * libbalsa/imap/imap-handle.c (imap_mbox_handle_class_init):
    * libbalsa/mailbox.c (libbalsa_mailbox_class_init):
    * src/balsa-index.c (bndx_class_init):
    * src/balsa-mblist.c (bmbl_class_init):
    * src/balsa-message.c (balsa_message_class_init):
    * src/filter-run-dialog.c (balsa_filter_run_dialog_class_init):
    * src/mailbox-node.c (balsa_mailbox_node_class_init):
    * src/main-window.c (balsa_window_class_init):
    * src/toolbar-factory.c (balsa_toolbar_model_class_init):

 ChangeLog                       | 17 +++++++++++++++++
 libbalsa/address-view.c         |  2 +-
 libbalsa/cell-renderer-button.c |  2 +-
 libbalsa/imap/imap-handle.c     |  6 +++---
 libbalsa/mailbox.c              |  4 ++--
 src/balsa-index.c               |  2 +-
 src/balsa-mblist.c              |  2 +-
 src/balsa-message.c             |  2 +-
 src/filter-run-dialog.c         |  2 +-
 src/mailbox-node.c              |  8 ++++----
 src/main-window.c               |  2 +-
 src/toolbar-factory.c           |  2 +-
 12 files changed, 34 insertions(+), 17 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3b2177331..3b29dae22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2018-11-28  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Pass NULL instead of a stock marshaller to g_signal_new().
+
+       * libbalsa/address-view.c (libbalsa_address_view_class_init):
+       * libbalsa/cell-renderer-button.c
+       (libbalsa_cell_renderer_button_class_init):
+       * libbalsa/imap/imap-handle.c (imap_mbox_handle_class_init):
+       * libbalsa/mailbox.c (libbalsa_mailbox_class_init):
+       * src/balsa-index.c (bndx_class_init):
+       * src/balsa-mblist.c (bmbl_class_init):
+       * src/balsa-message.c (balsa_message_class_init):
+       * src/filter-run-dialog.c (balsa_filter_run_dialog_class_init):
+       * src/mailbox-node.c (balsa_mailbox_node_class_init):
+       * src/main-window.c (balsa_window_class_init):
+       * src/toolbar-factory.c (balsa_toolbar_model_class_init):
+
 2018-11-28  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Remove marshal lists
diff --git a/libbalsa/address-view.c b/libbalsa/address-view.c
index c16a30a9b..4759e6ffa 100644
--- a/libbalsa/address-view.c
+++ b/libbalsa/address-view.c
@@ -131,7 +131,7 @@ libbalsa_address_view_class_init(LibBalsaAddressViewClass * klass)
         g_signal_new("open-address-book",
                      G_OBJECT_CLASS_TYPE(object_class),
                      0, 0, NULL, NULL,
-                     g_cclosure_marshal_VOID__POINTER,
+                     NULL,
                      G_TYPE_NONE, 1, G_TYPE_POINTER);
 }
 
diff --git a/libbalsa/cell-renderer-button.c b/libbalsa/cell-renderer-button.c
index 6798e7d23..6a95cd6ee 100644
--- a/libbalsa/cell-renderer-button.c
+++ b/libbalsa/cell-renderer-button.c
@@ -74,7 +74,7 @@ libbalsa_cell_renderer_button_class_init(LibBalsaCellRendererButtonClass *
         g_signal_new("activated",
                      G_OBJECT_CLASS_TYPE(object_class),
                      0, 0, NULL, NULL,
-                     g_cclosure_marshal_VOID__STRING,
+                     NULL,
                      G_TYPE_NONE,
                      1, G_TYPE_STRING);
 }
diff --git a/libbalsa/imap/imap-handle.c b/libbalsa/imap/imap-handle.c
index f7916b7b5..ff2b5c8aa 100644
--- a/libbalsa/imap/imap-handle.c
+++ b/libbalsa/imap/imap-handle.c
@@ -169,7 +169,7 @@ imap_mbox_handle_class_init(ImapMboxHandleClass * klass)
                  G_SIGNAL_RUN_FIRST,
                  G_STRUCT_OFFSET(ImapMboxHandleClass, fetch_response),
                  NULL, NULL,
-                 g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+                 NULL, G_TYPE_NONE, 0);
 
   imap_mbox_handle_signals[LIST_RESPONSE] = 
     g_signal_new("list-response",
@@ -195,7 +195,7 @@ imap_mbox_handle_class_init(ImapMboxHandleClass * klass)
                  G_SIGNAL_RUN_FIRST,
                  G_STRUCT_OFFSET(ImapMboxHandleClass, expunge_notify),
                  NULL, NULL,
-                 g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1,
+                 NULL, G_TYPE_NONE, 1,
                 G_TYPE_INT);
 
   imap_mbox_handle_signals[EXISTS_NOTIFY] = 
@@ -204,7 +204,7 @@ imap_mbox_handle_class_init(ImapMboxHandleClass * klass)
                  G_SIGNAL_RUN_FIRST,
                  G_STRUCT_OFFSET(ImapMboxHandleClass, exists_notify),
                  NULL, NULL,
-                 g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+                 NULL, G_TYPE_NONE, 0);
 
   object_class->finalize = imap_mbox_handle_finalize;
 }
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index e2c43a260..75d798807 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -174,7 +174,7 @@ libbalsa_mailbox_class_init(LibBalsaMailboxClass * klass)
                      G_STRUCT_OFFSET(LibBalsaMailboxClass,
                                      changed),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+                     NULL, G_TYPE_NONE, 0);
 
     libbalsa_mailbox_signals[MESSAGE_EXPUNGED] =
         g_signal_new("message-expunged",
@@ -183,7 +183,7 @@ libbalsa_mailbox_class_init(LibBalsaMailboxClass * klass)
                      G_STRUCT_OFFSET(LibBalsaMailboxClass,
                                      message_expunged),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1,
+                     NULL, G_TYPE_NONE, 1,
                      G_TYPE_INT);
 
     libbalsa_mailbox_signals[PROGRESS_NOTIFY] =
diff --git a/src/balsa-index.c b/src/balsa-index.c
index 3a087f92a..f1c898cf8 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -190,7 +190,7 @@ bndx_class_init(BalsaIndexClass * klass)
                      G_STRUCT_OFFSET(BalsaIndexClass,
                                      index_changed),
                      NULL, NULL,
-                    g_cclosure_marshal_VOID__VOID,
+                    NULL,
                      G_TYPE_NONE, 0);
 
     object_class->dispose = bndx_destroy;
diff --git a/src/balsa-mblist.c b/src/balsa-mblist.c
index 95f009f78..6d3aaa692 100644
--- a/src/balsa-mblist.c
+++ b/src/balsa-mblist.c
@@ -188,7 +188,7 @@ bmbl_class_init(BalsaMBListClass * klass)
                      G_SIGNAL_RUN_FIRST,
                      G_STRUCT_OFFSET(BalsaMBListClass, has_unread_mailbox),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__INT,
+                     NULL,
                      G_TYPE_NONE,
                      1, G_TYPE_INT);
 
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 101ed9c09..98d10468e 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -234,7 +234,7 @@ balsa_message_class_init(BalsaMessageClass * klass)
                      G_SIGNAL_RUN_FIRST,
                      G_STRUCT_OFFSET(BalsaMessageClass, select_part),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__VOID,
+                     NULL,
                      G_TYPE_NONE, 0);
 
     object_class->dispose = balsa_message_destroy;
diff --git a/src/filter-run-dialog.c b/src/filter-run-dialog.c
index c862af661..6958b250c 100644
--- a/src/filter-run-dialog.c
+++ b/src/filter-run-dialog.c
@@ -166,7 +166,7 @@ balsa_filter_run_dialog_class_init(BalsaFilterRunDialogClass * klass)
                      G_SIGNAL_RUN_FIRST,
                     G_STRUCT_OFFSET(BalsaFilterRunDialogClass, refresh),
                      NULL, NULL,
-                    g_cclosure_marshal_VOID__OBJECT,
+                    NULL,
                      G_TYPE_NONE, 1, G_TYPE_OBJECT);
 
     object_class->dispose = balsa_filter_run_dispose;
diff --git a/src/mailbox-node.c b/src/mailbox-node.c
index 8285a91e2..1d1447653 100644
--- a/src/mailbox-node.c
+++ b/src/mailbox-node.c
@@ -134,7 +134,7 @@ balsa_mailbox_node_class_init(BalsaMailboxNodeClass * klass)
                      G_SIGNAL_RUN_FIRST,
                      G_STRUCT_OFFSET(BalsaMailboxNodeClass, save_config),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__POINTER,
+                     NULL,
                     G_TYPE_NONE, 1,
                     G_TYPE_POINTER);
     balsa_mailbox_node_signals[LOAD_CONFIG] =
@@ -143,7 +143,7 @@ balsa_mailbox_node_class_init(BalsaMailboxNodeClass * klass)
                      G_SIGNAL_RUN_FIRST,
                      G_STRUCT_OFFSET(BalsaMailboxNodeClass, load_config),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__POINTER,
+                     NULL,
                     G_TYPE_NONE, 1,
                     G_TYPE_POINTER);
     balsa_mailbox_node_signals[SHOW_PROP_DIALOG] =
@@ -153,7 +153,7 @@ balsa_mailbox_node_class_init(BalsaMailboxNodeClass * klass)
                      G_STRUCT_OFFSET(BalsaMailboxNodeClass,
                                      show_prop_dialog),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__VOID,
+                     NULL,
                     G_TYPE_NONE, 0);
     balsa_mailbox_node_signals[APPEND_SUBTREE] =
        g_signal_new("append-subtree",
@@ -161,7 +161,7 @@ balsa_mailbox_node_class_init(BalsaMailboxNodeClass * klass)
                      G_SIGNAL_RUN_FIRST,
                      G_STRUCT_OFFSET(BalsaMailboxNodeClass, append_subtree),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__VOID,
+                     NULL,
                     G_TYPE_NONE, 0);
 
     klass->save_config = balsa_mailbox_node_real_save_config;
diff --git a/src/main-window.c b/src/main-window.c
index a5e45254d..1cf09a6aa 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -204,7 +204,7 @@ balsa_window_class_init(BalsaWindowClass * klass)
                      G_SIGNAL_RUN_FIRST,
                      G_STRUCT_OFFSET(BalsaWindowClass, identities_changed),
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+                     NULL, G_TYPE_NONE, 0);
 
     object_class->dispose = balsa_window_destroy;
 
diff --git a/src/toolbar-factory.c b/src/toolbar-factory.c
index b0256dcd1..294ad8e7e 100644
--- a/src/toolbar-factory.c
+++ b/src/toolbar-factory.c
@@ -89,7 +89,7 @@ balsa_toolbar_model_class_init(BalsaToolbarModelClass* klass)
                      G_SIGNAL_RUN_FIRST,
                      0,
                      NULL, NULL,
-                     g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+                     NULL, G_TYPE_NONE, 0);
 
     object_class = G_OBJECT_CLASS(klass);
     object_class->finalize = balsa_toolbar_model_finalize;


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