[balsa] Cast weak-pointer-location to (gpointer *)



commit 5c264f532ce326476188e072c0562a19a575553f
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Feb 18 12:11:52 2019 -0500

    Cast weak-pointer-location to (gpointer *)
    
    Cast weak-pointer-location to (gpointer *) in calls to
    g_object_{add,remove}_weak_pointer()
    
    * libbalsa/identity.c (libbalsa_identity_config_dialog):
    * libbalsa/mailbox_maildir.c (free_message_info):
    * libbalsa/mailbox_mbox.c (free_message_info):
    * libbalsa/mailbox_mh.c (lbm_mh_free_message_info):
    * src/balsa-index.c (bndx_clear_if_last_ref), (bndx_pipe_response):
    * src/balsa-mblist.c (balsa_mblist_get_store),
    (update_mailbox_idle), (bmbl_mailbox_changed_cb):
    * src/balsa-mime-widget-image.c
    (balsa_mime_widget_image_resize_all), (img_check_size):
    * src/filter-edit-callbacks.c (fe_edit_condition):
    * src/folder-conf.c (folder_conf_imap_node),
    (folder_conf_imap_sub_node):
    * src/information-dialog.c (balsa_information_list):
    * src/mailbox-conf.c (mailbox_conf_new):
    * src/mailbox-node.c (imap_scan_attach_mailbox),
    (balsa_mailbox_node_scan_children), (bmbn_scan_children_idle):
    * src/main-window.c (balsa_window_new),
    (bw_real_open_mbnode_idle_cb), (bw_real_open_mbnode_thread),
    (balsa_window_real_open_mbnode), (bw_focus_idle),
    (balsa_window_real_close_mbnode), (bw_notebook_switch_page_cb):
    * src/main.c (balsa_activate_cb):
    * src/message-window.c (destroy_message_window),
    (message_window_new):
    * src/toolbar-prefs.c (customize_dialog_cb):

 ChangeLog                     | 30 ++++++++++++++++++++++++++++++
 libbalsa/identity.c           |  2 +-
 libbalsa/mailbox_maildir.c    |  2 +-
 libbalsa/mailbox_mbox.c       |  2 +-
 libbalsa/mailbox_mh.c         |  2 +-
 src/balsa-index.c             |  8 ++++----
 src/balsa-mblist.c            |  6 +++---
 src/balsa-mime-widget-image.c |  4 ++--
 src/filter-edit-callbacks.c   |  2 +-
 src/folder-conf.c             |  8 ++++----
 src/information-dialog.c      |  2 +-
 src/mailbox-conf.c            |  2 +-
 src/mailbox-node.c            |  8 ++++----
 src/main-window.c             | 18 +++++++++---------
 src/main.c                    |  2 +-
 src/message-window.c          |  4 ++--
 src/toolbar-prefs.c           |  2 +-
 17 files changed, 67 insertions(+), 37 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6d631d75c..85d1b2f00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,33 @@
+2019-02-18  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Cast weak-pointer-location to (gpointer *) in calls to
+       g_object{add,remove}_weak_pointer()
+
+       * libbalsa/identity.c (libbalsa_identity_config_dialog):
+       * libbalsa/mailbox_maildir.c (free_message_info):
+       * libbalsa/mailbox_mbox.c (free_message_info):
+       * libbalsa/mailbox_mh.c (lbm_mh_free_message_info):
+       * src/balsa-index.c (bndx_clear_if_last_ref), (bndx_pipe_response):
+       * src/balsa-mblist.c (balsa_mblist_get_store),
+       (update_mailbox_idle), (bmbl_mailbox_changed_cb):
+       * src/balsa-mime-widget-image.c
+       (balsa_mime_widget_image_resize_all), (img_check_size):
+       * src/filter-edit-callbacks.c (fe_edit_condition):
+       * src/folder-conf.c (folder_conf_imap_node),
+       (folder_conf_imap_sub_node):
+       * src/information-dialog.c (balsa_information_list):
+       * src/mailbox-conf.c (mailbox_conf_new):
+       * src/mailbox-node.c (imap_scan_attach_mailbox),
+       (balsa_mailbox_node_scan_children), (bmbn_scan_children_idle):
+       * src/main-window.c (balsa_window_new),
+       (bw_real_open_mbnode_idle_cb), (bw_real_open_mbnode_thread),
+       (balsa_window_real_open_mbnode), (bw_focus_idle),
+       (balsa_window_real_close_mbnode), (bw_notebook_switch_page_cb):
+       * src/main.c (balsa_activate_cb):
+       * src/message-window.c (destroy_message_window),
+       (message_window_new):
+       * src/toolbar-prefs.c (customize_dialog_cb):
+
 2019-02-17  Peter Bloomfield  <pbloomfield bellsouth net>
 
        * libbalsa/mailbox.c: remove an unused function;
diff --git a/libbalsa/identity.c b/libbalsa/identity.c
index 215dbc1a1..289e7a40b 100644
--- a/libbalsa/identity.c
+++ b/libbalsa/identity.c
@@ -1806,7 +1806,7 @@ libbalsa_identity_config_dialog(GtkWindow *parent, GList **identities,
     g_signal_connect(dialog, "response",
                      G_CALLBACK(md_response_cb), tree);
     g_object_set_data(G_OBJECT(dialog), "tree", tree);
-    g_object_add_weak_pointer(G_OBJECT(dialog), (gpointer) & dialog);
+    g_object_add_weak_pointer(G_OBJECT(dialog), (gpointer *) & dialog);
     gtk_dialog_set_default_response(GTK_DIALOG(dialog),
                                     IDENTITY_RESPONSE_CLOSE);
 
diff --git a/libbalsa/mailbox_maildir.c b/libbalsa/mailbox_maildir.c
index 78e7f439e..de3a64ee7 100644
--- a/libbalsa/mailbox_maildir.c
+++ b/libbalsa/mailbox_maildir.c
@@ -612,7 +612,7 @@ free_message_info(struct message_info *msg_info)
        msg_info->local_info.message->mailbox = NULL;
        msg_info->local_info.message->msgno   = 0;
        g_object_remove_weak_pointer(G_OBJECT(msg_info->local_info.message),
-                                    (gpointer) & msg_info->local_info.message);
+                                    (gpointer *) & msg_info->local_info.message);
     }
     g_free(msg_info);
 }
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index 0b6cb43ff..c1986de92 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -567,7 +567,7 @@ free_message_info(struct message_info *msg_info)
        msg_info->local_info.message->mailbox = NULL;
        msg_info->local_info.message->msgno   = 0;
         g_object_remove_weak_pointer(G_OBJECT(msg_info->local_info.message),
-                                     (gpointer) & msg_info->local_info.message);
+                                     (gpointer *) & msg_info->local_info.message);
        msg_info->local_info.message = NULL;
     }
     g_free(msg_info);
diff --git a/libbalsa/mailbox_mh.c b/libbalsa/mailbox_mh.c
index 4ed62f1d1..ac1261db9 100644
--- a/libbalsa/mailbox_mh.c
+++ b/libbalsa/mailbox_mh.c
@@ -503,7 +503,7 @@ lbm_mh_free_message_info(struct message_info *msg_info)
        msg_info->local_info.message->mailbox = NULL;
        msg_info->local_info.message->msgno   = 0;
        g_object_remove_weak_pointer(G_OBJECT(msg_info->local_info.message),
-                                    (gpointer) &msg_info->local_info.message);
+                                    (gpointer *) &msg_info->local_info.message);
     }
     g_free(msg_info);
 }
diff --git a/src/balsa-index.c b/src/balsa-index.c
index 0850dc4c0..195397609 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -472,10 +472,10 @@ bndx_clear_if_last_ref(gpointer data)
 {
     GObject **object = data;
 
-    g_object_add_weak_pointer(G_OBJECT(*object), data);
+    g_object_add_weak_pointer(G_OBJECT(*object), (gpointer *) data);
     g_object_unref(*object);
     if (*object) {
-        g_object_remove_weak_pointer(*object, data);
+        g_object_remove_weak_pointer(*object, (gpointer *) data);
         return FALSE;
     }
     return TRUE;
@@ -2606,7 +2606,7 @@ bndx_pipe_response(GtkWidget * dialog, gint response,
 {
     LibBalsaMailbox *mailbox = info->mailbox;
 
-    g_object_add_weak_pointer(G_OBJECT(mailbox), (gpointer) & mailbox);
+    g_object_add_weak_pointer(G_OBJECT(mailbox), (gpointer *) & mailbox);
 
     if (response == GTK_RESPONSE_OK) {
         gchar *pipe_cmd;
@@ -2634,7 +2634,7 @@ bndx_pipe_response(GtkWidget * dialog, gint response,
 
     if (!mailbox)
         return;
-    g_object_remove_weak_pointer(G_OBJECT(mailbox), (gpointer) & mailbox);
+    g_object_remove_weak_pointer(G_OBJECT(mailbox), (gpointer *) & mailbox);
 
     libbalsa_mailbox_close(mailbox, balsa_app.expunge_on_close);
     g_object_set_data(G_OBJECT(mailbox), BALSA_INDEX_PIPE_INFO, NULL);
diff --git a/src/balsa-mblist.c b/src/balsa-mblist.c
index 58501d309..dd340edff 100644
--- a/src/balsa-mblist.c
+++ b/src/balsa-mblist.c
@@ -482,7 +482,7 @@ balsa_mblist_get_store(void)
                                G_TYPE_STRING      /* TOTAL_COLUMN  */
             );
         g_object_add_weak_pointer(G_OBJECT(balsa_app.mblist_tree_store),
-                                  (gpointer) & balsa_app.
+                                  (gpointer *) & balsa_app.
                                   mblist_tree_store);
     }
 
@@ -990,7 +990,7 @@ update_mailbox_idle(struct update_mbox_data *umd)
 
     if (umd->mailbox) {
         g_object_remove_weak_pointer(G_OBJECT(umd->mailbox),
-                                     (gpointer) & umd->mailbox);
+                                     (gpointer *) & umd->mailbox);
         g_object_set_data(G_OBJECT(umd->mailbox), "mblist-update", NULL);
 
         if (balsa_app.mblist_tree_store) {
@@ -1042,7 +1042,7 @@ bmbl_mailbox_changed_cb(LibBalsaMailbox * mailbox, gpointer data)
         g_object_set_data(G_OBJECT(mailbox), "mblist-update", umd);
         umd->mailbox = mailbox;
         g_object_add_weak_pointer(G_OBJECT(mailbox),
-                                  (gpointer) & umd->mailbox);
+                                  (gpointer *) & umd->mailbox);
         g_idle_add((GSourceFunc) update_mailbox_idle, umd);
     }
 
diff --git a/src/balsa-mime-widget-image.c b/src/balsa-mime-widget-image.c
index 47834a64b..ad86415d5 100644
--- a/src/balsa-mime-widget-image.c
+++ b/src/balsa-mime-widget-image.c
@@ -166,7 +166,7 @@ balsa_mime_widget_image_resize_all(GtkWidget * widget, gpointer user_data)
         g_object_set_data(G_OBJECT(widget), "check_size_sched",
                           GINT_TO_POINTER(TRUE));
         *widget_p = widget;
-        g_object_add_weak_pointer(G_OBJECT(widget), (gpointer) widget_p);
+        g_object_add_weak_pointer(G_OBJECT(widget), (gpointer *) widget_p);
         g_idle_add((GSourceFunc) img_check_size, widget_p);
     }
 }
@@ -203,7 +203,7 @@ img_check_size(GtkImage ** widget_p)
     if (!widget) {
        return FALSE;
     }
-    g_object_remove_weak_pointer(G_OBJECT(widget), (gpointer) widget_p);
+    g_object_remove_weak_pointer(G_OBJECT(widget), (gpointer *) widget_p);
 
     viewport = gtk_widget_get_ancestor(GTK_WIDGET(widget), GTK_TYPE_VIEWPORT);
     orig_width = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget),
diff --git a/src/filter-edit-callbacks.c b/src/filter-edit-callbacks.c
index 2d8bdd779..8ecafd4b2 100644
--- a/src/filter-edit-callbacks.c
+++ b/src/filter-edit-callbacks.c
@@ -1251,7 +1251,7 @@ fe_edit_condition(GtkWidget * throwaway,gpointer is_new_cnd)
        libbalsa_macosx_menu_for_parent(condition_dialog, GTK_WINDOW(fe_window));
 #endif
         g_object_add_weak_pointer(G_OBJECT(condition_dialog),
-                                  (gpointer) &condition_dialog);
+                                  (gpointer *) &condition_dialog);
 
         g_signal_connect(G_OBJECT(condition_dialog), "response",
                          G_CALLBACK(condition_dialog_response), NULL);
diff --git a/src/folder-conf.c b/src/folder-conf.c
index def90f81e..95748a428 100644
--- a/src/folder-conf.c
+++ b/src/folder-conf.c
@@ -255,7 +255,7 @@ folder_conf_imap_node(BalsaMailboxNode *mn)
     libbalsa_macosx_menu_for_parent(GTK_WIDGET(fcw->dialog), GTK_WINDOW(balsa_app.main_window));
 #endif
     g_object_add_weak_pointer(G_OBJECT(fcw->dialog),
-                              (gpointer) &fcw->dialog);
+                              (gpointer *) &fcw->dialog);
     gtk_window_set_role(GTK_WINDOW(fcw->dialog), "folder_config_dialog");
     if (mn) {
         g_object_set_data_full(G_OBJECT(mn),
@@ -264,7 +264,7 @@ folder_conf_imap_node(BalsaMailboxNode *mn)
     } else {
         fcw_new = fcw;
         g_object_add_weak_pointer(G_OBJECT(fcw->dialog),
-                                  (gpointer) &fcw_new);
+                                  (gpointer *) &fcw_new);
     }
 
     fcw->server_cfg = libbalsa_server_cfg_new(fcw->server, (mn != NULL) ? mn->name : NULL);
@@ -675,7 +675,7 @@ folder_conf_imap_sub_node(BalsaMailboxNode * mn)
     libbalsa_macosx_menu_for_parent(GTK_WIDGET(sdd->dialog), GTK_WINDOW(balsa_app.main_window));
 #endif
     g_object_add_weak_pointer(G_OBJECT(sdd->dialog),
-                              (gpointer) &sdd->dialog);
+                              (gpointer *) &sdd->dialog);
     /* `Enter' key => Create: */
     gtk_dialog_set_default_response(GTK_DIALOG(sdd->dialog), GTK_RESPONSE_OK);
     gtk_window_set_role(GTK_WINDOW(sdd->dialog), "subfolder_config_dialog");
@@ -687,7 +687,7 @@ folder_conf_imap_sub_node(BalsaMailboxNode * mn)
     } else {
         sdd_new = sdd;
         g_object_add_weak_pointer(G_OBJECT(sdd->dialog),
-                                  (gpointer) &sdd_new);
+                                  (gpointer *) &sdd_new);
     }
 
     grid = libbalsa_create_grid();
diff --git a/src/information-dialog.c b/src/information-dialog.c
index 06af13d55..d7bf0e385 100644
--- a/src/information-dialog.c
+++ b/src/information-dialog.c
@@ -248,7 +248,7 @@ balsa_information_list(GtkWindow *parent, LibBalsaInformationType type,
        gtk_window_set_role(GTK_WINDOW(information_dialog), "Information");
 
         g_object_add_weak_pointer(G_OBJECT(information_dialog),
-                                  (gpointer) &information_list);
+                                  (gpointer *) &information_list);
 
        /* A scrolled window for the list. */
        scrolled_window = gtk_scrolled_window_new(NULL, NULL);
diff --git a/src/mailbox-conf.c b/src/mailbox-conf.c
index 1831d3da6..9fe62f627 100644
--- a/src/mailbox-conf.c
+++ b/src/mailbox-conf.c
@@ -399,7 +399,7 @@ mailbox_conf_new(GType mailbox_type)
     }
 
     dialog = run_mailbox_conf(NULL, mailbox_type, FALSE);
-    g_object_add_weak_pointer(G_OBJECT(dialog), (gpointer) &dialog);
+    g_object_add_weak_pointer(G_OBJECT(dialog), (gpointer *) &dialog);
 }
 
 /*
diff --git a/src/mailbox-node.c b/src/mailbox-node.c
index e25caba51..f349664f2 100644
--- a/src/mailbox-node.c
+++ b/src/mailbox-node.c
@@ -437,9 +437,9 @@ imap_scan_attach_mailbox(BalsaMailboxNode * mbnode, imap_scan_item * isi)
     if (isi->special) {
        if (*isi->special)
            g_object_remove_weak_pointer(G_OBJECT(*isi->special),
-                                        (gpointer) isi->special);
+                                        (gpointer *) isi->special);
         *isi->special = mailbox;
-       g_object_add_weak_pointer(G_OBJECT(m), (gpointer) isi->special);
+       g_object_add_weak_pointer(G_OBJECT(m), (gpointer *) isi->special);
         if (isi->special == &balsa_app.outbox)
             mailbox->no_reassemble = TRUE;
     }
@@ -837,7 +837,7 @@ balsa_mailbox_node_scan_children(BalsaMailboxNode * mbnode)
                                    BALSA_MAILBOX_NODE_LIST_KEY)) {
         BalsaMailboxNode **mn = g_new(BalsaMailboxNode *, 1);
         *mn = mbnode;
-        g_object_add_weak_pointer(G_OBJECT(mbnode), (gpointer) mn);
+        g_object_add_weak_pointer(G_OBJECT(mbnode), (gpointer *) mn);
         g_object_set_data(G_OBJECT(mbnode), BALSA_MAILBOX_NODE_LIST_KEY,
                           g_slist_reverse(list));
         g_idle_add((GSourceFunc) bmbn_scan_children_idle, mn);
@@ -884,7 +884,7 @@ bmbn_scan_children_idle(BalsaMailboxNode ** mbnode)
     if (*mbnode) {
         g_object_set_data(G_OBJECT(*mbnode), BALSA_MAILBOX_NODE_LIST_KEY,
                           NULL);
-        g_object_remove_weak_pointer(G_OBJECT(*mbnode), (gpointer) mbnode);
+        g_object_remove_weak_pointer(G_OBJECT(*mbnode), (gpointer *) mbnode);
     }
     g_free(mbnode);
 
diff --git a/src/main-window.c b/src/main-window.c
index 47a34f68e..53d063289 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -2202,7 +2202,7 @@ balsa_window_new(GtkApplication *application)
                      G_CALLBACK (bw_notebook_drag_motion_cb), NULL);
     balsa_app.notebook = window->notebook;
     g_object_add_weak_pointer(G_OBJECT(window->notebook),
-                             (gpointer) &balsa_app.notebook);
+                             (gpointer *) &balsa_app.notebook);
 
     window->preview = balsa_message_new();
     gtk_widget_hide(window->preview);
@@ -2794,7 +2794,7 @@ bw_real_open_mbnode_idle_cb(BalsaWindowRealOpenMbnodeInfo * info)
 
     balsa_window_decrease_activity(window, info->message);
     g_object_remove_weak_pointer(G_OBJECT(window),
-                                 (gpointer) &info->window);
+                                 (gpointer *) &info->window);
     g_free(info->message);
 
     if (balsa_find_notebook_page_num(mailbox) >= 0) {
@@ -2896,7 +2896,7 @@ bw_real_open_mbnode_thread(BalsaWindowRealOpenMbnodeInfo * info)
         if (info->window) {
             balsa_window_decrease_activity(info->window, info->message);
             g_object_remove_weak_pointer(G_OBJECT(info->window),
-                                         (gpointer) &info->window);
+                                         (gpointer *) &info->window);
         }
         g_free(info->message);
         g_object_unref(g_object_ref_sink(info->index));
@@ -2933,7 +2933,7 @@ balsa_window_real_open_mbnode(BalsaWindow * window,
     info = g_new(BalsaWindowRealOpenMbnodeInfo, 1);
 
     info->window = window;
-    g_object_add_weak_pointer(G_OBJECT(window), (gpointer) &info->window);
+    g_object_add_weak_pointer(G_OBJECT(window), (gpointer *) &info->window);
 
     info->mbnode = g_object_ref(mbnode);
     info->set_current = set_current;
@@ -2958,7 +2958,7 @@ static gboolean
 bw_focus_idle(LibBalsaMailbox ** mailbox)
 {
     if (*mailbox)
-       g_object_remove_weak_pointer(G_OBJECT(*mailbox), (gpointer) mailbox);
+       g_object_remove_weak_pointer(G_OBJECT(*mailbox), (gpointer *) mailbox);
     if (balsa_app.mblist_tree_store)
         balsa_mblist_focus_mailbox(balsa_app.mblist, *mailbox);
     g_free(mailbox);
@@ -3003,7 +3003,7 @@ balsa_window_real_close_mbnode(BalsaWindow * window,
             bw_enable_message_menus(window, 0);
            if (window->current_index)
                g_object_remove_weak_pointer(G_OBJECT(window->current_index),
-                                            (gpointer)
+                                            (gpointer *)
                                             &window->current_index);
             window->current_index = NULL;
 
@@ -3016,7 +3016,7 @@ balsa_window_real_close_mbnode(BalsaWindow * window,
     mailbox = g_new(LibBalsaMailbox *, 1);
     if (index) {
        *mailbox = BALSA_INDEX(index)->mailbox_node-> mailbox;
-       g_object_add_weak_pointer(G_OBJECT(*mailbox), (gpointer) mailbox);
+       g_object_add_weak_pointer(G_OBJECT(*mailbox), (gpointer *) mailbox);
     } else
        *mailbox = NULL;
     g_idle_add((GSourceFunc) bw_focus_idle, mailbox);
@@ -4094,7 +4094,7 @@ bw_notebook_switch_page_cb(GtkWidget * notebook,
 
     if (window->current_index) {
        g_object_remove_weak_pointer(G_OBJECT(window->current_index),
-                                    (gpointer) &window->current_index);
+                                    (gpointer *) &window->current_index);
        /* Note when this mailbox was hidden, for use in auto-closing. */
        time(&BALSA_INDEX(window->current_index)->mailbox_node->last_use);
         window->current_index = NULL;
@@ -4109,7 +4109,7 @@ bw_notebook_switch_page_cb(GtkWidget * notebook,
 
     window->current_index = GTK_WIDGET(index);
     g_object_add_weak_pointer(G_OBJECT(index),
-                             (gpointer) &window->current_index);
+                             (gpointer *) &window->current_index);
     /* Note when this mailbox was exposed, for use in auto-expunge. */
     time(&index->mailbox_node->last_use);
 
diff --git a/src/main.c b/src/main.c
index c23f93aec..3d686c39b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -602,7 +602,7 @@ balsa_activate_cb(GApplication *application,
     window = balsa_window_new(GTK_APPLICATION(application));
     balsa_app.main_window = BALSA_WINDOW(window);
     g_object_add_weak_pointer(G_OBJECT(window),
-                             (gpointer) &balsa_app.main_window);
+                             (gpointer *) &balsa_app.main_window);
 
     balsa_check_open_compose_window();
 
diff --git a/src/message-window.c b/src/message-window.c
index 1c9d2ed7e..0c841cbed 100644
--- a/src/message-window.c
+++ b/src/message-window.c
@@ -366,7 +366,7 @@ destroy_message_window(GtkWidget * widget, MessageWindow * mw)
     }
 
     if (mw->mailbox) {
-        g_object_remove_weak_pointer(G_OBJECT(mw->mailbox), (gpointer) &mw->mailbox);
+        g_object_remove_weak_pointer(G_OBJECT(mw->mailbox), (gpointer *) &mw->mailbox);
         g_signal_handlers_disconnect_matched(G_OBJECT(mw->mailbox),
                                              G_SIGNAL_MATCH_DATA, 0, 0,
                                              NULL, NULL, mw);
@@ -850,7 +850,7 @@ message_window_new(LibBalsaMailbox * mailbox, guint msgno)
                             G_CALLBACK(mw_set_buttons_sensitive), mw);
 
     mw->mailbox = mailbox;
-    g_object_add_weak_pointer(G_OBJECT(mailbox), (gpointer) &mw->mailbox);
+    g_object_add_weak_pointer(G_OBJECT(mailbox), (gpointer *) &mw->mailbox);
     g_signal_connect(mailbox, "message_expunged",
                      G_CALLBACK(mw_expunged_cb), mw);
 
diff --git a/src/toolbar-prefs.c b/src/toolbar-prefs.c
index 10dbdf636..f7d53670f 100644
--- a/src/toolbar-prefs.c
+++ b/src/toolbar-prefs.c
@@ -144,7 +144,7 @@ customize_dialog_cb(GtkWidget * widget, gpointer data)
     libbalsa_macosx_menu_for_parent(customize_widget, GTK_WINDOW(active_window));
 #endif
     g_object_add_weak_pointer(G_OBJECT(customize_widget),
-                              (gpointer) & customize_widget);
+                              (gpointer *) & customize_widget);
     g_signal_connect(G_OBJECT(customize_widget), "response",
                      G_CALLBACK(tp_dialog_response_cb), NULL);
 


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