[balsa] In calls to g_signal*, do not cast first argument
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] In calls to g_signal*, do not cast first argument
- Date: Mon, 12 Aug 2019 00:41:01 +0000 (UTC)
commit fc5fde4bb9270912174ac934b9a7680c8f935631
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Aug 11 20:36:52 2019 -0400
In calls to g_signal*, do not cast first argument
In calls to g_signal*(), do not cast object using G_OBJECT(object).
The argument is a gpointer, so the cast is redundant.
* libbalsa/address.c (libbalsa_address_get_edit_widget):
* libbalsa/filter-funcs.c (libbalsa_filter_list_new):
* libbalsa/folder-scanners.c (libbalsa_scanner_imap_dir), (imap_tree_scan):
* libbalsa/identity.c (setup_ident_frame):
* libbalsa/imap/imap-commands.c (imap_mbox_select_unlocked):
* libbalsa/imap/imap-handle.c (imap_mbox_connect),
(imap_mbox_handle_get_delim), (ir_list_lsub), (ir_exists), (ir_expunge):
* libbalsa/libbalsa-gpgme-cb.c (lb_gpgme_select_key):
* libbalsa/libbalsa-progress.c (libbalsa_progress_dialog_ensure_real),
(create_progress_widget):
* libbalsa/libbalsa-vfs.c (libbalsa_vfs_mime_button):
* libbalsa/macosx-helpers.c (libbalsa_macosx_menu), (libbalsa_macosx_menu_for_parent):
* libbalsa/mailbox.c (libbalsa_mailbox_progress_notify):
* libbalsa/mailbox_imap.c (libbalsa_mailbox_imap_get_selected_handle), (lbm_imap_check):
* libbalsa/mailbox_pop3.c (libbalsa_mailbox_pop3_startup):
* libbalsa/send.c (lbs_process_queue_init_session):
* libbalsa/server.c (libbalsa_server_set_username), (libbalsa_server_set_host),
(libbalsa_server_config_changed), (lbs_get_password):
* libbalsa/smtp-server.c (libbalsa_smtp_server_dialog):
* libinit_balsa/assistant_helper.c (balsa_init_add_grid_entry):
* libinit_balsa/assistant_init.c (balsa_initdruid_apply), (balsa_initdruid):
* libinit_balsa/assistant_page_defclient.c (balsa_druid_page_defclient_init):
* libinit_balsa/assistant_page_directory.c (balsa_druid_page_directory_init):
* libinit_balsa/assistant_page_user.c (balsa_druid_page_user):
* libnetclient/net-client.c (net_client_start_tls):
* libnetclient/test/tests.c (test_basic_crypt), (test_smtp), (test_pop3):
* src/ab-main.c (bab_window_list_new), (bab_get_edit_button_box), (bab_get_filter_box),
(bab_window_new), (main):
* src/ab-window.c (balsa_ab_window_list), (balsa_ab_window_init),
(balsa_ab_window_menu_changed):
* src/address-book-config.c (create_local_dialog), (create_generic_dialog),
(create_osmo_dialog), (balsa_address_book_add_menu):
* src/balsa-index.c (bndx_selection_changed), (bndx_row_activated),
(bndx_compose_foreach), (bndx_compose_from_list),
(create_stock_menu_item), (bndx_changed_find_row):
ChangeLog | 110 +++++++++++++++++++++++++
libbalsa/address.c | 6 +-
libbalsa/filter-funcs.c | 2 +-
libbalsa/folder-scanners.c | 16 ++--
libbalsa/identity.c | 2 +-
libbalsa/imap/imap-commands.c | 2 +-
libbalsa/imap/imap-handle.c | 14 ++--
libbalsa/libbalsa-gpgme-cb.c | 2 +-
libbalsa/libbalsa-progress.c | 6 +-
libbalsa/libbalsa-vfs.c | 2 +-
libbalsa/macosx-helpers.c | 4 +-
libbalsa/mailbox.c | 2 +-
libbalsa/mailbox_imap.c | 8 +-
libbalsa/mailbox_pop3.c | 6 +-
libbalsa/send.c | 6 +-
libbalsa/server.c | 8 +-
libbalsa/smtp-server.c | 2 +-
libinit_balsa/assistant_helper.c | 2 +-
libinit_balsa/assistant_init.c | 6 +-
libinit_balsa/assistant_page_defclient.c | 2 +-
libinit_balsa/assistant_page_directory.c | 2 +-
libinit_balsa/assistant_page_user.c | 2 +-
libnetclient/net-client.c | 2 +-
libnetclient/test/tests.c | 74 ++++++++---------
src/ab-main.c | 24 +++---
src/ab-window.c | 18 ++--
src/address-book-config.c | 20 ++---
src/balsa-index.c | 12 +--
src/balsa-mblist.c | 18 ++--
src/balsa-message.c | 26 +++---
src/balsa-mime-widget-crypto.c | 6 +-
src/balsa-mime-widget-image.c | 2 +-
src/balsa-mime-widget-message.c | 8 +-
src/balsa-mime-widget-text.c | 38 ++++-----
src/balsa-mime-widget-vcalendar.c | 6 +-
src/balsa-mime-widget.c | 6 +-
src/filter-edit-callbacks.c | 28 +++----
src/filter-edit-dialog.c | 32 ++++----
src/filter-export-dialog.c | 4 +-
src/filter-run-dialog.c | 24 +++---
src/folder-conf.c | 8 +-
src/information-dialog.c | 2 +-
src/mailbox-conf.c | 6 +-
src/mailbox-node.c | 30 +++----
src/main-window.c | 34 ++++----
src/message-window.c | 10 +--
src/pref-manager.c | 136 +++++++++++++++----------------
src/print-gtk.c | 8 +-
src/sendmsg-window.c | 46 +++++------
src/store-address.c | 4 +-
src/toolbar-prefs.c | 24 +++---
51 files changed, 489 insertions(+), 379 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index db0bd5903..3d1a4cc69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,113 @@
+2019-08-11 Peter Bloomfield <pbloomfield bellsouth net>
+
+ In calls to g_signal*(), do not cast object using
+ G_OBJECT(object).
+
+ The argument is a gpointer, so the cast is redundant.
+
+ * libbalsa/address.c (libbalsa_address_get_edit_widget):
+ * libbalsa/filter-funcs.c (libbalsa_filter_list_new):
+ * libbalsa/folder-scanners.c (libbalsa_scanner_imap_dir),
+ (imap_tree_scan):
+ * libbalsa/identity.c (setup_ident_frame):
+ * libbalsa/imap/imap-commands.c (imap_mbox_select_unlocked):
+ * libbalsa/imap/imap-handle.c (imap_mbox_connect),
+ (imap_mbox_handle_get_delim), (ir_list_lsub), (ir_exists),
+ (ir_expunge):
+ * libbalsa/libbalsa-gpgme-cb.c (lb_gpgme_select_key):
+ * libbalsa/libbalsa-progress.c
+ (libbalsa_progress_dialog_ensure_real), (create_progress_widget):
+ * libbalsa/libbalsa-vfs.c (libbalsa_vfs_mime_button):
+ * libbalsa/macosx-helpers.c (libbalsa_macosx_menu),
+ (libbalsa_macosx_menu_for_parent):
+ * libbalsa/mailbox.c (libbalsa_mailbox_progress_notify):
+ * libbalsa/mailbox_imap.c
+ (libbalsa_mailbox_imap_get_selected_handle), (lbm_imap_check):
+ * libbalsa/mailbox_pop3.c (libbalsa_mailbox_pop3_startup):
+ * libbalsa/send.c (lbs_process_queue_init_session):
+ * libbalsa/server.c (libbalsa_server_set_username),
+ (libbalsa_server_set_host), (libbalsa_server_config_changed),
+ (lbs_get_password):
+ * libbalsa/smtp-server.c (libbalsa_smtp_server_dialog):
+ * libinit_balsa/assistant_helper.c (balsa_init_add_grid_entry):
+ * libinit_balsa/assistant_init.c (balsa_initdruid_apply),
+ (balsa_initdruid):
+ * libinit_balsa/assistant_page_defclient.c
+ (balsa_druid_page_defclient_init):
+ * libinit_balsa/assistant_page_directory.c
+ (balsa_druid_page_directory_init):
+ * libinit_balsa/assistant_page_user.c (balsa_druid_page_user):
+ * libnetclient/net-client.c (net_client_start_tls):
+ * libnetclient/test/tests.c (test_basic_crypt), (test_smtp),
+ (test_pop3):
+ * src/ab-main.c (bab_window_list_new), (bab_get_edit_button_box),
+ (bab_get_filter_box), (bab_window_new), (main):
+ * src/ab-window.c (balsa_ab_window_list), (balsa_ab_window_init),
+ (balsa_ab_window_menu_changed):
+ * src/address-book-config.c (create_local_dialog),
+ (create_generic_dialog), (create_osmo_dialog),
+ (balsa_address_book_add_menu):
+ * src/balsa-index.c (bndx_selection_changed), (bndx_row_activated),
+ (bndx_compose_foreach), (bndx_compose_from_list),
+ (create_stock_menu_item), (bndx_changed_find_row):
+ * src/balsa-mblist.c (balsa_mblist_init),
+ (balsa_mblist_default_signal_bindings), (bmbl_store_redraw_mbnode),
+ (balsa_mblist_mru_option_menu):
+ * src/balsa-message.c (bm_header_tl_buttons), (balsa_message_init),
+ (tree_mult_selection_popup), (add_to_attachments_popup),
+ (add_toggle_inline_menu_item), (part_create_menu), (select_part),
+ (create_mdn_dialog):
+ * src/balsa-mime-widget-crypto.c
+ (balsa_mime_widget_signature_widget), (create_import_keys_widget):
+ * src/balsa-mime-widget-image.c (balsa_mime_widget_new_image):
+ * src/balsa-mime-widget-message.c (bmw_message_extbody_url),
+ (bmw_message_extbody_mail), (bm_header_extend_popup),
+ (bmw_message_set_headers_d):
+ * src/balsa-mime-widget-text.c (balsa_mime_widget_new_text),
+ (text_view_url_popup), (text_view_populate_popup),
+ (bmwt_populate_popup_menu), (fill_text_buf_cited):
+ * src/balsa-mime-widget-vcalendar.c (balsa_vevent_widget):
+ * src/balsa-mime-widget.c (balsa_mime_widget_new),
+ (balsa_mime_widget_new_unknown):
+ * src/filter-edit-callbacks.c (add_button), (add_check),
+ (get_field_frame), (build_type_notebook), (fe_edit_condition):
+ * src/filter-edit-dialog.c (fe_build_option_menu),
+ (build_left_side), (build_match_page), (build_action_page),
+ (build_right_side), (filters_edit_dialog):
+ * src/filter-export-dialog.c (filters_export_dialog):
+ * src/filter-run-dialog.c (selected_filters_new),
+ (balsa_filter_run_dialog_init):
+ * src/folder-conf.c (folder_conf_clicked_ok),
+ (folder_conf_imap_node), (folder_conf_imap_sub_node):
+ * src/information-dialog.c (balsa_information_list):
+ * src/mailbox-conf.c (run_mailbox_conf),
+ (create_local_mailbox_dialog):
+ * src/mailbox-node.c (imap_scan_attach_mailbox),
+ (balsa_mailbox_node_new_from_mailbox),
+ (balsa_mailbox_node_new_from_dir),
+ (balsa_mailbox_node_new_from_config),
+ (balsa_mailbox_node_new_imap_node),
+ (balsa_mailbox_node_new_imap_folder), (add_menu_entry),
+ (balsa_mailbox_node_get_context_menu):
+ * src/main-window.c (bw_enable_filter), (bw_disable_filter),
+ (bw_create_index_widget), (new_message_activated),
+ (balsa_window_new), (bw_check_mailbox_list), (bw_find_real):
+ * src/message-window.c (destroy_message_window):
+ * src/pref-manager.c (pm_combo_box_new), (create_pref_option_menu),
+ (server_add_menu_widget),
+ (pm_grid_add_remote_mailbox_servers_group),
+ (pm_grid_add_outgoing_mail_group), (open_preferences_manager):
+ * src/print-gtk.c (message_prefs_widget):
+ * src/sendmsg-window.c (address_book_cb),
+ (balsa_sendmsg_destroy_handler), (sw_get_user_codeset),
+ (add_attachment), (add_urlref_attachment), (sw_attach_dialog),
+ (create_info_pane), (sw_attachment_list), (create_text_area),
+ (create_lang_menu), (sendmsg_window_set_field),
+ (sw_include_file_activated), (sendmsg_window_new):
+ * src/store-address.c (balsa_store_address_from_messages),
+ (balsa_store_address):
+ * src/toolbar-prefs.c (customize_dialog_cb), (create_toolbar_page):
+
2019-08-10 Peter Bloomfield <pbloomfield bellsouth net>
In calls to g_object_unref(), do not cast object using
diff --git a/libbalsa/address.c b/libbalsa/address.c
index 563094f8f..01a7fb38f 100644
--- a/libbalsa/address.c
+++ b/libbalsa/address.c
@@ -1043,11 +1043,11 @@ libbalsa_address_get_edit_widget(LibBalsaAddress *address,
if (changed_cb) {
GtkWidget *tree_view = gtk_bin_get_child(GTK_BIN(entries[EMAIL_ADDRESS]));
GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree_view));
- g_signal_connect_swapped(G_OBJECT(model), "row-inserted",
+ g_signal_connect_swapped(model, "row-inserted",
changed_cb, changed_data);
- g_signal_connect_swapped(G_OBJECT(model), "row-changed",
+ g_signal_connect_swapped(model, "row-changed",
changed_cb, changed_data);
- g_signal_connect_swapped(G_OBJECT(model), "row-deleted",
+ g_signal_connect_swapped(model, "row-deleted",
changed_cb, changed_data);
}
return grid;
diff --git a/libbalsa/filter-funcs.c b/libbalsa/filter-funcs.c
index f1ce3d76e..9332b22a9 100644
--- a/libbalsa/filter-funcs.c
+++ b/libbalsa/filter-funcs.c
@@ -1093,7 +1093,7 @@ libbalsa_filter_list_new(gboolean with_data, const gchar * title,
selection = gtk_tree_view_get_selection(view);
gtk_tree_selection_set_mode(selection, mode);
if (selection_changed_cb)
- g_signal_connect(G_OBJECT(selection), "changed",
+ g_signal_connect(selection, "changed",
selection_changed_cb, NULL);
if (sorted) {
diff --git a/libbalsa/folder-scanners.c b/libbalsa/folder-scanners.c
index f93e080c7..a33048fe5 100644
--- a/libbalsa/folder-scanners.c
+++ b/libbalsa/folder-scanners.c
@@ -421,11 +421,11 @@ libbalsa_scanner_imap_dir(gpointer rnode, LibBalsaServer * server,
g_free, NULL);
list_handler_id =
- g_signal_connect(G_OBJECT(handle), "list-response",
+ g_signal_connect(handle, "list-response",
G_CALLBACK(libbalsa_imap_list_cb),
(gpointer) & state);
lsub_handler_id = subscribed ?
- g_signal_connect(G_OBJECT(handle), "lsub-response",
+ g_signal_connect(handle, "lsub-response",
G_CALLBACK(libbalsa_imap_lsub_cb),
(gpointer) & state) : 0;
@@ -443,9 +443,9 @@ libbalsa_scanner_imap_dir(gpointer rnode, LibBalsaServer * server,
check_imap_path, &i, error);
g_hash_table_destroy(state.subfolders);
- g_signal_handler_disconnect(G_OBJECT(handle), list_handler_id);
+ g_signal_handler_disconnect(handle, list_handler_id);
if (lsub_handler_id)
- g_signal_handler_disconnect(G_OBJECT(handle), lsub_handler_id);
+ g_signal_handler_disconnect(handle, lsub_handler_id);
libbalsa_imap_server_release_handle(LIBBALSA_IMAP_SERVER(server), handle);
}
@@ -569,15 +569,15 @@ imap_tree_scan(scan_data_t *scan_data,
{
gulong list_handler_id;
- list_handler_id = g_signal_connect(G_OBJECT(scan_data->handle), "list-response",
G_CALLBACK(imap_tree_scan_list_cb), folders);
+ list_handler_id = g_signal_connect(scan_data->handle, "list-response",
G_CALLBACK(imap_tree_scan_list_cb), folders);
imap_mbox_list(scan_data->handle, list_path);
- g_signal_handler_disconnect(G_OBJECT(scan_data->handle), list_handler_id);
+ g_signal_handler_disconnect(scan_data->handle, list_handler_id);
if (scan_data->subscriptions) {
list_handler_id =
- g_signal_connect(G_OBJECT(scan_data->handle), "lsub-response",
G_CALLBACK(imap_tree_scan_lsub_cb), folders);
+ g_signal_connect(scan_data->handle, "lsub-response",
G_CALLBACK(imap_tree_scan_lsub_cb), folders);
imap_mbox_lsub(scan_data->handle, list_path);
- g_signal_handler_disconnect(G_OBJECT(scan_data->handle), list_handler_id);
+ g_signal_handler_disconnect(scan_data->handle, list_handler_id);
}
g_hash_table_foreach(folders, (GHFunc) imap_tree_scan_children, scan_data);
diff --git a/libbalsa/identity.c b/libbalsa/identity.c
index 2aee60899..f0e44eeb4 100644
--- a/libbalsa/identity.c
+++ b/libbalsa/identity.c
@@ -967,7 +967,7 @@ setup_ident_frame(GtkDialog * dialog, gboolean createp, gpointer tree,
G_CALLBACK(md_name_changed), tree);
path = g_object_get_data(G_OBJECT(dialog), "identity-sigpath");
- g_signal_connect(g_object_get_data(G_OBJECT(path),
+ g_signal_connect(g_object_get_data(path,
LIBBALSA_IDENTITY_CHECK),
"toggled",
G_CALLBACK(md_sig_path_changed_cb), dialog);
diff --git a/libbalsa/imap/imap-commands.c b/libbalsa/imap/imap-commands.c
index d67272e38..499eab108 100644
--- a/libbalsa/imap/imap-commands.c
+++ b/libbalsa/imap/imap-commands.c
@@ -230,7 +230,7 @@ imap_mbox_select_unlocked(ImapMboxHandle* handle, const char *mbox,
imap_mbox_resize_cache(handle, 0);
mbox_view_dispose(&handle->mbox_view);
- g_signal_emit_by_name(G_OBJECT(handle), "exists-notify");
+ g_signal_emit_by_name(handle, "exists-notify");
}
return rc;
diff --git a/libbalsa/imap/imap-handle.c b/libbalsa/imap/imap-handle.c
index 4d62c27e1..2bcc7e7f6 100644
--- a/libbalsa/imap/imap-handle.c
+++ b/libbalsa/imap/imap-handle.c
@@ -718,8 +718,8 @@ imap_mbox_connect(ImapMboxHandle* handle)
handle->sio = net_client_siobuf_new(handle->host,
handle->tls_mode == NET_CLIENT_CRYPT_ENCRYPTED ? 993 : 143);
- g_signal_connect(G_OBJECT(handle->sio), "auth", handle->auth_cb, handle->auth_arg);
- g_signal_connect(G_OBJECT(handle->sio), "cert-check", handle->cert_cb, handle->sio);
+ g_signal_connect(handle->sio, "auth", handle->auth_cb, handle->auth_arg);
+ g_signal_connect(handle->sio, "cert-check", handle->cert_cb, handle->sio);
/* FIXME - client certificate? */
if (!net_client_connect(NET_CLIENT(handle->sio), &error)) {
imap_mbox_handle_set_msg(handle, _("Connecting %s failed: %s"), handle->host, error_safe(error));
@@ -867,7 +867,7 @@ imap_mbox_handle_get_delim(ImapMboxHandle* handle,
g_mutex_lock(&handle->mutex);
/* FIXME: block other list response signals here? */
- handler_id = g_signal_connect(G_OBJECT(handle), "list-response",
+ handler_id = g_signal_connect(handle, "list-response",
G_CALLBACK(get_delim),
&delim);
@@ -876,7 +876,7 @@ imap_mbox_handle_get_delim(ImapMboxHandle* handle,
g_free(mbx7);
imap_cmd_exec(handle, cmd); /* ignore return code.. */
g_free(cmd);
- g_signal_handler_disconnect(G_OBJECT(handle), handler_id);
+ g_signal_handler_disconnect(handle, handler_id);
g_mutex_unlock(&handle->mutex);
return delim;
@@ -2485,7 +2485,7 @@ ir_list_lsub(ImapMboxHandle *h, ImapHandleSignal signal)
s = imap_get_astring(h->sio, &c);
mbx = imap_mailbox_to_utf8(s);
rc = ir_check_crlf(h, c);
- g_signal_emit(G_OBJECT(h), imap_mbox_handle_signals[signal],
+ g_signal_emit(h, imap_mbox_handle_signals[signal],
0, delim, flags, mbx);
g_free(s);
g_free(mbx);
@@ -2656,7 +2656,7 @@ ir_exists(ImapMboxHandle *h, unsigned seqno)
imap_mbox_resize_cache(h, seqno);
mbox_view_resize(&h->mbox_view, old_exists, seqno);
- g_signal_emit(G_OBJECT(h), imap_mbox_handle_signals[EXISTS_NOTIFY], 0);
+ g_signal_emit(h, imap_mbox_handle_signals[EXISTS_NOTIFY], 0);
return rc;
}
@@ -2673,7 +2673,7 @@ static ImapResponse
ir_expunge(ImapMboxHandle *h, unsigned seqno)
{
ImapResponse rc = ir_check_crlf(h, sio_getc(h->sio));
- g_signal_emit(G_OBJECT(h), imap_mbox_handle_signals[EXPUNGE_NOTIFY],
+ g_signal_emit(h, imap_mbox_handle_signals[EXPUNGE_NOTIFY],
0, seqno);
g_array_remove_index(h->flag_cache, seqno-1);
diff --git a/libbalsa/libbalsa-gpgme-cb.c b/libbalsa/libbalsa-gpgme-cb.c
index 8a3ea003a..fed16b269 100644
--- a/libbalsa/libbalsa-gpgme-cb.c
+++ b/libbalsa/libbalsa-gpgme-cb.c
@@ -258,7 +258,7 @@ lb_gpgme_select_key(const gchar * user_name, lb_key_sel_md_t mode, GList * keys,
g_object_set_data(G_OBJECT(selection), "dialog", dialog);
g_object_set_data(G_OBJECT(selection), "first", GUINT_TO_POINTER(1));
gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
- g_signal_connect(G_OBJECT(selection), "changed",
+ g_signal_connect(selection, "changed",
G_CALLBACK(key_selection_changed_cb), &use_key);
/* add the keys */
diff --git a/libbalsa/libbalsa-progress.c b/libbalsa/libbalsa-progress.c
index 21921145e..442d9d14a 100644
--- a/libbalsa/libbalsa-progress.c
+++ b/libbalsa/libbalsa-progress.c
@@ -185,8 +185,8 @@ libbalsa_progress_dialog_ensure_real(ProgressDialog *progress_dialog,
hints.max_height = -1;
gtk_window_set_geometry_hints(GTK_WINDOW(progress_dialog->dialog), NULL, &hints, GDK_HINT_MIN_SIZE +
GDK_HINT_MAX_SIZE);
gtk_window_set_resizable(GTK_WINDOW(progress_dialog->dialog), FALSE);
- g_signal_connect(G_OBJECT(progress_dialog->dialog), "response",
G_CALLBACK(progress_dialog_response_cb), NULL);
- g_signal_connect(G_OBJECT(progress_dialog->dialog), "destroy",
G_CALLBACK(progress_dialog_destroy_cb), progress_dialog);
+ g_signal_connect(progress_dialog->dialog, "response", G_CALLBACK(progress_dialog_response_cb), NULL);
+ g_signal_connect(progress_dialog->dialog, "destroy", G_CALLBACK(progress_dialog_destroy_cb),
progress_dialog);
content_box = gtk_dialog_get_content_area(GTK_DIALOG(progress_dialog->dialog));
gtk_box_set_spacing(GTK_BOX(content_box), 6);
@@ -299,7 +299,7 @@ create_progress_widget(const gchar *progress_id)
gtk_revealer_set_reveal_child(GTK_REVEALER(widget_data->revealer), FALSE);
gtk_widget_set_name(widget_data->revealer, progress_id);
g_object_set_data_full(G_OBJECT(widget_data->revealer), "data", widget_data, g_free);
- g_signal_connect(G_OBJECT(widget_data->revealer), "destroy", G_CALLBACK(progress_data_destroy_cb),
widget_data);
+ g_signal_connect(widget_data->revealer, "destroy", G_CALLBACK(progress_data_destroy_cb), widget_data);
box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 2);
gtk_container_add(GTK_CONTAINER(widget_data->revealer), box);
diff --git a/libbalsa/libbalsa-vfs.c b/libbalsa/libbalsa-vfs.c
index 4e8c1e45a..8790e0fe4 100644
--- a/libbalsa/libbalsa-vfs.c
+++ b/libbalsa/libbalsa-vfs.c
@@ -657,7 +657,7 @@ libbalsa_vfs_mime_button(LibBalsaMessageBody * mime_body,
app, g_object_unref);
g_free(msg);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
callback, data);
}
diff --git a/libbalsa/macosx-helpers.c b/libbalsa/macosx-helpers.c
index 8faa662b6..0c24bf267 100644
--- a/libbalsa/macosx-helpers.c
+++ b/libbalsa/macosx-helpers.c
@@ -37,7 +37,7 @@ void
libbalsa_macosx_menu(GtkWidget *window, GtkMenuShell *menubar)
{
g_object_set_data(G_OBJECT(window), "osx-menubar", menubar);
- g_signal_connect(G_OBJECT(window), "focus-in-event",
+ g_signal_connect(window, "focus-in-event",
G_CALLBACK(update_osx_menubar), window);
}
@@ -46,7 +46,7 @@ void
libbalsa_macosx_menu_for_parent(GtkWidget *window, GtkWindow *parent)
{
if(parent)
- g_signal_connect(G_OBJECT(window), "focus-in-event",
+ g_signal_connect(window, "focus-in-event",
G_CALLBACK(update_osx_menubar), parent);
else
g_message("called %s for widget %p with NULL parent", __func__, window);
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index 70deec935..807b932a5 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -687,7 +687,7 @@ libbalsa_mailbox_progress_notify(LibBalsaMailbox *mailbox,
} else {
full_msg = NULL;
}
- g_signal_emit(G_OBJECT(mailbox), libbalsa_mailbox_signals[PROGRESS_NOTIFY], 0, (gint) action, fraction,
full_msg);
+ g_signal_emit(mailbox, libbalsa_mailbox_signals[PROGRESS_NOTIFY], 0, (gint) action, fraction, full_msg);
g_free(full_msg);
}
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index 0fe1a6a6e..165f542a4 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -999,10 +999,10 @@ libbalsa_mailbox_imap_get_selected_handle(LibBalsaMailboxImap *mimap,
}
imap_handle_set_flagscb(mimap->handle, (ImapFlagsCb)imap_flags_cb, mimap);
- g_signal_connect(G_OBJECT(mimap->handle),
+ g_signal_connect(mimap->handle,
"exists-notify", G_CALLBACK(imap_exists_cb),
mimap);
- g_signal_connect(G_OBJECT(mimap->handle),
+ g_signal_connect(mimap->handle,
"expunge-notify", G_CALLBACK(imap_expunge_cb),
mimap);
mimap->handle_refs = 1;
@@ -1295,13 +1295,13 @@ lbm_imap_check(LibBalsaMailbox * mailbox)
info.marked = FALSE;
g_object_ref(handle);
- id = g_signal_connect(G_OBJECT(handle), "list-response",
+ id = g_signal_connect(handle, "list-response",
G_CALLBACK(lbm_imap_list_cb), &info);
if (imap_mbox_list(handle, mimap->path) != IMR_OK)
info.marked = FALSE;
- g_signal_handler_disconnect(G_OBJECT(handle), id);
+ g_signal_handler_disconnect(handle, id);
g_object_unref(handle);
libbalsa_mailbox_imap_release_handle(mimap);
diff --git a/libbalsa/mailbox_pop3.c b/libbalsa/mailbox_pop3.c
index b646826eb..4ffb0bf52 100644
--- a/libbalsa/mailbox_pop3.c
+++ b/libbalsa/mailbox_pop3.c
@@ -483,7 +483,7 @@ libbalsa_mailbox_pop3_startup(LibBalsaServer *server,
if (libbalsa_server_get_client_cert(server)) {
const gchar *cert_file = libbalsa_server_get_cert_file(server);
- g_signal_connect(G_OBJECT(pop), "cert-pass", G_CALLBACK(libbalsa_server_get_cert_pass),
server);
+ g_signal_connect(pop, "cert-pass", G_CALLBACK(libbalsa_server_get_cert_pass), server);
if (!net_client_set_cert_from_file(NET_CLIENT(pop), cert_file, &error)) {
libbalsa_information(LIBBALSA_INFORMATION_ERROR, _("Cannot load certificate file %s:
%s"), cert_file,
error->message);
@@ -498,8 +498,8 @@ libbalsa_mailbox_pop3_startup(LibBalsaServer *server,
}
/* connect signals */
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(libbalsa_server_check_cert), pop);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(libbalsa_server_get_auth), server);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(libbalsa_server_check_cert), pop);
+ g_signal_connect(pop, "auth", G_CALLBACK(libbalsa_server_get_auth), server);
/* connect server */
libbalsa_mailbox_progress_notify(mailbox, LIBBALSA_NTFY_INIT, INFINITY, _("Connecting %s…"), host);
diff --git a/libbalsa/send.c b/libbalsa/send.c
index dd008b512..69a66da98 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -788,15 +788,15 @@ lbs_process_queue_init_session(LibBalsaServer* server)
}
/* connect signals */
- g_signal_connect(G_OBJECT(session), "cert-check", G_CALLBACK(libbalsa_server_check_cert), session);
- g_signal_connect(G_OBJECT(session), "auth", G_CALLBACK(libbalsa_server_get_auth), server);
+ g_signal_connect(session, "cert-check", G_CALLBACK(libbalsa_server_check_cert), session);
+ g_signal_connect(session, "auth", G_CALLBACK(libbalsa_server_get_auth), server);
/* load client certificate if configured */
if (libbalsa_server_get_client_cert(server)) {
const gchar *cert_file = libbalsa_server_get_cert_file(server);
GError* error = NULL;
- g_signal_connect(G_OBJECT(session), "cert-pass", G_CALLBACK(libbalsa_server_get_cert_pass),
server);
+ g_signal_connect(session, "cert-pass", G_CALLBACK(libbalsa_server_get_cert_pass), server);
if (!net_client_set_cert_from_file(NET_CLIENT(session), cert_file, &error)) {
libbalsa_information(LIBBALSA_INFORMATION_ERROR, _("Cannot load certificate file %s:
%s"), cert_file,
error->message);
diff --git a/libbalsa/server.c b/libbalsa/server.c
index 6d3caf56d..1c2a35959 100644
--- a/libbalsa/server.c
+++ b/libbalsa/server.c
@@ -193,7 +193,7 @@ libbalsa_server_set_username(LibBalsaServer * server,
g_return_if_fail(server != NULL);
g_return_if_fail(LIBBALSA_IS_SERVER(server));
- g_signal_emit(G_OBJECT(server),
+ g_signal_emit(server,
libbalsa_server_signals[SET_USERNAME], 0, username);
}
@@ -225,7 +225,7 @@ libbalsa_server_set_host(LibBalsaServer * server, const gchar * host,
g_return_if_fail(server != NULL);
g_return_if_fail(LIBBALSA_IS_SERVER(server));
- g_signal_emit(G_OBJECT(server), libbalsa_server_signals[SET_HOST],
+ g_signal_emit(server, libbalsa_server_signals[SET_HOST],
0, host, security);
}
@@ -236,7 +236,7 @@ libbalsa_server_config_changed(LibBalsaServer * server)
g_return_if_fail(server != NULL);
g_return_if_fail(LIBBALSA_IS_SERVER(server));
- g_signal_emit(G_OBJECT(server), libbalsa_server_signals[CONFIG_CHANGED],
+ g_signal_emit(server, libbalsa_server_signals[CONFIG_CHANGED],
0);
}
@@ -249,7 +249,7 @@ lbs_get_password(LibBalsaServer *server,
g_return_val_if_fail(server != NULL, NULL);
g_return_val_if_fail(LIBBALSA_IS_SERVER(server), NULL);
- g_signal_emit(G_OBJECT(server), libbalsa_server_signals[GET_PASSWORD], 0, cert_subject, &retval);
+ g_signal_emit(server, libbalsa_server_signals[GET_PASSWORD], 0, cert_subject, &retval);
return retval;
}
diff --git a/libbalsa/smtp-server.c b/libbalsa/smtp-server.c
index 94ecb85c1..74b14dd98 100644
--- a/libbalsa/smtp-server.c
+++ b/libbalsa/smtp-server.c
@@ -342,7 +342,7 @@ libbalsa_smtp_server_dialog(LibBalsaSmtpServer * smtp_server,
#endif
g_object_weak_ref(G_OBJECT(dialog),
(GWeakNotify) smtp_server_weak_notify, sdi);
- g_signal_connect(G_OBJECT(dialog), "response",
+ g_signal_connect(dialog, "response",
G_CALLBACK(smtp_server_response), sdi);
gtk_dialog_set_default_response(GTK_DIALOG(dialog),
GTK_RESPONSE_CANCEL);
diff --git a/libinit_balsa/assistant_helper.c b/libinit_balsa/assistant_helper.c
index 281259f52..4f643ea9d 100644
--- a/libinit_balsa/assistant_helper.c
+++ b/libinit_balsa/assistant_helper.c
@@ -67,7 +67,7 @@ balsa_init_add_grid_entry(GtkGrid * grid, guint num, const gchar * ltext,
gtk_grid_attach(grid, e, 1, num + 1, 1, 1);
(*dest) = e;
if(ed) {
- g_signal_connect(G_OBJECT(e), "changed",
+ g_signal_connect(e, "changed",
G_CALLBACK(entry_changed_cb), ed);
ed->num = ed->master->numentries++;
ed->druid = druid;
diff --git a/libinit_balsa/assistant_init.c b/libinit_balsa/assistant_init.c
index e96c52038..42d4d2ede 100644
--- a/libinit_balsa/assistant_init.c
+++ b/libinit_balsa/assistant_init.c
@@ -91,7 +91,7 @@ balsa_initdruid_apply(GtkAssistant * druid)
g_list_prepend(balsa_app.address_book_list, ab);
balsa_app.default_address_book = ab;
- g_signal_handlers_disconnect_by_func(G_OBJECT(druid),
+ g_signal_handlers_disconnect_by_func(druid,
G_CALLBACK(exit), NULL);
libbalsa_conf_push_group("Notifications");
libbalsa_conf_set_bool("GtkUIManager", TRUE);
@@ -107,9 +107,9 @@ balsa_initdruid(GtkAssistant * assistant)
g_return_if_fail(assistant != NULL);
g_return_if_fail(GTK_IS_ASSISTANT(assistant));
- g_signal_connect(G_OBJECT(assistant), "cancel",
+ g_signal_connect(assistant, "cancel",
G_CALLBACK(balsa_initdruid_cancel), NULL);
- g_signal_connect(G_OBJECT(assistant), "close",
+ g_signal_connect(assistant, "close",
G_CALLBACK(balsa_initdruid_apply), NULL);
balsa_druid_page_welcome(assistant);
diff --git a/libinit_balsa/assistant_page_defclient.c b/libinit_balsa/assistant_page_defclient.c
index a72c96695..f84b49754 100644
--- a/libinit_balsa/assistant_page_defclient.c
+++ b/libinit_balsa/assistant_page_defclient.c
@@ -59,7 +59,7 @@ balsa_druid_page_defclient_init(BalsaDruidPageDefclient * defclient,
no = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(yes),
_("_No"));
- g_signal_connect(G_OBJECT(yes), "toggled",
+ g_signal_connect(yes, "toggled",
G_CALLBACK(balsa_druid_page_defclient_toggle),
defclient);
diff --git a/libinit_balsa/assistant_page_directory.c b/libinit_balsa/assistant_page_directory.c
index 31f366f42..ab4055009 100644
--- a/libinit_balsa/assistant_page_directory.c
+++ b/libinit_balsa/assistant_page_directory.c
@@ -307,7 +307,7 @@ balsa_druid_page_directory_init(BalsaDruidPageDirectory * dir,
gtk_box_pack_end(GTK_BOX(page), verify_button(dir), FALSE, FALSE, 0);
- g_signal_connect(G_OBJECT(druid), "prepare",
+ g_signal_connect(druid, "prepare",
G_CALLBACK(balsa_druid_page_directory_prepare),
dir);
dir->my_num = 98765;
diff --git a/libinit_balsa/assistant_page_user.c b/libinit_balsa/assistant_page_user.c
index f6652b258..67e92187d 100644
--- a/libinit_balsa/assistant_page_user.c
+++ b/libinit_balsa/assistant_page_user.c
@@ -166,7 +166,7 @@ balsa_druid_page_user(GtkAssistant * druid)
gtk_assistant_set_page_title(druid, user->page, _("User Settings"));
balsa_druid_page_user_init(user, user->page, druid);
- g_signal_connect(G_OBJECT(druid), "prepare",
+ g_signal_connect(druid, "prepare",
G_CALLBACK(balsa_druid_page_user_prepare),
user);
g_object_weak_ref(G_OBJECT(druid), (GWeakNotify)g_free, user);
diff --git a/libnetclient/net-client.c b/libnetclient/net-client.c
index cb7b39d84..684af8a66 100644
--- a/libnetclient/net-client.c
+++ b/libnetclient/net-client.c
@@ -530,7 +530,7 @@ net_client_start_tls(NetClient *client, GError **error)
if (priv->certificate != NULL) {
g_tls_connection_set_certificate(G_TLS_CONNECTION(priv->tls_conn),
priv->certificate);
}
- (void) g_signal_connect(G_OBJECT(priv->tls_conn), "accept-certificate",
G_CALLBACK(cert_accept_cb), client);
+ (void) g_signal_connect(priv->tls_conn, "accept-certificate",
G_CALLBACK(cert_accept_cb), client);
result = g_tls_connection_handshake(G_TLS_CONNECTION(priv->tls_conn), NULL, error);
if (result) {
g_filter_input_stream_set_close_base_stream(G_FILTER_INPUT_STREAM(priv->istream), FALSE);
diff --git a/libnetclient/test/tests.c b/libnetclient/test/tests.c
index 7ceea8683..211566196 100644
--- a/libnetclient/test/tests.c
+++ b/libnetclient/test/tests.c
@@ -260,7 +260,7 @@ test_basic_crypt(void)
net_client_shutdown(basic);
- g_signal_connect(G_OBJECT(basic), "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(basic, "cert-check", G_CALLBACK(check_cert), NULL);
sput_fail_unless(net_client_connect(basic, NULL) == TRUE, "connect ok");
sput_fail_unless(net_client_start_tls(basic, NULL) == TRUE, "start tls: success");
sput_fail_unless(net_client_is_encrypted(basic) == TRUE, "is encrypted");
@@ -301,14 +301,14 @@ test_basic_crypt(void)
/* tests with client cert check */
sput_fail_unless((basic = net_client_new("localhost", 65002, 42)) != NULL, "localhost; port 65002");
- g_signal_connect(G_OBJECT(basic), "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(basic, "cert-check", G_CALLBACK(check_cert), NULL);
sput_fail_unless(net_client_connect(basic, NULL) == TRUE, "connect ok");
sput_fail_unless(net_client_start_tls(basic, NULL) == FALSE, "start tls: fails");
sput_fail_unless(net_client_is_encrypted(basic) == FALSE, "not encrypted");
g_object_unref(basic);
sput_fail_unless((basic = net_client_new("localhost", 65002, 42)) != NULL, "localhost; port 65002");
- g_signal_connect(G_OBJECT(basic), "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(basic, "cert-check", G_CALLBACK(check_cert), NULL);
sput_fail_unless(net_client_set_cert_from_file(NULL, "cert_u.pem", NULL) == FALSE, "load cert file
w/o client");
sput_fail_unless(net_client_set_cert_from_file(basic, NULL, NULL) == FALSE, "load cert file w/o
file");
sput_fail_unless(net_client_set_cert_from_file(basic, "no_such_file.crt", NULL) == FALSE, "load cert
file, file missing");
@@ -324,10 +324,10 @@ test_basic_crypt(void)
g_object_unref(basic);
sput_fail_unless((basic = net_client_new("localhost", 65002, 42)) != NULL, "localhost; port 65002");
- g_signal_connect(G_OBJECT(basic), "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(basic, "cert-check", G_CALLBACK(check_cert), NULL);
sput_fail_unless(net_client_set_cert_from_file(basic, "cert_u.pem", NULL) == TRUE, "load cert file w/
plain key ok");
sput_fail_unless(net_client_set_cert_from_file(basic, "cert.pem", NULL) == FALSE, "load cert file w/
crypt key fails");
- g_signal_connect(G_OBJECT(basic), "cert-pass", G_CALLBACK(get_cert_passwd), NULL);
+ g_signal_connect(basic, "cert-pass", G_CALLBACK(get_cert_passwd), NULL);
sput_fail_unless(net_client_set_cert_from_file(basic, "cert.pem", NULL) == TRUE, "load cert file w/
crypt key ok");
sput_fail_unless(net_client_connect(basic, NULL) == TRUE, "connect ok");
sput_fail_unless(net_client_start_tls(basic, NULL) == TRUE, "start tls: ok");
@@ -469,7 +469,7 @@ test_smtp(void)
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65025, NET_CLIENT_CRYPT_NONE)) != NULL,
"localhost:65025");
sput_fail_unless(net_client_smtp_allow_auth(smtp, FALSE, 0U) == TRUE, "force no auth mech available");
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), smtp);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), smtp);
op_res = net_client_smtp_connect(smtp, NULL, &error);
sput_fail_unless((op_res == FALSE) && (error->code == NET_CLIENT_ERROR_SMTP_NO_AUTH), "connect:
fails");
g_clear_error(&error);
@@ -477,7 +477,7 @@ test_smtp(void)
// no password: anonymous
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65025, NET_CLIENT_CRYPT_NONE)) != NULL,
"localhost:65025");
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), NULL);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), NULL);
sput_fail_unless(net_client_smtp_connect(smtp, NULL, NULL) == FALSE, "connect: password required");
g_object_unref(smtp);
@@ -485,7 +485,7 @@ test_smtp(void)
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65025, NET_CLIENT_CRYPT_NONE)) != NULL,
"localhost:65025");
sput_fail_unless(net_client_smtp_allow_auth(NULL, FALSE, NET_CLIENT_SMTP_AUTH_PLAIN) == FALSE, "set
auth meths, no client");
sput_fail_unless(net_client_smtp_allow_auth(smtp, FALSE, NET_CLIENT_SMTP_AUTH_PLAIN) == TRUE, "force
auth meth PLAIN");
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), smtp);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), smtp);
sput_fail_unless(net_client_smtp_connect(smtp, NULL, NULL) == TRUE, "connect: success");
msg_buf.sim_error = TRUE;
sput_fail_unless(net_client_smtp_send_msg(smtp, msg, NULL) == FALSE, "send msg: error in callback");
@@ -496,7 +496,7 @@ test_smtp(void)
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65025, NET_CLIENT_CRYPT_NONE)) != NULL,
"localhost:65025");
sput_fail_unless(net_client_smtp_allow_auth(NULL, FALSE, NET_CLIENT_SMTP_AUTH_PLAIN) == FALSE, "set
auth meths, no client");
sput_fail_unless(net_client_smtp_allow_auth(smtp, FALSE, NET_CLIENT_SMTP_AUTH_PLAIN) == TRUE, "force
auth meth PLAIN");
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), smtp);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), smtp);
sput_fail_unless(net_client_smtp_connect(smtp, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_smtp_send_msg(smtp, msg, NULL) == TRUE, "send msg: success");
g_object_unref(smtp);
@@ -507,8 +507,8 @@ test_smtp(void)
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65025, NET_CLIENT_CRYPT_STARTTLS)) != NULL,
"localhost:65025, starttls");
sput_fail_unless(net_client_smtp_allow_auth(smtp, TRUE, NET_CLIENT_SMTP_AUTH_LOGIN) == TRUE, "force
auth meth LOGIN");
- g_signal_connect(G_OBJECT(smtp), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), smtp);
+ g_signal_connect(smtp, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), smtp);
sput_fail_unless(net_client_smtp_connect(smtp, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_smtp_send_msg(smtp, msg, NULL) == TRUE, "send msg: success");
g_object_unref(smtp);
@@ -519,8 +519,8 @@ test_smtp(void)
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65025, NET_CLIENT_CRYPT_STARTTLS_OPT)) !=
NULL,
"localhost:65025, starttls");
sput_fail_unless(net_client_smtp_allow_auth(smtp, TRUE, NET_CLIENT_SMTP_AUTH_CRAM_MD5) == TRUE,
"force auth meth CRAM-MD5");
- g_signal_connect(G_OBJECT(smtp), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), smtp);
+ g_signal_connect(smtp, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), smtp);
sput_fail_unless(net_client_smtp_connect(smtp, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_smtp_msg_set_dsn_opts(msg, "20170113212711 19833 here com", FALSE) ==
TRUE, "dsn: envid, headers");
sput_fail_unless(net_client_smtp_send_msg(smtp, msg, NULL) == TRUE, "send msg: success");
@@ -531,8 +531,8 @@ test_smtp(void)
"add recipient ok (dsn)");
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65025, NET_CLIENT_CRYPT_STARTTLS)) != NULL,
"localhost:65025");
sput_fail_unless(net_client_smtp_allow_auth(smtp, TRUE, NET_CLIENT_SMTP_AUTH_CRAM_SHA1) == TRUE,
"force auth meth CRAM-SHA1");
- g_signal_connect(G_OBJECT(smtp), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), smtp);
+ g_signal_connect(smtp, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), smtp);
sput_fail_unless(net_client_smtp_connect(smtp, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_smtp_msg_set_dsn_opts(msg, NULL, TRUE) == TRUE, "dsn: no envid, message");
sput_fail_unless(net_client_smtp_send_msg(smtp, msg, NULL) == TRUE, "send msg: success");
@@ -542,8 +542,8 @@ test_smtp(void)
sput_fail_unless(net_client_smtp_msg_add_recipient(msg, "other4 there com",
NET_CLIENT_SMTP_DSN_SUCCESS + NET_CLIENT_SMTP_DSN_FAILURE + NET_CLIENT_SMTP_DSN_DELAY) ==
TRUE, "add recipient ok (dsn)");
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65025, NET_CLIENT_CRYPT_STARTTLS)) != NULL,
"localhost:65025");
- g_signal_connect(G_OBJECT(smtp), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), smtp);
+ g_signal_connect(smtp, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), smtp);
sput_fail_unless(net_client_smtp_connect(smtp, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_smtp_msg_set_dsn_opts(msg, "20170113212711 19833 here com", TRUE) == TRUE,
"dsn: envid, message");
@@ -554,8 +554,8 @@ test_smtp(void)
sput_fail_unless(net_client_smtp_msg_add_recipient(msg, "other4 there com",
NET_CLIENT_SMTP_DSN_SUCCESS + NET_CLIENT_SMTP_DSN_FAILURE + NET_CLIENT_SMTP_DSN_DELAY) ==
TRUE, "add recipient ok (dsn)");
sput_fail_unless((smtp = net_client_smtp_new("localhost", 65465, NET_CLIENT_CRYPT_ENCRYPTED)) !=
NULL, "localhost:65465, ssl");
- g_signal_connect(G_OBJECT(smtp), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(smtp), "auth", G_CALLBACK(get_auth), smtp);
+ g_signal_connect(smtp, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(smtp, "auth", G_CALLBACK(get_auth), smtp);
sput_fail_unless(net_client_smtp_connect(smtp, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_smtp_msg_set_dsn_opts(msg, "20170113212711 19833 here com", TRUE) == TRUE,
"dsn: envid, message");
@@ -627,14 +627,14 @@ test_pop3(void)
g_object_unref(pop);
sput_fail_unless((pop = net_client_pop_new("localhost", 64110, NET_CLIENT_CRYPT_NONE, TRUE)) != NULL,
"localhost:64110");
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), NULL);
sput_fail_unless(net_client_pop_connect(pop, NULL, NULL) == FALSE, "connect: password required");
g_object_unref(pop);
// unencrypted, force USER auth
sput_fail_unless((pop = net_client_pop_new("localhost", 64110, NET_CLIENT_CRYPT_NONE, TRUE)) != NULL,
"localhost:64110");
sput_fail_unless(net_client_pop_allow_auth(pop, FALSE, 0U), "no AUTH mechanism");
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
op_res = net_client_pop_connect(pop, NULL, &error);
sput_fail_unless((op_res == FALSE) && (error->code == NET_CLIENT_ERROR_POP_NO_AUTH), "no suitable
AUTH mechanism");
g_clear_error(&error);
@@ -659,8 +659,8 @@ test_pop3(void)
sput_fail_unless((pop = net_client_pop_new("localhost", 64110, NET_CLIENT_CRYPT_STARTTLS, FALSE)) !=
NULL,
"localhost:64110, starttls, no pipelining");
sput_fail_unless(net_client_pop_allow_auth(pop, TRUE, NET_CLIENT_POP_AUTH_USER_PASS) == TRUE, "force
auth meth USER/PASS");
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
sput_fail_unless(net_client_pop_connect(pop, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_pop_stat(pop, &msg_count, NULL, NULL) == TRUE, "STAT: success");
sput_fail_unless(net_client_pop_list(pop, &msg_list, FALSE, NULL) == TRUE, "LIST: success");
@@ -677,8 +677,8 @@ test_pop3(void)
sput_fail_unless((pop = net_client_pop_new("localhost", 64110, NET_CLIENT_CRYPT_STARTTLS_OPT, TRUE))
!= NULL,
"localhost:64110, starttls opt, pipelining");
sput_fail_unless(net_client_pop_allow_auth(pop, TRUE, NET_CLIENT_POP_AUTH_APOP) == TRUE, "force auth
meth APOP");
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
sput_fail_unless(net_client_pop_connect(pop, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_pop_stat(pop, NULL, &mbox_size, NULL) == TRUE, "STAT: success");
sput_fail_unless(net_client_pop_list(pop, &msg_list, FALSE, NULL) == TRUE, "LIST: success");
@@ -693,8 +693,8 @@ test_pop3(void)
sput_fail_unless((pop = net_client_pop_new("localhost", 64110, NET_CLIENT_CRYPT_STARTTLS, TRUE)) !=
NULL,
"localhost:64110, starttls, pipelining");
sput_fail_unless(net_client_pop_allow_auth(pop, TRUE, NET_CLIENT_POP_AUTH_PLAIN) == TRUE, "force auth
meth PLAIN");
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
sput_fail_unless(net_client_pop_connect(pop, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_pop_list(pop, &msg_list, FALSE, NULL) == TRUE, "LIST: success");
g_message("message count: %u", g_list_length(msg_list));
@@ -708,8 +708,8 @@ test_pop3(void)
sput_fail_unless((pop = net_client_pop_new("localhost", 64110, NET_CLIENT_CRYPT_STARTTLS_OPT, FALSE))
!= NULL,
"localhost:64110, starttls opt, no pipelining");
sput_fail_unless(net_client_pop_allow_auth(pop, TRUE, NET_CLIENT_POP_AUTH_PLAIN) == TRUE, "force auth
meth PLAIN");
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
sput_fail_unless(net_client_pop_connect(pop, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_pop_list(pop, &msg_list, FALSE, NULL) == TRUE, "LIST: success");
g_message("message count: %u", g_list_length(msg_list));
@@ -723,8 +723,8 @@ test_pop3(void)
sput_fail_unless((pop = net_client_pop_new("localhost", 64995, NET_CLIENT_CRYPT_ENCRYPTED, FALSE)) !=
NULL,
"localhost:64995, pop3s, no pipelining");
sput_fail_unless(net_client_pop_allow_auth(pop, TRUE, NET_CLIENT_POP_AUTH_LOGIN) == TRUE, "force auth
meth LOGIN");
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
sput_fail_unless(net_client_pop_connect(pop, NULL, &error) == TRUE, "connect: success");
sput_fail_unless(net_client_pop_stat(pop, &msg_count, &mbox_size, NULL) == TRUE, "STAT: success");
sput_fail_unless(net_client_pop_list(pop, &msg_list, FALSE, NULL) == TRUE, "LIST: success");
@@ -739,8 +739,8 @@ test_pop3(void)
sput_fail_unless((pop = net_client_pop_new("localhost", 64995, NET_CLIENT_CRYPT_ENCRYPTED, TRUE)) !=
NULL,
"localhost:64995, pop3s, pipelining");
sput_fail_unless(net_client_pop_allow_auth(pop, TRUE, NET_CLIENT_POP_AUTH_CRAM_MD5) == TRUE, "force
auth meth CRAM-MD5");
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
sput_fail_unless(net_client_pop_connect(pop, NULL, NULL) == TRUE, "connect: success");
sput_fail_unless(net_client_pop_list(pop, &msg_list, TRUE, NULL) == TRUE, "LIST: success");
g_message("message count: %u", g_list_length(msg_list));
@@ -754,8 +754,8 @@ test_pop3(void)
sput_fail_unless((pop = net_client_pop_new("localhost", 64995, NET_CLIENT_CRYPT_ENCRYPTED, FALSE)) !=
NULL,
"localhost:64995, pop3s, no pipelining");
sput_fail_unless(net_client_pop_allow_auth(pop, TRUE, NET_CLIENT_POP_AUTH_CRAM_SHA1) == TRUE, "force
auth meth CRAM-SHA1");
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
sput_fail_unless(net_client_pop_connect(pop, NULL, &error) == TRUE, "connect: success");
sput_fail_unless(net_client_pop_list(pop, &msg_list, TRUE, NULL) == TRUE, "LIST: success");
g_message("message count: %u", g_list_length(msg_list));
@@ -769,8 +769,8 @@ test_pop3(void)
sput_fail_unless((pop = net_client_pop_new("localhost", 64995, NET_CLIENT_CRYPT_ENCRYPTED, TRUE)) !=
NULL,
"localhost:64995, pop3s, pipelining");
sput_fail_unless(net_client_pop_allow_auth(pop, TRUE, NET_CLIENT_POP_AUTH_CRAM_SHA1) == TRUE, "force
auth meth CRAM-SHA1");
- g_signal_connect(G_OBJECT(pop), "cert-check", G_CALLBACK(check_cert), NULL);
- g_signal_connect(G_OBJECT(pop), "auth", G_CALLBACK(get_auth), pop);
+ g_signal_connect(pop, "cert-check", G_CALLBACK(check_cert), NULL);
+ g_signal_connect(pop, "auth", G_CALLBACK(get_auth), pop);
sput_fail_unless(net_client_pop_connect(pop, NULL, &error) == TRUE, "connect: success");
sput_fail_unless(net_client_pop_list(pop, &msg_list, TRUE, NULL) == TRUE, "LIST: success");
g_message("message count: %u", g_list_length(msg_list));
diff --git a/src/ab-main.c b/src/ab-main.c
index 63b3d0aea..7fa0aabbe 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -740,9 +740,9 @@ bab_window_list_new(void)
g_object_unref(store);
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree));
gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
- g_signal_connect(G_OBJECT(selection), "changed",
+ g_signal_connect(selection, "changed",
G_CALLBACK(list_selection_changed_cb), NULL);
- g_signal_connect(G_OBJECT(tree), "row-activated",
+ g_signal_connect(tree, "row-activated",
G_CALLBACK(list_row_activated_cb), NULL);
renderer = gtk_cell_renderer_text_new();
@@ -758,7 +758,7 @@ bab_window_list_new(void)
GDK_BUTTON1_MASK,
libbalsa_address_target_list, 2,
GDK_ACTION_COPY);
- g_signal_connect(G_OBJECT(tree), "drag-data-get",
+ g_signal_connect(tree, "drag-data-get",
G_CALLBACK(addrlist_drag_get_cb), NULL);
renderer = gtk_cell_renderer_text_new();
@@ -852,17 +852,17 @@ bab_get_edit_button_box(struct ABMainWindow *abmw)
gtk_container_add(GTK_CONTAINER(box),
abmw->apply_button =
gtk_button_new_with_mnemonic(_("_Apply")));
- g_signal_connect(G_OBJECT(abmw->apply_button), "clicked",
+ g_signal_connect(abmw->apply_button, "clicked",
G_CALLBACK(apply_button_cb), (gpointer) NULL);
gtk_container_add(GTK_CONTAINER(box),
abmw->remove_button =
gtk_button_new_with_mnemonic(_("_Remove")));
- g_signal_connect(G_OBJECT(abmw->remove_button), "clicked",
+ g_signal_connect(abmw->remove_button, "clicked",
G_CALLBACK(remove_button_cb), (gpointer) NULL);
gtk_container_add(GTK_CONTAINER(box),
abmw->cancel_button =
gtk_button_new_with_mnemonic(_("_Cancel")));
- g_signal_connect(G_OBJECT(abmw->cancel_button), "clicked",
+ g_signal_connect(abmw->cancel_button, "clicked",
G_CALLBACK(cancel_button_cb), abmw);
return box;
}
@@ -903,13 +903,13 @@ bab_get_filter_box(void)
GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start(GTK_BOX(search_hbox), button, FALSE, FALSE, 1);
- g_signal_connect(G_OBJECT(find_entry), "activate",
+ g_signal_connect(find_entry, "activate",
G_CALLBACK(bab_filter_entry_activate),
button);
- g_signal_connect_swapped(G_OBJECT(button), "clicked",
+ g_signal_connect_swapped(button, "clicked",
G_CALLBACK(bab_filter_entry_activate),
find_entry);
- g_signal_connect(G_OBJECT(find_entry), "changed",
+ g_signal_connect(find_entry, "changed",
G_CALLBACK(bab_filter_entry_changed),
button);
return search_hbox;
@@ -979,7 +979,7 @@ bab_window_new(GtkApplication * application)
gtk_label_new(_("Edit")));
/*
- g_signal_connect(G_OBJECT(find_entry), "changed",
+ g_signal_connect(find_entry, "changed",
G_CALLBACK(balsa_ab_window_find), ab);
*/
g_signal_connect(wnd, "key-press-event",
@@ -1140,9 +1140,9 @@ main(int argc, char *argv[])
ab_window = bab_window_new(application);
- g_signal_connect(G_OBJECT(ab_window), "destroy",
+ g_signal_connect(ab_window, "destroy",
G_CALLBACK(bab_cleanup), NULL);
- g_signal_connect(G_OBJECT(ab_window), "delete-event",
+ g_signal_connect(ab_window, "delete-event",
G_CALLBACK(bab_delete_ok), NULL);
bab_set_intial_address_book(ab, ab_window);
diff --git a/src/ab-window.c b/src/ab-window.c
index 8743dbfcd..5cae7fb5f 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -200,7 +200,7 @@ balsa_ab_window_list(BalsaAbWindow * ab, GCallback row_activated_cb)
gtk_tree_selection_set_mode(selection, GTK_SELECTION_MULTIPLE);
gtk_widget_show(tree);
- g_signal_connect(G_OBJECT(tree), "row-activated", row_activated_cb,
+ g_signal_connect(tree, "row-activated", row_activated_cb,
ab);
return tree;
}
@@ -242,7 +242,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
g_return_if_fail(balsa_app.address_book_list);
gtk_window_set_title(GTK_WINDOW(ab), _("Address Book"));
- g_signal_connect(G_OBJECT(ab), "response",
+ g_signal_connect(ab, "response",
G_CALLBACK(balsa_ab_window_response_cb), NULL);
vbox = gtk_dialog_get_content_area(GTK_DIALOG(ab));
@@ -296,7 +296,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
ab->filter_entry = gtk_entry_new();
gtk_widget_show(ab->filter_entry);
gtk_label_set_mnemonic_widget(GTK_LABEL(find_label), ab->filter_entry);
- g_signal_connect(G_OBJECT(ab->filter_entry), "changed",
+ g_signal_connect(ab->filter_entry, "changed",
G_CALLBACK(balsa_ab_window_find), ab);
/* Pack the find stuff into the grid */
@@ -332,7 +332,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
gtk_widget_show(GTK_WIDGET(w));
w = gtk_button_new_with_mnemonic(_("_Re-import"));
- g_signal_connect(G_OBJECT(w), "clicked",
+ g_signal_connect(w, "clicked",
G_CALLBACK(balsa_ab_window_reload),
ab);
gtk_container_add(GTK_CONTAINER(hbox), w);
@@ -352,7 +352,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
GTK_ICON_SIZE_BUTTON);
gtk_box_pack_start(GTK_BOX(ab->arrow_box), w, TRUE, FALSE, 0);
gtk_widget_show(w);
- g_signal_connect(G_OBJECT(w), "clicked",
+ g_signal_connect(w, "clicked",
G_CALLBACK(balsa_ab_window_move_to_recipient_list),
ab);
@@ -360,7 +360,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
GTK_ICON_SIZE_BUTTON);
gtk_box_pack_start(GTK_BOX(ab->arrow_box), w, TRUE, FALSE, 0);
gtk_widget_show(w);
- g_signal_connect(G_OBJECT(w), "clicked",
+ g_signal_connect(w, "clicked",
G_CALLBACK(balsa_ab_window_remove_from_recipient_list),
ab);
@@ -394,7 +394,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
_("a distribution list"));
gtk_widget_show(ab->dist_address_mode_radio);
ab->toggle_handler_id =
- g_signal_connect(G_OBJECT(ab->single_address_mode_radio),
+ g_signal_connect(ab->single_address_mode_radio,
"toggled",
G_CALLBACK(balsa_ab_window_dist_mode_toggled),
ab);
@@ -884,7 +884,7 @@ balsa_ab_window_menu_changed(GtkWidget * widget, BalsaAbWindow *ab)
ab->current_address_book = addr;
- g_signal_handler_block(G_OBJECT(ab->single_address_mode_radio),
+ g_signal_handler_block(ab->single_address_mode_radio,
ab->toggle_handler_id);
if (libbalsa_address_book_get_dist_list_mode(ab->current_address_book))
gtk_toggle_button_set_active(
@@ -892,7 +892,7 @@ balsa_ab_window_menu_changed(GtkWidget * widget, BalsaAbWindow *ab)
else
gtk_toggle_button_set_active(
GTK_TOGGLE_BUTTON(ab->single_address_mode_radio), TRUE);
- g_signal_handler_unblock(G_OBJECT(ab->single_address_mode_radio),
+ g_signal_handler_unblock(ab->single_address_mode_radio,
ab->toggle_handler_id);
balsa_ab_window_load(ab);
diff --git a/src/address-book-config.c b/src/address-book-config.c
index 4c0a5cbe0..9546d34f5 100644
--- a/src/address-book-config.c
+++ b/src/address-book-config.c
@@ -270,7 +270,7 @@ create_local_dialog(AddressBookConfig * abc, const gchar * type)
utf8name);
g_free(utf8name);
}
- g_signal_connect(G_OBJECT(dialog), "response",
+ g_signal_connect(dialog, "response",
G_CALLBACK(edit_book_response), abc);
return dialog;
@@ -352,7 +352,7 @@ create_generic_dialog(AddressBookConfig * abc, const gchar * type)
gtk_container_set_border_width(GTK_CONTAINER
(gtk_dialog_get_content_area
(GTK_DIALOG(dialog))), 12);
- g_signal_connect(G_OBJECT(dialog), "response",
+ g_signal_connect(dialog, "response",
G_CALLBACK(edit_book_response), abc);
return dialog;
@@ -405,7 +405,7 @@ create_osmo_dialog(AddressBookConfig *abc)
abc->name_entry =
libbalsa_create_grid_entry(grid, NULL, NULL, 0, name, label);
add_radio_buttons(grid, 1, abc);
- g_signal_connect(G_OBJECT(dialog), "response",
+ g_signal_connect(dialog, "response",
G_CALLBACK(edit_book_response), abc);
return dialog;
@@ -941,45 +941,45 @@ balsa_address_book_add_menu(BalsaAddressBookCallback callback,
menuitem =
gtk_menu_item_new_with_label(_("vCard Address Book (GnomeCard)"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(add_vcard_cb), abc);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
menuitem =
gtk_menu_item_new_with_label(_("External query (a program)"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(add_externq_cb), abc);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
menuitem = gtk_menu_item_new_with_label(_("LDIF Address Book"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(add_ldif_cb), abc);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
#ifdef ENABLE_LDAP
menuitem = gtk_menu_item_new_with_label(_("LDAP Address Book"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(add_ldap_cb), abc);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
#endif /* ENABLE_LDAP */
#ifdef HAVE_SQLITE
menuitem = gtk_menu_item_new_with_label(_("GPE Address Book"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(add_gpe_cb), abc);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
#endif /* HAVE_SQLITE */
#ifdef HAVE_RUBRICA
menuitem = gtk_menu_item_new_with_label(_("Rubrica2 Address Book"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(add_rubrica_cb), abc);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
#endif /* HAVE_RUBRICA */
#ifdef HAVE_OSMO
menuitem = gtk_menu_item_new_with_label(_("Osmo Address Book"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(add_osmo_cb), abc);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
#endif
diff --git a/src/balsa-index.c b/src/balsa-index.c
index d794508ed..292e4ae7e 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -593,7 +593,7 @@ bndx_selection_changed(GtkTreeSelection * selection, BalsaIndex * index)
gtk_tree_path_free(path);
if (!update_preview) {
- g_signal_emit(G_OBJECT(index), balsa_index_signals[INDEX_CHANGED], 0);
+ g_signal_emit(index, balsa_index_signals[INDEX_CHANGED], 0);
return;
}
}
@@ -665,7 +665,7 @@ bndx_row_activated(GtkTreeView * tree_view, GtkTreePath * path,
BalsaSendmsg *sm =
sendmsg_window_continue(mailbox, msgno);
if (sm)
- g_signal_connect(G_OBJECT(sm->window), "destroy",
+ g_signal_connect(sm->window, "destroy",
G_CALLBACK(sendmsg_window_destroy_cb), NULL);
} else
message_window_new(mailbox, msgno);
@@ -1548,7 +1548,7 @@ bndx_compose_foreach(BalsaIndex * index, SendType send_type)
}
if (sm != NULL) {
- g_signal_connect(G_OBJECT(sm->window), "destroy",
+ g_signal_connect(sm->window, "destroy",
G_CALLBACK(sendmsg_window_destroy_cb), NULL);
} else if (send_type == SEND_REPLY_GROUP) {
++skipped;
@@ -1607,7 +1607,7 @@ bndx_compose_from_list(BalsaIndex * index, SendType send_type)
selected, send_type);
balsa_index_selected_msgnos_free(index, selected);
- g_signal_connect(G_OBJECT(sm->window), "destroy",
+ g_signal_connect(sm->window, "destroy",
G_CALLBACK(sendmsg_window_destroy_cb), NULL);
}
@@ -2011,7 +2011,7 @@ create_stock_menu_item(GtkWidget * menu, const gchar * label, GCallback cb,
{
GtkWidget *menuitem = gtk_menu_item_new_with_mnemonic(label);
- g_signal_connect_swapped(G_OBJECT(menuitem), "activate",
+ g_signal_connect_swapped(menuitem, "activate",
G_CALLBACK(cb), data);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
@@ -2210,7 +2210,7 @@ bndx_changed_find_row(BalsaIndex * index)
index->prev_message = FALSE;
}
- g_signal_emit(G_OBJECT(index), balsa_index_signals[INDEX_CHANGED], 0);
+ g_signal_emit(index, balsa_index_signals[INDEX_CHANGED], 0);
}
/* Make the actual selection,
diff --git a/src/balsa-mblist.c b/src/balsa-mblist.c
index 40ac183ef..9cf3b612b 100644
--- a/src/balsa-mblist.c
+++ b/src/balsa-mblist.c
@@ -404,9 +404,9 @@ balsa_mblist_init(BalsaMBList * mblist)
bmbl_selection_func, NULL,
NULL);
- g_signal_connect_after(G_OBJECT(tree_view), "row-expanded",
+ g_signal_connect_after(tree_view, "row-expanded",
G_CALLBACK(bmbl_tree_expand), NULL);
- g_signal_connect(G_OBJECT(tree_view), "row-collapsed",
+ g_signal_connect(tree_view, "row-collapsed",
G_CALLBACK(bmbl_tree_collapse), NULL);
g_object_set(mblist,
@@ -1255,9 +1255,9 @@ balsa_mblist_default_signal_bindings(BalsaMBList * mblist)
{
GtkTreeSelection *selection;
- g_signal_connect(G_OBJECT(mblist), "button_press_event",
+ g_signal_connect(mblist, "button_press_event",
G_CALLBACK(bmbl_button_press_cb), NULL);
- g_signal_connect_after(G_OBJECT(mblist), "size-allocate",
+ g_signal_connect_after(mblist, "size-allocate",
G_CALLBACK(bmbl_column_resize), NULL);
gtk_tree_view_enable_model_drag_dest(GTK_TREE_VIEW(mblist),
bmbl_drop_types,
@@ -1265,13 +1265,13 @@ balsa_mblist_default_signal_bindings(BalsaMBList * mblist)
GDK_ACTION_DEFAULT |
GDK_ACTION_COPY |
GDK_ACTION_MOVE);
- g_signal_connect(G_OBJECT(mblist), "drag-data-received",
+ g_signal_connect(mblist, "drag-data-received",
G_CALLBACK(bmbl_drag_cb), NULL);
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(mblist));
- g_signal_connect(G_OBJECT(selection), "changed",
+ g_signal_connect(selection, "changed",
G_CALLBACK(bmbl_select_mailbox), NULL);
- g_signal_connect(G_OBJECT(mblist), "row-activated",
+ g_signal_connect(mblist, "row-activated",
G_CALLBACK(bmbl_row_activated_cb), NULL);
}
@@ -1353,7 +1353,7 @@ bmbl_store_redraw_mbnode(GtkTreeIter * iter, BalsaMailboxNode * mbnode)
if (!mailbox_changed_signal)
mailbox_changed_signal =
g_signal_lookup("changed", LIBBALSA_TYPE_MAILBOX);
- if (!g_signal_has_handler_pending(G_OBJECT(mailbox),
+ if (!g_signal_has_handler_pending(mailbox,
mailbox_changed_signal, 0, TRUE)) {
/* Now we have a mailbox: */
g_signal_connect(mailbox, "changed",
@@ -2166,7 +2166,7 @@ balsa_mblist_mru_option_menu(GtkWindow * window, GList ** url_list)
g_object_set_data_full(G_OBJECT(combo_box), "mro", mro,
(GDestroyNotify) bmbl_mru_combo_box_destroy_cb);
bmbl_mru_combo_box_setup(GTK_COMBO_BOX(combo_box));
- g_signal_connect(G_OBJECT(combo_box), "changed",
+ g_signal_connect(combo_box, "changed",
G_CALLBACK(bmbl_mru_combo_box_changed), mro);
return combo_box;
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 180e6cfb6..3c81d5ccd 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -264,10 +264,10 @@ bm_header_tl_buttons(BalsaMessage * bm)
GTK_ICON_SIZE_BUTTON);
gtk_widget_set_tooltip_text(button,
_("Check cryptographic signature"));
- g_signal_connect(G_OBJECT(button), "focus_in_event",
+ g_signal_connect(button, "focus_in_event",
G_CALLBACK(balsa_mime_widget_limit_focus),
(gpointer) bm);
- g_signal_connect(G_OBJECT(button), "focus_out_event",
+ g_signal_connect(button, "focus_out_event",
G_CALLBACK(balsa_mime_widget_unlimit_focus),
(gpointer) bm);
gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
@@ -280,10 +280,10 @@ bm_header_tl_buttons(BalsaMessage * bm)
GTK_ICON_SIZE_BUTTON);
gtk_widget_set_tooltip_text(button,
_("Select message part to display"));
- g_signal_connect(G_OBJECT(button), "focus_in_event",
+ g_signal_connect(button, "focus_in_event",
G_CALLBACK(balsa_mime_widget_limit_focus),
(gpointer) bm);
- g_signal_connect(G_OBJECT(button), "focus_out_event",
+ g_signal_connect(button, "focus_out_event",
G_CALLBACK(balsa_mime_widget_unlimit_focus),
(gpointer) bm);
gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
@@ -719,10 +719,10 @@ balsa_message_init(BalsaMessage * bm)
g_free(buttons);
/* Widget to hold message */
- g_signal_connect(G_OBJECT(bm->bm_widget->widget), "focus_in_event",
+ g_signal_connect(bm->bm_widget->widget, "focus_in_event",
G_CALLBACK(balsa_mime_widget_limit_focus),
(gpointer) bm);
- g_signal_connect(G_OBJECT(bm->bm_widget->widget), "focus_out_event",
+ g_signal_connect(bm->bm_widget->widget, "focus_out_event",
G_CALLBACK(balsa_mime_widget_unlimit_focus),
(gpointer) bm);
@@ -976,14 +976,14 @@ tree_mult_selection_popup(BalsaMessage * bm, GdkEventButton * event,
menu_item =
gtk_menu_item_new_with_label (_("Save selected as…"));
gtk_widget_show(menu_item);
- g_signal_connect (G_OBJECT (menu_item), "activate",
+ g_signal_connect (menu_item, "activate",
G_CALLBACK (part_context_save_all_cb),
(gpointer) bm->save_all_list);
gtk_menu_shell_append (GTK_MENU_SHELL (bm->save_all_popup), menu_item);
menu_item =
gtk_menu_item_new_with_label (_("Save selected to folder…"));
gtk_widget_show(menu_item);
- g_signal_connect (G_OBJECT (menu_item), "activate",
+ g_signal_connect (menu_item, "activate",
G_CALLBACK (part_context_dump_all_cb),
(gpointer) bm->save_all_list);
gtk_menu_shell_append (GTK_MENU_SHELL (bm->save_all_popup), menu_item);
@@ -1379,7 +1379,7 @@ add_to_attachments_popup(GtkMenuShell * menu, const gchar * item,
GtkWidget * menuitem = gtk_menu_item_new_with_label (item);
g_object_set_data(G_OBJECT(menuitem), "balsa-message", bm);
- g_signal_connect(G_OBJECT (menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK (atattchments_menu_cb),
(gpointer) info);
gtk_menu_shell_append(menu, menuitem);
@@ -1407,7 +1407,7 @@ add_toggle_inline_menu_item(GtkMenuShell * menu, BalsaMessage * bm,
gtk_check_menu_item_new_with_label (_("force inline for all parts"));
g_object_set_data(G_OBJECT(menuitem), "balsa-message", bm);
- g_signal_connect(G_OBJECT (menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK (toggle_all_inline_cb),
(gpointer) info);
gtk_menu_shell_append(menu, menuitem);
@@ -1676,7 +1676,7 @@ part_create_menu (BalsaPartInfo* info)
(gpointer)info->body);
menu_item = gtk_menu_item_new_with_mnemonic (_("_Save…"));
- g_signal_connect (G_OBJECT (menu_item), "activate",
+ g_signal_connect (menu_item, "activate",
G_CALLBACK (balsa_mime_widget_ctx_menu_save), (gpointer) info->body);
gtk_menu_shell_append (GTK_MENU_SHELL (info->popup_menu), menu_item);
@@ -2287,7 +2287,7 @@ select_part(BalsaMessage * bm, BalsaPartInfo *info)
body = add_part(bm, info, bm->bm_widget->container);
bm->current_part = part_info_from_body(bm, body);
- g_signal_emit(G_OBJECT(bm), balsa_message_signals[SELECT_PART], 0);
+ g_signal_emit(bm, balsa_message_signals[SELECT_PART], 0);
if (body != NULL) {
GtkScrolledWindow *scroll = GTK_SCROLLED_WINDOW(bm->scroll);
@@ -2607,7 +2607,7 @@ create_mdn_dialog(GtkWindow *parent, gchar * sender, gchar * mdn_to_address,
g_object_set_data(G_OBJECT(mdn_dialog), "balsa-send-msg", send_msg);
g_object_set_data(G_OBJECT(mdn_dialog), "mdn-ident",
g_object_ref(mdn_ident));
- g_signal_connect(G_OBJECT(mdn_dialog), "response",
+ g_signal_connect(mdn_dialog, "response",
G_CALLBACK(mdn_dialog_response), NULL);
return mdn_dialog;
diff --git a/src/balsa-mime-widget-crypto.c b/src/balsa-mime-widget-crypto.c
index ad5239044..681b7bedb 100644
--- a/src/balsa-mime-widget-crypto.c
+++ b/src/balsa-mime-widget-crypto.c
@@ -141,7 +141,7 @@ balsa_mime_widget_signature_widget(LibBalsaMessageBody * mime_body,
if (autocrypt_key != NULL) {
button = gtk_button_new_with_mnemonic(_("_Import Autocrypt key"));
g_object_set_data_full(G_OBJECT(button), "autocrypt_key", autocrypt_key,
(GDestroyNotify) g_bytes_unref);
- g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(on_key_import_button), NULL);
+ g_signal_connect(button, "clicked", G_CALLBACK(on_key_import_button), NULL);
gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0);
}
#endif
@@ -149,7 +149,7 @@ balsa_mime_widget_signature_widget(LibBalsaMessageBody * mime_body,
} else {
button = gtk_button_new_with_mnemonic(_("_Search key server for updates of this key"));
}
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(on_gpg_key_button),
(gpointer) g_mime_gpgme_sigstat_fingerprint(mime_body->sig_info));
gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0);
@@ -337,7 +337,7 @@ create_import_keys_widget(GtkBox *box, const gchar *key_buf, GError **error)
import_btn = gtk_button_new_with_label(_("Import key into the
local key ring"));
g_object_set_data_full(G_OBJECT(import_btn), "keydata",
key_ascii, (GDestroyNotify) g_free);
- g_signal_connect(G_OBJECT(import_btn), "clicked", (GCallback)
on_key_import_button, NULL);
+ g_signal_connect(import_btn, "clicked", (GCallback)
on_key_import_button, NULL);
gtk_box_pack_start(box, import_btn, FALSE, FALSE, 0);
if (item->next != NULL) {
diff --git a/src/balsa-mime-widget-image.c b/src/balsa-mime-widget-image.c
index b46eac8c5..41fc74a32 100644
--- a/src/balsa-mime-widget-image.c
+++ b/src/balsa-mime-widget-image.c
@@ -98,7 +98,7 @@ balsa_mime_widget_new_image(BalsaMessage * bm,
mw = (BalsaMimeWidget *) mwi;
mw->widget = gtk_event_box_new();
- g_signal_connect(G_OBJECT(mw->widget), "button-press-event",
+ g_signal_connect(mw->widget, "button-press-event",
G_CALLBACK(balsa_image_button_press_cb), data);
image = gtk_image_new_from_icon_name("image-missing",
diff --git a/src/balsa-mime-widget-message.c b/src/balsa-mime-widget-message.c
index 93863dd96..63cfeff23 100644
--- a/src/balsa-mime-widget-message.c
+++ b/src/balsa-mime-widget-message.c
@@ -239,7 +239,7 @@ bmw_message_extbody_url(LibBalsaMessageBody * mime_body,
BMW_BUTTON_PACK_SPACE);
g_object_set_data_full(G_OBJECT(button), "call_url", url,
(GDestroyNotify) g_free);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(extbody_call_url), NULL);
return mw;
@@ -286,7 +286,7 @@ bmw_message_extbody_mail(LibBalsaMessageBody * mime_body)
("Se_nd message to obtain this part"));
gtk_box_pack_start(GTK_BOX(mw->widget), button, FALSE, FALSE,
BMW_BUTTON_PACK_SPACE);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(extbody_send_mail), (gpointer) mime_body);
@@ -439,7 +439,7 @@ bm_header_extend_popup(GtkWidget * widget, GtkMenu * menu, gpointer arg)
gtk_menu_shell_append(GTK_MENU_SHELL(menu), separator);
gtk_widget_show(separator);
menu_item = gtk_menu_item_new_with_label(_("Reply…"));
- g_signal_connect(G_OBJECT(menu_item), "activate",
+ g_signal_connect(menu_item, "activate",
G_CALLBACK(bm_header_ctx_menu_reply),
arg);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
@@ -719,7 +719,7 @@ bmw_message_set_headers_d(BalsaMessage * bm,
}
if (balsa_message_get_shown_headers(bm) == HEADERS_NONE) {
- g_signal_connect(G_OBJECT(widget), "realize",
+ g_signal_connect(widget, "realize",
G_CALLBACK(gtk_widget_hide), NULL);
return;
}
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 5a1533176..d077c07a5 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -205,10 +205,10 @@ balsa_mime_widget_new_text(BalsaMessage * bm, LibBalsaMessageBody * mime_body,
)
libbalsa_wrap_string(ptr, balsa_app.browse_wrap_length);
- g_signal_connect(G_OBJECT(mw->widget), "key_press_event",
+ g_signal_connect(mw->widget, "key_press_event",
G_CALLBACK(balsa_mime_widget_key_press_event),
(gpointer) bm);
- g_signal_connect(G_OBJECT(mw->widget), "populate-popup",
+ g_signal_connect(mw->widget, "populate-popup",
G_CALLBACK(text_view_populate_popup),
(gpointer)mime_body);
@@ -219,16 +219,16 @@ balsa_mime_widget_new_text(BalsaMessage * bm, LibBalsaMessageBody * mime_body,
is_text_plain);
prepare_url_offsets(buffer, url_list);
- g_signal_connect_after(G_OBJECT(mw->widget), "realize",
+ g_signal_connect_after(mw->widget, "realize",
G_CALLBACK(fix_text_widget), url_list);
if (url_list) {
- g_signal_connect(G_OBJECT(mw->widget), "button_press_event",
+ g_signal_connect(mw->widget, "button_press_event",
G_CALLBACK(store_button_coords), NULL);
- g_signal_connect(G_OBJECT(mw->widget), "button_release_event",
+ g_signal_connect(mw->widget, "button_release_event",
G_CALLBACK(check_call_url), url_list);
- g_signal_connect(G_OBJECT(mw->widget), "motion-notify-event",
+ g_signal_connect(mw->widget, "motion-notify-event",
G_CALLBACK(check_over_url), url_list);
- g_signal_connect(G_OBJECT(mw->widget), "leave-notify-event",
+ g_signal_connect(mw->widget, "leave-notify-event",
G_CALLBACK(check_over_url), url_list);
g_object_set_data_full(G_OBJECT(mw->widget), "url-list", url_list,
(GDestroyNotify)free_url_list);
@@ -512,17 +512,17 @@ text_view_url_popup(GtkTextView *textview, GtkMenu *menu)
(GtkCallback)gtk_widget_destroy, NULL);
menu_item = gtk_menu_item_new_with_label (_("Copy link"));
- g_signal_connect (G_OBJECT (menu_item), "activate",
+ g_signal_connect (menu_item, "activate",
G_CALLBACK (url_copy_cb), (gpointer)url);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
menu_item = gtk_menu_item_new_with_label (_("Open link"));
- g_signal_connect (G_OBJECT (menu_item), "activate",
+ g_signal_connect (menu_item, "activate",
G_CALLBACK (url_open_cb), (gpointer)url);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
menu_item = gtk_menu_item_new_with_label (_("Send link…"));
- g_signal_connect (G_OBJECT (menu_item), "activate",
+ g_signal_connect (menu_item, "activate",
G_CALLBACK (url_send_cb), (gpointer)url);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
@@ -553,7 +553,7 @@ text_view_populate_popup(GtkTextView *textview, GtkMenu *menu,
(gpointer)mime_body);
menu_item = gtk_menu_item_new_with_label (_("Save…"));
- g_signal_connect (G_OBJECT (menu_item), "activate",
+ g_signal_connect (menu_item, "activate",
G_CALLBACK (balsa_mime_widget_ctx_menu_save), (gpointer)mime_body);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
@@ -565,7 +565,7 @@ text_view_populate_popup(GtkTextView *textview, GtkMenu *menu,
menu_item = gtk_check_menu_item_new_with_label (_("Highlight structured phrases"));
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menu_item),
phrase_hl == PHRASE_HIGHLIGHT_ON);
- g_signal_connect (G_OBJECT (menu_item), "toggled",
+ g_signal_connect (menu_item, "toggled",
G_CALLBACK (structured_phrases_toggle),
(gpointer)textview);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
@@ -1061,17 +1061,17 @@ bmwt_populate_popup_menu(BalsaMessage * bm,
gpointer mime_body = g_object_get_data(G_OBJECT(html), "mime-body");
menuitem = gtk_menu_item_new_with_label(_("Zoom In"));
- g_signal_connect_swapped(G_OBJECT(menuitem), "activate",
+ g_signal_connect_swapped(menuitem, "activate",
G_CALLBACK(bm_zoom_in), bm);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
menuitem = gtk_menu_item_new_with_label(_("Zoom Out"));
- g_signal_connect_swapped(G_OBJECT(menuitem), "activate",
+ g_signal_connect_swapped(menuitem, "activate",
G_CALLBACK(bm_zoom_out), bm);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
menuitem = gtk_menu_item_new_with_label(_("Zoom 100%"));
- g_signal_connect_swapped(G_OBJECT(menuitem), "activate",
+ g_signal_connect_swapped(menuitem, "activate",
G_CALLBACK(bm_zoom_reset), bm);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
@@ -1080,7 +1080,7 @@ bmwt_populate_popup_menu(BalsaMessage * bm,
if (libbalsa_html_can_select(html)) {
menuitem = gtk_menu_item_new_with_mnemonic(_("Select _All"));
- g_signal_connect_swapped(G_OBJECT(menuitem), "activate",
+ g_signal_connect_swapped(menuitem, "activate",
G_CALLBACK(bm_select_all_cb), html);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
@@ -1094,7 +1094,7 @@ bmwt_populate_popup_menu(BalsaMessage * bm,
mime_body);
menuitem = gtk_menu_item_new_with_label(_("Save…"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(balsa_mime_widget_ctx_menu_save),
mime_body);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
@@ -1103,7 +1103,7 @@ bmwt_populate_popup_menu(BalsaMessage * bm,
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
menuitem = gtk_menu_item_new_with_label(_("Print…"));
- g_signal_connect_swapped(G_OBJECT(menuitem), "activate",
+ g_signal_connect_swapped(menuitem, "activate",
G_CALLBACK(libbalsa_html_print), html);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_set_sensitive(menuitem, libbalsa_html_can_print(html));
@@ -1433,7 +1433,7 @@ fill_text_buf_cited(GtkWidget *widget, const gchar *text_body,
g_object_set_data_full(G_OBJECT(widget), "cite-bars", cite_bars_list,
(GDestroyNotify) destroy_cite_bars);
g_object_set_data(G_OBJECT(widget), "cite-margin", GINT_TO_POINTER(margin));
- g_signal_connect_after(G_OBJECT(widget), "draw",
+ g_signal_connect_after(widget, "draw",
G_CALLBACK(draw_cite_bars), cite_bars_list);
}
diff --git a/src/balsa-mime-widget-vcalendar.c b/src/balsa-mime-widget-vcalendar.c
index 99b8a56d4..3cb25175c 100644
--- a/src/balsa-mime-widget-vcalendar.c
+++ b/src/balsa-mime-widget-vcalendar.c
@@ -249,7 +249,7 @@ balsa_vevent_widget(LibBalsaVEvent * event, gboolean may_reply,
(GDestroyNotify) g_object_unref);
g_object_set_data(G_OBJECT(button), "mode",
GINT_TO_POINTER(VCAL_PSTAT_ACCEPTED));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(vevent_reply), bbox);
gtk_container_add(GTK_CONTAINER(bbox), button);
@@ -257,7 +257,7 @@ balsa_vevent_widget(LibBalsaVEvent * event, gboolean may_reply,
g_object_set_data(G_OBJECT(button), "event", event);
g_object_set_data(G_OBJECT(button), "mode",
GINT_TO_POINTER(VCAL_PSTAT_TENTATIVE));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(vevent_reply), bbox);
gtk_container_add(GTK_CONTAINER(bbox), button);
@@ -265,7 +265,7 @@ balsa_vevent_widget(LibBalsaVEvent * event, gboolean may_reply,
g_object_set_data(G_OBJECT(button), "event", event);
g_object_set_data(G_OBJECT(button), "mode",
GINT_TO_POINTER(VCAL_PSTAT_DECLINED));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(vevent_reply), bbox);
gtk_container_add(GTK_CONTAINER(bbox), button);
diff --git a/src/balsa-mime-widget.c b/src/balsa-mime-widget.c
index a52ed8186..97eab1564 100644
--- a/src/balsa-mime-widget.c
+++ b/src/balsa-mime-widget.c
@@ -153,10 +153,10 @@ balsa_mime_widget_new(BalsaMessage * bm, LibBalsaMessageBody * mime_body, gpoint
if (mw) {
if (mw->widget) {
- g_signal_connect(G_OBJECT(mw->widget), "focus_in_event",
+ g_signal_connect(mw->widget, "focus_in_event",
G_CALLBACK(balsa_mime_widget_limit_focus),
(gpointer) bm);
- g_signal_connect(G_OBJECT(mw->widget), "focus_out_event",
+ g_signal_connect(mw->widget, "focus_out_event",
G_CALLBACK(balsa_mime_widget_unlimit_focus),
(gpointer) bm);
if (mime_body->sig_info &&
@@ -288,7 +288,7 @@ balsa_mime_widget_new_unknown(BalsaMessage * bm,
button = gtk_button_new_with_mnemonic(_("S_ave part"));
gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(balsa_mime_widget_ctx_menu_save),
(gpointer) mime_body);
diff --git a/src/filter-edit-callbacks.c b/src/filter-edit-callbacks.c
index 6094545b2..e4e7083df 100644
--- a/src/filter-edit-callbacks.c
+++ b/src/filter-edit-callbacks.c
@@ -924,7 +924,7 @@ add_button(GtkWidget *grid, const char *label, int col,
GtkWidget* button = gtk_button_new_with_mnemonic(label);
gtk_widget_set_hexpand(button, TRUE);
gtk_grid_attach(GTK_GRID(grid), button, col, 4, 1, 1);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
action,
GINT_TO_POINTER(p));
}
@@ -934,7 +934,7 @@ add_check(GtkWidget *grid, const char *label, int col, int row)
GtkWidget* res = gtk_check_button_new_with_mnemonic(label);
gtk_widget_set_hexpand(res, TRUE);
gtk_grid_attach(GTK_GRID(grid), res, col, row, 1, 1);
- g_signal_connect(G_OBJECT(res), "toggled",
+ g_signal_connect(res, "toggled",
G_CALLBACK(fe_condition_changed_cb), NULL);
return res;
}
@@ -969,14 +969,14 @@ get_field_frame(void)
gtk_check_button_new_with_mnemonic(_("_User header:"));
gtk_widget_set_hexpand(fe_matching_fields_us_head, TRUE);
gtk_grid_attach(GTK_GRID(grid), fe_matching_fields_us_head, 0, 3, 1, 1);
- g_signal_connect(G_OBJECT(fe_matching_fields_us_head), "toggled",
+ g_signal_connect(fe_matching_fields_us_head, "toggled",
G_CALLBACK(fe_match_field_user_header_cb), NULL);
fe_user_header = gtk_combo_box_text_new_with_entry();
for (list = fe_user_headers_list; list; list = list->next)
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(fe_user_header),
list->data);
- g_signal_connect(G_OBJECT(fe_user_header), "changed",
+ g_signal_connect(fe_user_header, "changed",
G_CALLBACK(fe_condition_changed_cb), NULL);
gtk_widget_set_hexpand(fe_user_header, TRUE);
gtk_grid_attach(GTK_GRID(grid), fe_user_header, 1, 3, 1, 1);
@@ -1020,7 +1020,7 @@ build_type_notebook()
gtk_widget_set_hexpand(fe_type_simple_label, TRUE);
gtk_grid_attach(GTK_GRID(grid), fe_type_simple_label, 0, 0, 1, 1);
fe_type_simple_entry = gtk_entry_new();
- g_signal_connect(G_OBJECT(fe_type_simple_entry), "changed",
+ g_signal_connect(fe_type_simple_entry, "changed",
G_CALLBACK(fe_condition_changed_cb), NULL);
gtk_widget_set_hexpand(fe_type_simple_entry, TRUE);
gtk_grid_attach(GTK_GRID(grid), fe_type_simple_entry, 0, 1, 1, 1);
@@ -1028,7 +1028,7 @@ build_type_notebook()
fe_type_simple_entry);
button = gtk_button_new_with_mnemonic(_("Contain/Does _Not Contain"));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(fe_negate_condition), NULL);
gtk_widget_set_hexpand(button, TRUE);
gtk_grid_attach(GTK_GRID(grid), button, 0, 2, 1, 1);
@@ -1076,15 +1076,15 @@ build_type_notebook()
GTK_FILL | GTK_SHRINK | GTK_EXPAND, GTK_SHRINK, 2, 2);
button = gtk_button_new_with_mnemonic(_("A_dd"));
gtk_box_pack_start(GTK_BOX(box), button, TRUE, TRUE, 0);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(fe_add_pressed), NULL);
fe_regex_remove_button = gtk_button_new_with_mnemonic(_("_Remove"));
gtk_box_pack_start(GTK_BOX(box), fe_regex_remove_button, TRUE, TRUE, 0);
- g_signal_connect(G_OBJECT(fe_regex_remove_button), "clicked",
+ g_signal_connect(fe_regex_remove_button, "clicked",
G_CALLBACK(fe_remove_pressed), NULL);
button = gtk_button_new_with_mnemonic(_("One _Matches/None Matches"));
gtk_box_pack_start(GTK_BOX(box), button, TRUE, TRUE, 0);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(fe_negate_condition), NULL);
fe_type_regex_entry = gtk_entry_new();
@@ -1112,18 +1112,18 @@ build_type_notebook()
gtk_grid_attach(GTK_GRID(page), fe_type_date_label, 0, 0, 2, 1);
fe_type_date_low_entry = gtk_entry_new();
gtk_widget_set_hexpand(fe_type_date_low_entry, TRUE);
- g_signal_connect(G_OBJECT(fe_type_date_low_entry), "changed",
+ g_signal_connect(fe_type_date_low_entry, "changed",
G_CALLBACK(fe_condition_changed_cb), NULL);
gtk_grid_attach(GTK_GRID(page), fe_type_date_low_entry, 0, 1, 1, 1);
fe_type_date_high_entry = gtk_entry_new();
gtk_widget_set_hexpand(fe_type_date_high_entry, TRUE);
- g_signal_connect(G_OBJECT(fe_type_date_high_entry), "changed",
+ g_signal_connect(fe_type_date_high_entry, "changed",
G_CALLBACK(fe_condition_changed_cb), NULL);
gtk_grid_attach(GTK_GRID(page), fe_type_date_high_entry, 1, 1, 1, 1);
button = gtk_button_new_with_label(_("Inside/outside the date interval"));
gtk_widget_set_hexpand(button, TRUE);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(fe_negate_condition), NULL);
gtk_grid_attach(GTK_GRID(page), button, 0, 2, 2, 1);
@@ -1164,7 +1164,7 @@ build_type_notebook()
}
button = gtk_button_new_with_label(_("Match when one flag is set/when no flag is set"));
gtk_widget_set_hexpand(button, TRUE);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(fe_negate_condition), NULL);
gtk_grid_attach(GTK_GRID(page),
button,
@@ -1253,7 +1253,7 @@ fe_edit_condition(GtkWidget * throwaway,gpointer is_new_cnd)
g_object_add_weak_pointer(G_OBJECT(condition_dialog),
(gpointer *) &condition_dialog);
- g_signal_connect(G_OBJECT(condition_dialog), "response",
+ g_signal_connect(condition_dialog, "response",
G_CALLBACK(condition_dialog_response), NULL);
/* Now we build the dialog*/
build_condition_dialog(condition_dialog);
diff --git a/src/filter-edit-dialog.c b/src/filter-edit-dialog.c
index 022d8ddda..ea6a2c401 100644
--- a/src/filter-edit-dialog.c
+++ b/src/filter-edit-dialog.c
@@ -164,7 +164,7 @@ fe_build_option_menu(option_list options[], gint num, GCallback func,
}
gtk_combo_box_set_active(GTK_COMBO_BOX(combo_box), 0);
if (func)
- g_signal_connect(G_OBJECT(combo_box), "changed", func, cb_data);
+ g_signal_connect(combo_box, "changed", func, cb_data);
g_object_set_data_full(G_OBJECT(combo_box), BALSA_FE_COMBO_BOX_INFO,
info, (GDestroyNotify) fe_combo_box_info_free);
@@ -223,12 +223,12 @@ build_left_side(void)
/* new button */
/* Translators: button "New" filter */
fe_new_button = gtk_button_new_with_mnemonic(C_("filter", "_New"));
- g_signal_connect(G_OBJECT(fe_new_button), "clicked",
+ g_signal_connect(fe_new_button, "clicked",
G_CALLBACK(fe_new_pressed), NULL);
gtk_container_add(GTK_CONTAINER(bbox), fe_new_button);
/* delete button */
fe_delete_button = gtk_button_new_with_mnemonic(("_Delete"));
- g_signal_connect(G_OBJECT(fe_delete_button), "clicked",
+ g_signal_connect(fe_delete_button, "clicked",
G_CALLBACK(fe_delete_pressed), NULL);
gtk_container_add(GTK_CONTAINER(bbox), fe_delete_button);
gtk_widget_set_sensitive(fe_delete_button, FALSE);
@@ -299,7 +299,7 @@ build_match_page()
fe_conditions_list =
libbalsa_filter_list_new(TRUE, NULL, GTK_SELECTION_BROWSE, NULL,
FALSE);
- g_signal_connect(G_OBJECT(fe_conditions_list), "row-activated",
+ g_signal_connect(fe_conditions_list, "row-activated",
G_CALLBACK(fe_conditions_row_activated), NULL);
gtk_container_add(GTK_CONTAINER(scroll), GTK_WIDGET(fe_conditions_list));
@@ -310,17 +310,17 @@ build_match_page()
fe_condition_edit_button = gtk_button_new_with_mnemonic(_("_Edit"));
gtk_widget_set_sensitive(fe_condition_edit_button,FALSE);
gtk_container_add(GTK_CONTAINER(box), fe_condition_edit_button);
- g_signal_connect(G_OBJECT(fe_condition_edit_button), "clicked",
+ g_signal_connect(fe_condition_edit_button, "clicked",
G_CALLBACK(fe_edit_condition), GINT_TO_POINTER(0));
/* Translators: button "New" filter match */
button = gtk_button_new_with_mnemonic(C_("filter match", "Ne_w"));
gtk_container_add(GTK_CONTAINER(box), button);
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(fe_edit_condition), GINT_TO_POINTER(1));
fe_condition_delete_button = gtk_button_new_with_mnemonic(_("_Remove"));
gtk_widget_set_sensitive(fe_condition_delete_button,FALSE);
gtk_container_add(GTK_CONTAINER(box), fe_condition_delete_button);
- g_signal_connect(G_OBJECT(fe_condition_delete_button), "clicked",
+ g_signal_connect(fe_condition_delete_button, "clicked",
G_CALLBACK(fe_condition_remove_pressed), NULL);
return page;
@@ -412,9 +412,9 @@ build_action_page(GtkWindow * window)
/* fe_sound_entry is initially sensitive, so to be consistent
* we must make fe_sound_button active */
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fe_sound_button), TRUE);
- g_signal_connect(G_OBJECT(fe_sound_button), "toggled",
+ g_signal_connect(fe_sound_button, "toggled",
G_CALLBACK(fe_button_toggled), fe_sound_entry);
- g_signal_connect(G_OBJECT(dialog), "response",
+ g_signal_connect(dialog, "response",
G_CALLBACK(fe_sound_response), NULL);
fe_popup_button = gtk_check_button_new_with_label(_("Pop-up text:"));
@@ -428,9 +428,9 @@ build_action_page(GtkWindow * window)
/* fe_popup_entry is initially sensitive, so to be consistent
* we must make fe_popup_button active */
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fe_popup_button), TRUE);
- g_signal_connect(G_OBJECT(fe_popup_button), "toggled",
+ g_signal_connect(fe_popup_button, "toggled",
G_CALLBACK(fe_button_toggled), fe_popup_entry);
- g_signal_connect(G_OBJECT(fe_popup_entry), "changed",
+ g_signal_connect(fe_popup_entry, "changed",
G_CALLBACK(fe_action_changed), NULL);
/* The action area */
@@ -457,7 +457,7 @@ build_action_page(GtkWindow * window)
*/
fe_mailboxes = balsa_mblist_mru_option_menu(window,
&balsa_app.folder_mru);
- g_signal_connect(G_OBJECT(fe_mailboxes), "changed",
+ g_signal_connect(fe_mailboxes, "changed",
G_CALLBACK(fe_action_changed), NULL);
gtk_box_pack_start(GTK_BOX(box), fe_mailboxes, TRUE, FALSE, 1);
@@ -498,12 +498,12 @@ build_right_side(GtkWindow * window)
gtk_box_pack_start(GTK_BOX(rightside), bbox, FALSE, FALSE, 0);
fe_apply_button = gtk_button_new_with_mnemonic(_("_Apply"));
- g_signal_connect(G_OBJECT(fe_apply_button), "clicked",
+ g_signal_connect(fe_apply_button, "clicked",
G_CALLBACK(fe_apply_pressed), NULL);
gtk_container_add(GTK_CONTAINER(bbox), fe_apply_button);
fe_revert_button = gtk_button_new_with_mnemonic(_("Re_vert"));
- g_signal_connect(G_OBJECT(fe_revert_button), "clicked",
+ g_signal_connect(fe_revert_button, "clicked",
G_CALLBACK(fe_revert_pressed), NULL);
gtk_container_add(GTK_CONTAINER(bbox), fe_revert_button);
gtk_widget_set_sensitive(fe_apply_button, FALSE);
@@ -575,9 +575,9 @@ filters_edit_dialog(GtkWindow * parent)
_("_Help"), GTK_RESPONSE_HELP,
NULL);
- g_signal_connect(G_OBJECT(fe_window), "response",
+ g_signal_connect(fe_window, "response",
G_CALLBACK(fe_dialog_response), NULL);
- g_signal_connect(G_OBJECT(fe_window), "destroy",
+ g_signal_connect(fe_window, "destroy",
G_CALLBACK(fe_destroy_window_cb), NULL);
gtk_window_set_role(GTK_WINDOW (fe_window), "filter-edit");
diff --git a/src/filter-export-dialog.c b/src/filter-export-dialog.c
index 34f5d5ff5..cc2c1dd4f 100644
--- a/src/filter-export-dialog.c
+++ b/src/filter-export-dialog.c
@@ -112,9 +112,9 @@ filters_export_dialog(GtkWindow * parent)
gtk_tree_selection_select_iter(selection, &iter);
}
- g_signal_connect(G_OBJECT(fex_window), "response",
+ g_signal_connect(fex_window, "response",
G_CALLBACK(fex_dialog_response), list);
- g_signal_connect(G_OBJECT(fex_window), "destroy",
+ g_signal_connect(fex_window, "destroy",
G_CALLBACK(fex_destroy_window_cb), NULL);
gtk_widget_show_all(GTK_WIDGET(fex_window));
diff --git a/src/filter-run-dialog.c b/src/filter-run-dialog.c
index 1eb85c5ab..55564dfaf 100644
--- a/src/filter-run-dialog.c
+++ b/src/filter-run-dialog.c
@@ -212,7 +212,7 @@ selected_filters_new(BalsaFilterRunDialog *p)
renderer = gtk_cell_renderer_toggle_new();
g_object_set_data(G_OBJECT(renderer), BALSA_FILTER_KEY,
GINT_TO_POINTER(INCOMING_COLUMN));
- g_signal_connect(G_OBJECT(renderer), "toggled",
+ g_signal_connect(renderer, "toggled",
G_CALLBACK(selected_list_toggled), p);
column = gtk_tree_view_column_new_with_attributes(_("On reception"),
renderer,
@@ -224,7 +224,7 @@ selected_filters_new(BalsaFilterRunDialog *p)
renderer = gtk_cell_renderer_toggle_new();
g_object_set_data(G_OBJECT(renderer), BALSA_FILTER_KEY,
GINT_TO_POINTER(CLOSING_COLUMN));
- g_signal_connect(G_OBJECT(renderer), "toggled",
+ g_signal_connect(renderer, "toggled",
G_CALLBACK(selected_list_toggled), p);
column = gtk_tree_view_column_new_with_attributes(_("On exit"),
renderer,
@@ -300,9 +300,9 @@ balsa_filter_run_dialog_init(BalsaFilterRunDialog *p)
_("_Help"), GTK_RESPONSE_HELP,
NULL);
- g_signal_connect(G_OBJECT(p), "response",
+ g_signal_connect(p, "response",
G_CALLBACK(fr_dialog_response), NULL);
- g_signal_connect(G_OBJECT(p), "destroy",
+ g_signal_connect(p, "destroy",
G_CALLBACK(fr_destroy_window_cb), NULL);
hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2);
@@ -316,7 +316,7 @@ balsa_filter_run_dialog_init(BalsaFilterRunDialog *p)
p->available_filters =
libbalsa_filter_list_new(TRUE, _("Name"), GTK_SELECTION_MULTIPLE,
NULL, TRUE);
- g_signal_connect(G_OBJECT(p->available_filters), "row-activated",
+ g_signal_connect(p->available_filters, "row-activated",
G_CALLBACK(available_list_activated), p);
selection = gtk_tree_view_get_selection(p->available_filters);
@@ -341,7 +341,7 @@ balsa_filter_run_dialog_init(BalsaFilterRunDialog *p)
p->apply_selected_button = button =
gtk_button_new_with_mnemonic(_("_Apply Selected"));
gtk_widget_set_sensitive(button, FALSE);
- g_signal_connect_swapped(G_OBJECT(button), "clicked",
+ g_signal_connect_swapped(button, "clicked",
G_CALLBACK(fr_apply_selected_pressed), p);
gtk_container_add(GTK_CONTAINER(bbox), button);
@@ -357,7 +357,7 @@ balsa_filter_run_dialog_init(BalsaFilterRunDialog *p)
gtk_widget_set_tooltip_text(button,
_("Add selected filter to mailbox"));
gtk_widget_set_sensitive(button, FALSE);
- g_signal_connect_swapped(G_OBJECT(button), "clicked",
+ g_signal_connect_swapped(button, "clicked",
G_CALLBACK(fr_add_pressed), G_OBJECT(p));
gtk_container_add(GTK_CONTAINER(bbox), button);
/* Left/Remove button */
@@ -367,7 +367,7 @@ balsa_filter_run_dialog_init(BalsaFilterRunDialog *p)
gtk_widget_set_tooltip_text(button,
_("Remove selected filter from mailbox"));
gtk_widget_set_sensitive(button, FALSE);
- g_signal_connect_swapped(G_OBJECT(button), "clicked",
+ g_signal_connect_swapped(button, "clicked",
G_CALLBACK(fr_remove_pressed), G_OBJECT(p));
gtk_container_add(GTK_CONTAINER(bbox), button);
@@ -383,7 +383,7 @@ balsa_filter_run_dialog_init(BalsaFilterRunDialog *p)
GTK_POLICY_AUTOMATIC);
p->selected_filters = selected_filters_new(p);
- g_signal_connect(G_OBJECT(p->selected_filters), "row-activated",
+ g_signal_connect(p->selected_filters, "row-activated",
G_CALLBACK(selected_list_activated), p);
selection = gtk_tree_view_get_selection(p->selected_filters);
@@ -408,7 +408,7 @@ balsa_filter_run_dialog_init(BalsaFilterRunDialog *p)
gtk_widget_set_sensitive(button, FALSE);
gtk_widget_set_tooltip_text(button,
_("Move selected filter up"));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(fr_up_pressed), p);
gtk_container_add(GTK_CONTAINER(bbox), button);
/* down button */
@@ -418,14 +418,14 @@ balsa_filter_run_dialog_init(BalsaFilterRunDialog *p)
gtk_widget_set_sensitive(button, FALSE);
gtk_widget_set_tooltip_text(button,
_("Move selected filter down"));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(fr_down_pressed), p);
gtk_container_add(GTK_CONTAINER(bbox), button);
p->apply_now_button = button =
gtk_button_new_with_mnemonic(_("A_pply Now!"));
gtk_widget_set_sensitive(button, FALSE);
- g_signal_connect_swapped(G_OBJECT(button), "clicked",
+ g_signal_connect_swapped(button, "clicked",
G_CALLBACK(fr_apply_now_pressed), G_OBJECT(p));
gtk_container_add(GTK_CONTAINER(bbox), button);
diff --git a/src/folder-conf.c b/src/folder-conf.c
index 92c76d01f..52118b7f1 100644
--- a/src/folder-conf.c
+++ b/src/folder-conf.c
@@ -225,7 +225,7 @@ folder_conf_clicked_ok(FolderDialogData * folder_data)
BalsaMailboxNode *mbnode = folder_data->common_data.mbnode;
if (mbnode == NULL) {
- g_signal_connect(G_OBJECT(folder_data->server), "get-password",
+ g_signal_connect(folder_data->server, "get-password",
G_CALLBACK(ask_password), NULL);
}
@@ -545,7 +545,7 @@ folder_conf_imap_node(BalsaMailboxNode *mn)
mn ? GTK_RESPONSE_OK
: GTK_RESPONSE_CANCEL);
- g_signal_connect(G_OBJECT(folder_data->common_data.dialog), "response",
+ g_signal_connect(folder_data->common_data.dialog, "response",
G_CALLBACK(folder_conf_response), folder_data);
}
@@ -905,7 +905,7 @@ folder_conf_imap_sub_node(BalsaMailboxNode * mn)
gtk_entry_set_text(GTK_ENTRY(sub_folder_data->parent_folder), sub_folder_data->old_parent);
button = gtk_button_new_with_mnemonic(_("_Browse…"));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(browse_button_cb), (gpointer) sub_folder_data);
hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 12);
@@ -1028,7 +1028,7 @@ folder_conf_imap_sub_node(BalsaMailboxNode * mn)
gtk_widget_grab_focus(sub_folder_data->folder_name);
- g_signal_connect(G_OBJECT(sub_folder_data->common_data.dialog), "response",
+ g_signal_connect(sub_folder_data->common_data.dialog, "response",
G_CALLBACK(folder_conf_response), sub_folder_data);
gtk_dialog_set_response_sensitive(GTK_DIALOG(sub_folder_data->common_data.dialog),
GTK_RESPONSE_OK, FALSE);
diff --git a/src/information-dialog.c b/src/information-dialog.c
index bf6f80254..4cf973b20 100644
--- a/src/information-dialog.c
+++ b/src/information-dialog.c
@@ -267,7 +267,7 @@ balsa_information_list(GtkWindow *parent, LibBalsaInformationType type,
information_list = balsa_information_list_new();
gtk_container_add(GTK_CONTAINER(scrolled_window),
information_list);
- g_signal_connect(G_OBJECT(information_dialog), "response",
+ g_signal_connect(information_dialog, "response",
G_CALLBACK(balsa_information_list_response_cb),
information_list);
diff --git a/src/mailbox-conf.c b/src/mailbox-conf.c
index 58149a41f..3f0eac478 100644
--- a/src/mailbox-conf.c
+++ b/src/mailbox-conf.c
@@ -379,7 +379,7 @@ run_mailbox_conf(BalsaMailboxNode* mbnode, GType mailbox_type,
update ? GTK_RESPONSE_CANCEL :
MCW_RESPONSE);
- g_signal_connect(G_OBJECT(mcw->window), "response",
+ g_signal_connect(mcw->window, "response",
G_CALLBACK(conf_response_cb), mcw);
gtk_widget_show_all(GTK_WIDGET(mcw->window));
@@ -749,7 +749,7 @@ create_local_mailbox_dialog(MailboxConfWindow *mcw)
} else {
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), balsa_app.local_mail_directory);
}
- g_signal_connect(G_OBJECT(dialog), "selection-changed",
+ g_signal_connect(dialog, "selection-changed",
G_CALLBACK(local_mailbox_dialog_cb), mcw);
size_group = libbalsa_create_size_group(dialog);
@@ -768,7 +768,7 @@ create_local_mailbox_dialog(MailboxConfWindow *mcw)
balsa_get_entry(dialog, &entry);
if (entry)
- g_signal_connect(G_OBJECT(entry), "changed",
+ g_signal_connect(entry, "changed",
G_CALLBACK(local_mailbox_dialog_cb), mcw);
mcw->view_info =
diff --git a/src/mailbox-node.c b/src/mailbox-node.c
index d998d8a29..9d97a2b5e 100644
--- a/src/mailbox-node.c
+++ b/src/mailbox-node.c
@@ -376,10 +376,10 @@ imap_scan_attach_mailbox(BalsaMailboxNode * mbnode, imap_scan_item * isi)
/* If the mailbox was added from the config file, it is already
* connected to "show-prop-dialog". */
- if (!g_signal_has_handler_pending(G_OBJECT(mbnode),
+ if (!g_signal_has_handler_pending(mbnode,
balsa_mailbox_node_signals
[SHOW_PROP_DIALOG], 0, FALSE))
- g_signal_connect(G_OBJECT(mbnode), "show-prop-dialog",
+ g_signal_connect(mbnode, "show-prop-dialog",
G_CALLBACK(folder_conf_imap_sub_node), NULL);
if (LIBBALSA_IS_MAILBOX_IMAP(mbnode->mailbox))
/* it already has a mailbox */
@@ -518,7 +518,7 @@ balsa_mailbox_node_new_from_mailbox(LibBalsaMailbox * mb)
mbn = BALSA_MAILBOX_NODE(balsa_mailbox_node_new());
mbn->mailbox = mb;
load_mailbox_view(mbn);
- g_signal_connect(G_OBJECT(mbn), "show-prop-dialog",
+ g_signal_connect(mbn, "show-prop-dialog",
G_CALLBACK(mailbox_conf_edit), NULL);
if (LIBBALSA_IS_MAILBOX_MH(mb) || LIBBALSA_IS_MAILBOX_MAILDIR(mb)) {
/* Mh and Maildir mailboxes are directories, and may be nested,
@@ -526,7 +526,7 @@ balsa_mailbox_node_new_from_mailbox(LibBalsaMailbox * mb)
mbn->name =
g_strdup(libbalsa_mailbox_local_get_path((LibBalsaMailboxLocal *) mb));
mbn->dir = g_strdup(mbn->name);
- g_signal_connect(G_OBJECT(mbn), "append-subtree",
+ g_signal_connect(mbn, "append-subtree",
G_CALLBACK(read_dir_cb), NULL);
}
return mbn;
@@ -541,9 +541,9 @@ balsa_mailbox_node_new_from_dir(const gchar* dir)
mbn->name = g_strdup(dir);
mbn->dir = g_strdup(dir);
- g_signal_connect(G_OBJECT(mbn), "show-prop-dialog",
+ g_signal_connect(mbn, "show-prop-dialog",
G_CALLBACK(dir_conf_edit), NULL);
- g_signal_connect(G_OBJECT(mbn), "append-subtree",
+ g_signal_connect(mbn, "append-subtree",
G_CALLBACK(read_dir_cb), NULL);
return mbn;
}
@@ -568,11 +568,11 @@ balsa_mailbox_node_new_from_config(const gchar* group)
g_debug("Server loaded, host: %s, security %d.", libbalsa_server_get_host(folder->server),
libbalsa_server_get_security(folder->server));
- g_signal_connect_swapped(G_OBJECT(folder->server), "config-changed",
+ g_signal_connect_swapped(folder->server, "config-changed",
G_CALLBACK(config_folder_update), folder);
- g_signal_connect(G_OBJECT(folder), "show-prop-dialog",
+ g_signal_connect(folder, "show-prop-dialog",
G_CALLBACK(folder_conf_imap_node), NULL);
- g_signal_connect(G_OBJECT(folder), "append-subtree",
+ g_signal_connect(folder, "append-subtree",
G_CALLBACK(imap_dir_cb), NULL);
libbalsa_server_connect_signals(folder->server,
G_CALLBACK(ask_password), NULL);
@@ -606,7 +606,7 @@ balsa_mailbox_node_new_imap_node(LibBalsaServer* s, const char*p)
folder->server = s;
folder->dir = g_strdup(p);
- g_signal_connect(G_OBJECT(folder), "append-subtree",
+ g_signal_connect(folder, "append-subtree",
G_CALLBACK(imap_dir_cb), NULL);
return folder;
@@ -618,7 +618,7 @@ balsa_mailbox_node_new_imap_folder(LibBalsaServer* s, const char*p)
BalsaMailboxNode * folder = balsa_mailbox_node_new_imap_node(s, p);
g_assert(s);
- g_signal_connect(G_OBJECT(folder), "show-prop-dialog",
+ g_signal_connect(folder, "show-prop-dialog",
G_CALLBACK(folder_conf_imap_node), NULL);
return folder;
}
@@ -869,7 +869,7 @@ add_menu_entry(GtkWidget * menu, const gchar * label, GCallback cb,
: gtk_separator_menu_item_new();
if (cb)
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(cb), mbnode);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
@@ -992,7 +992,7 @@ balsa_mailbox_node_get_context_menu(BalsaMailboxNode * mbnode)
menu = gtk_menu_new();
/* it's a single-use menu, so we must destroy it when we're done */
- g_signal_connect(G_OBJECT(menu), "selection-done",
+ g_signal_connect(menu, "selection-done",
G_CALLBACK(gtk_widget_destroy), NULL);
submenu = gtk_menu_new();
@@ -1026,13 +1026,13 @@ balsa_mailbox_node_get_context_menu(BalsaMailboxNode * mbnode)
/* If we didn't click on a mailbox node then there is only one option. */
add_menu_entry(menu, NULL, NULL, NULL);
- if (g_signal_has_handler_pending(G_OBJECT(mbnode),
+ if (g_signal_has_handler_pending(mbnode,
balsa_mailbox_node_signals
[SHOW_PROP_DIALOG], 0, FALSE))
add_menu_entry(menu, _("_Properties…"),
G_CALLBACK(mb_conf_cb), mbnode);
- if (g_signal_has_handler_pending(G_OBJECT(mbnode),
+ if (g_signal_has_handler_pending(mbnode,
balsa_mailbox_node_signals
[APPEND_SUBTREE], 0, FALSE))
add_menu_entry(menu, _("_Rescan"),
diff --git a/src/main-window.c b/src/main-window.c
index 8ccc6acd7..3ffa3cc12 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -366,14 +366,14 @@ bw_pass_to_filter(BalsaWindow *window, GdkEventKey *event, gpointer data)
static gboolean
bw_enable_filter(GtkWidget *widget, GdkEventFocus *event, gpointer data)
{
- g_signal_connect(G_OBJECT(data), "key_press_event",
+ g_signal_connect(data, "key_press_event",
G_CALLBACK(bw_pass_to_filter), NULL);
return FALSE;
}
static gboolean
bw_disable_filter(GtkWidget *widget, GdkEventFocus *event, gpointer data)
{
- g_signal_handlers_disconnect_by_func(G_OBJECT(data),
+ g_signal_handlers_disconnect_by_func(data,
G_CALLBACK(bw_pass_to_filter),
NULL);
return FALSE;
@@ -546,9 +546,9 @@ bw_create_index_widget(BalsaWindow *bw)
priv->sos_entry = gtk_search_entry_new();
/* gtk_label_set_mnemonic_widget(GTK_LABEL(priv->filter_choice),
priv->sos_entry); */
- g_signal_connect(G_OBJECT(priv->sos_entry), "focus_in_event",
+ g_signal_connect(priv->sos_entry, "focus_in_event",
G_CALLBACK(bw_enable_filter), bw);
- g_signal_connect(G_OBJECT(priv->sos_entry), "focus_out_event",
+ g_signal_connect(priv->sos_entry, "focus_out_event",
G_CALLBACK(bw_disable_filter), bw);
button = gtk_button_new();
@@ -562,16 +562,16 @@ bw_create_index_widget(BalsaWindow *bw)
gtk_widget_show(priv->sos_entry);
gtk_box_pack_start(GTK_BOX(priv->sos_bar), button, FALSE, FALSE, 0);
- g_signal_connect(G_OBJECT(priv->sos_entry), "activate",
+ g_signal_connect(priv->sos_entry, "activate",
G_CALLBACK(bw_filter_entry_activate),
button);
- g_signal_connect_swapped(G_OBJECT(button), "clicked",
+ g_signal_connect_swapped(button, "clicked",
G_CALLBACK(bw_filter_entry_activate),
priv->sos_entry);
- g_signal_connect(G_OBJECT(priv->sos_entry), "changed",
+ g_signal_connect(priv->sos_entry, "changed",
G_CALLBACK(bw_filter_entry_changed),
button);
- g_signal_connect(G_OBJECT(priv->filter_choice), "changed",
+ g_signal_connect(priv->filter_choice, "changed",
G_CALLBACK(bw_filter_entry_changed), button);
gtk_widget_show_all(button);
vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
@@ -874,7 +874,7 @@ new_message_activated(GSimpleAction * action,
smwindow = sendmsg_window_compose();
- g_signal_connect(G_OBJECT(smwindow->window), "destroy",
+ g_signal_connect(smwindow->window, "destroy",
G_CALLBACK(bw_send_msg_window_destroy_cb), user_data);
}
@@ -2287,14 +2287,14 @@ balsa_window_new(GtkApplication *application)
balsa_app.show_notebook_tabs);
gtk_notebook_set_show_border (GTK_NOTEBOOK(priv->notebook), FALSE);
gtk_notebook_set_scrollable (GTK_NOTEBOOK (priv->notebook), TRUE);
- g_signal_connect(G_OBJECT(priv->notebook), "switch_page",
+ g_signal_connect(priv->notebook, "switch_page",
G_CALLBACK(bw_notebook_switch_page_cb), window);
gtk_drag_dest_set (GTK_WIDGET (priv->notebook), GTK_DEST_DEFAULT_ALL,
notebook_drop_types, NUM_DROP_TYPES,
GDK_ACTION_DEFAULT | GDK_ACTION_COPY | GDK_ACTION_MOVE);
- g_signal_connect(G_OBJECT (priv->notebook), "drag-data-received",
+ g_signal_connect(priv->notebook, "drag-data-received",
G_CALLBACK (bw_notebook_drag_received_cb), NULL);
- g_signal_connect(G_OBJECT (priv->notebook), "drag-motion",
+ g_signal_connect(priv->notebook, "drag-motion",
G_CALLBACK (bw_notebook_drag_motion_cb), NULL);
balsa_app.notebook = priv->notebook;
g_object_add_weak_pointer(G_OBJECT(priv->notebook),
@@ -2303,7 +2303,7 @@ balsa_window_new(GtkApplication *application)
priv->preview = balsa_message_new();
gtk_widget_hide(priv->preview);
- g_signal_connect(G_OBJECT(priv->preview), "select-part",
+ g_signal_connect(priv->preview, "select-part",
G_CALLBACK(bw_select_part_cb), window);
/* XXX */
@@ -3331,7 +3331,7 @@ bw_check_mailbox_list(struct check_messages_thread_info *info, GList *mailbox_li
libbalsa_mailbox_pop3_set_msg_size_limit(pop3, balsa_app.msg_size_limit * 1024);
if (info->with_progress_dialog) {
bw_pop_mbox->notify =
- g_signal_connect(G_OBJECT(mailbox), "progress-notify",
G_CALLBACK(bw_check_mailbox_progress_cb), mailbox);
+ g_signal_connect(mailbox, "progress-notify",
G_CALLBACK(bw_check_mailbox_progress_cb), mailbox);
}
bw_pop_mbox->thread = g_thread_new(NULL, (GThreadFunc) bw_check_mailbox, mailbox);
g_debug("launched thread %p for checking POP3 mailbox %s", bw_pop_mbox->thread,
libbalsa_mailbox_get_name(mailbox));
@@ -3859,12 +3859,12 @@ bw_find_real(BalsaWindow * window, BalsaIndex * bindex, gboolean again)
box = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
gtk_container_set_border_width(GTK_CONTAINER(box), 6);
button = gtk_button_new_with_mnemonic(_("_Apply"));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(bw_find_button_clicked),
GINT_TO_POINTER(FIND_RESPONSE_FILTER));
gtk_container_add(GTK_CONTAINER(box), button);
button = gtk_button_new_with_mnemonic(_("_Clear"));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(bw_find_button_clicked),
GINT_TO_POINTER(FIND_RESPONSE_RESET));
gtk_container_add(GTK_CONTAINER(box), button);
@@ -3895,7 +3895,7 @@ bw_find_real(BalsaWindow * window, BalsaIndex * bindex, gboolean again)
gtk_box_pack_start(GTK_BOX(box), w, TRUE, TRUE, 0);
button = gtk_button_new_with_mnemonic(_("_OK"));
- g_signal_connect(G_OBJECT(button), "clicked",
+ g_signal_connect(button, "clicked",
G_CALLBACK(bw_find_button_clicked),
GINT_TO_POINTER(GTK_RESPONSE_OK));
gtk_widget_set_valign(button, GTK_ALIGN_CENTER);
diff --git a/src/message-window.c b/src/message-window.c
index 121cc6132..e93110d2b 100644
--- a/src/message-window.c
+++ b/src/message-window.c
@@ -362,7 +362,7 @@ destroy_message_window(GtkWidget * widget, MessageWindow * mw)
{
if (mw->bindex) { /* BalsaIndex still exists */
g_object_weak_unref(G_OBJECT(mw->bindex), mw_bindex_closed_cb, mw);
- g_signal_handlers_disconnect_matched(G_OBJECT(mw->bindex),
+ g_signal_handlers_disconnect_matched(mw->bindex,
G_SIGNAL_MATCH_DATA, 0, 0,
NULL, NULL, mw);
mw->bindex = NULL;
@@ -370,14 +370,14 @@ destroy_message_window(GtkWidget * widget, MessageWindow * mw)
if (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_handlers_disconnect_matched(mw->mailbox,
G_SIGNAL_MATCH_DATA, 0, 0,
NULL, NULL, mw);
mw->mailbox = NULL;
}
if (mw->bmessage)
- g_signal_handlers_disconnect_matched(G_OBJECT(mw->bmessage),
+ g_signal_handlers_disconnect_matched(mw->bmessage,
G_SIGNAL_MATCH_DATA, 0, 0,
NULL, NULL, mw);
@@ -859,12 +859,12 @@ message_window_new(LibBalsaMailbox * mailbox, guint msgno)
gtk_window_set_role(GTK_WINDOW(window), "message");
- g_signal_connect(G_OBJECT(window), "destroy",
+ g_signal_connect(window, "destroy",
G_CALLBACK(destroy_message_window), mw);
mw->bindex = balsa_find_index_by_mailbox(mailbox);
g_object_weak_ref(G_OBJECT(mw->bindex), mw_bindex_closed_cb, mw);
- g_signal_connect_swapped(G_OBJECT(mw->bindex), "index-changed",
+ g_signal_connect_swapped(mw->bindex, "index-changed",
G_CALLBACK(mw_set_buttons_sensitive), mw);
mw->mailbox = mailbox;
diff --git a/src/pref-manager.c b/src/pref-manager.c
index 508cb300e..2f90a542d 100644
--- a/src/pref-manager.c
+++ b/src/pref-manager.c
@@ -246,7 +246,7 @@ pm_combo_box_new(void)
g_object_set_data_full(G_OBJECT(combo_box), PM_COMBO_BOX_INFO, info,
(GDestroyNotify) pm_combo_box_info_free);
- g_signal_connect(G_OBJECT(combo_box), "changed",
+ g_signal_connect(combo_box, "changed",
G_CALLBACK(properties_modified_cb), property_box);
return combo_box;
@@ -1050,7 +1050,7 @@ create_pref_option_menu(const gchar * names[], gint size, gint * index)
gint i;
combo_box = pm_combo_box_new();
- g_signal_connect(G_OBJECT(combo_box), "changed",
+ g_signal_connect(combo_box, "changed",
G_CALLBACK(option_menu_cb), index);
for (i = 0; i < size; i++)
@@ -1712,11 +1712,11 @@ server_add_menu_widget(void)
menu = gtk_menu_new();
menuitem = gtk_menu_item_new_with_label(_("Remote POP3 mailbox…"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(pop3_add_cb), NULL);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
menuitem = gtk_menu_item_new_with_label(_("Remote IMAP folder…"));
- g_signal_connect(G_OBJECT(menuitem), "activate",
+ g_signal_connect(menuitem, "activate",
G_CALLBACK(folder_conf_add_imap_cb), NULL);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
@@ -2009,7 +2009,7 @@ pm_grid_add_remote_mailbox_servers_group(GtkWidget * grid_widget)
gtk_container_add(GTK_CONTAINER(scrolledwindow), tree_view);
- g_signal_connect(G_OBJECT(pui->mail_servers), "row-activated",
+ g_signal_connect(pui->mail_servers, "row-activated",
G_CALLBACK(server_edit_cb), NULL);
pm_grid_attach(grid, scrolledwindow, 1, ++row, 1, 1);
@@ -2097,7 +2097,7 @@ pm_grid_add_outgoing_mail_group(GtkWidget * grid_widget)
gtk_container_add(GTK_CONTAINER(scrolled_window), tree_view);
- g_signal_connect(G_OBJECT(pui->smtp_servers), "row-activated",
+ g_signal_connect(pui->smtp_servers, "row-activated",
G_CALLBACK(smtp_server_edit_cb), NULL);
pm_grid_attach(grid, scrolled_window, 1, ++row, 1, 1);
@@ -3364,31 +3364,31 @@ open_preferences_manager(GtkWidget * widget, gpointer data)
gtk_dialog_set_response_sensitive(GTK_DIALOG(property_box),
GTK_RESPONSE_APPLY, FALSE);
- g_signal_connect(G_OBJECT(pui->recv_progress_dlg), "toggled",
+ g_signal_connect(pui->recv_progress_dlg, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->send_progress_dlg), "toggled",
+ g_signal_connect(pui->send_progress_dlg, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->previewpane), "toggled",
+ g_signal_connect(pui->previewpane, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->layout_type), "changed",
+ g_signal_connect(pui->layout_type, "changed",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->view_message_on_open), "toggled",
+ g_signal_connect(pui->view_message_on_open, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->ask_before_select), "toggled",
+ g_signal_connect(pui->ask_before_select, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->pgdownmod), "toggled",
+ g_signal_connect(pui->pgdownmod, "toggled",
G_CALLBACK(pgdown_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->pgdown_percent), "changed",
+ g_signal_connect(pui->pgdown_percent, "changed",
G_CALLBACK(pgdown_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->debug), "toggled",
+ g_signal_connect(pui->debug, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->mblist_show_mb_content_info), "toggled",
+ g_signal_connect(pui->mblist_show_mb_content_info, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
#if !(HAVE_GSPELL || HAVE_GTKSPELL)
- g_signal_connect(G_OBJECT(pui->spell_check_sig), "toggled",
+ g_signal_connect(pui->spell_check_sig, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->spell_check_quoted), "toggled",
+ g_signal_connect(pui->spell_check_quoted, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
#endif /* !(HAVE_GSPELL || HAVE_GTKSPELL) */
@@ -3397,149 +3397,149 @@ open_preferences_manager(GtkWidget * widget, gpointer data)
g_idle_add_full(G_PRIORITY_LOW,
(GSourceFunc) open_preferences_manager_idle,
NULL, NULL);
- g_signal_connect(G_OBJECT(pui->check_mail_auto), "toggled",
+ g_signal_connect(pui->check_mail_auto, "toggled",
G_CALLBACK(timer_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->check_mail_minutes), "changed",
+ g_signal_connect(pui->check_mail_minutes, "changed",
G_CALLBACK(timer_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->quiet_background_check), "toggled",
+ g_signal_connect(pui->quiet_background_check, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->msg_size_limit), "changed",
+ g_signal_connect(pui->msg_size_limit, "changed",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->check_imap), "toggled",
+ g_signal_connect(pui->check_imap, "toggled",
G_CALLBACK(imap_toggled_cb), property_box);
- g_signal_connect(G_OBJECT(pui->check_imap_inbox), "toggled",
+ g_signal_connect(pui->check_imap_inbox, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->notify_new_mail_dialog), "toggled",
+ g_signal_connect(pui->notify_new_mail_dialog, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->notify_new_mail_sound), "toggled",
+ g_signal_connect(pui->notify_new_mail_sound, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->notify_new_mail_icon), "toggled",
+ g_signal_connect(pui->notify_new_mail_icon, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->close_mailbox_auto), "toggled",
+ g_signal_connect(pui->close_mailbox_auto, "toggled",
G_CALLBACK(mailbox_close_timer_modified_cb),
property_box);
- g_signal_connect(G_OBJECT(pui->close_mailbox_minutes), "changed",
+ g_signal_connect(pui->close_mailbox_minutes, "changed",
G_CALLBACK(mailbox_close_timer_modified_cb),
property_box);
- g_signal_connect(G_OBJECT(pui->hide_deleted), "toggled",
+ g_signal_connect(pui->hide_deleted, "toggled",
G_CALLBACK(filter_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->expunge_on_close), "toggled",
+ g_signal_connect(pui->expunge_on_close, "toggled",
G_CALLBACK(expunge_on_close_cb), property_box);
- g_signal_connect(G_OBJECT(pui->expunge_auto), "toggled",
+ g_signal_connect(pui->expunge_auto, "toggled",
G_CALLBACK(expunge_auto_cb), property_box);
- g_signal_connect(G_OBJECT(pui->expunge_minutes), "changed",
+ g_signal_connect(pui->expunge_minutes, "changed",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->browse_wrap), "toggled",
+ g_signal_connect(pui->browse_wrap, "toggled",
G_CALLBACK(browse_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->browse_wrap_length), "changed",
+ g_signal_connect(pui->browse_wrap_length, "changed",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->wordwrap), "toggled",
+ g_signal_connect(pui->wordwrap, "toggled",
G_CALLBACK(wrap_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->wraplength), "changed",
+ g_signal_connect(pui->wraplength, "changed",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->always_queue_sent_mail), "toggled",
+ g_signal_connect(pui->always_queue_sent_mail, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->send_mail_auto), "toggled",
+ g_signal_connect(pui->send_mail_auto, "toggled",
G_CALLBACK(send_timer_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->send_mail_minutes), "changed",
+ g_signal_connect(pui->send_mail_minutes, "changed",
G_CALLBACK(send_timer_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->copy_to_sentbox), "toggled",
+ g_signal_connect(pui->copy_to_sentbox, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->autoquote), "toggled",
+ g_signal_connect(pui->autoquote, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->reply_include_html_parts), "toggled",
+ g_signal_connect(pui->reply_include_html_parts, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->forward_attached), "toggled",
+ g_signal_connect(pui->forward_attached, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
/* external editor */
- g_signal_connect(G_OBJECT(pui->edit_headers), "toggled",
+ g_signal_connect(pui->edit_headers, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
/* arp */
- g_signal_connect(G_OBJECT(pui->quote_str), "changed",
+ g_signal_connect(pui->quote_str, "changed",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->mark_quoted), "toggled",
+ g_signal_connect(pui->mark_quoted, "toggled",
G_CALLBACK(mark_quoted_modified_cb),
property_box);
- g_signal_connect(G_OBJECT(pui->quote_pattern), "changed",
+ g_signal_connect(pui->quote_pattern, "changed",
G_CALLBACK(properties_modified_cb), property_box);
/* multipart/alternative */
- g_signal_connect(G_OBJECT(pui->display_alt_plain), "toggled",
+ g_signal_connect(pui->display_alt_plain, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
/* convert 8-bit text with no charset header */
- g_signal_connect(G_OBJECT(pui->convert_unknown_8bit_codeset),
+ g_signal_connect(pui->convert_unknown_8bit_codeset,
"changed", G_CALLBACK(properties_modified_cb),
property_box);
/* message font */
- g_signal_connect(G_OBJECT(pui->use_system_fonts), "toggled",
+ g_signal_connect(pui->use_system_fonts, "toggled",
G_CALLBACK(use_system_fonts_cb), property_box);
- g_signal_connect(G_OBJECT(pui->message_font_button), "font-set",
+ g_signal_connect(pui->message_font_button, "font-set",
G_CALLBACK(font_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->subject_font_button), "font-set",
+ g_signal_connect(pui->subject_font_button, "font-set",
G_CALLBACK(font_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->use_default_font_size), "toggled",
+ g_signal_connect(pui->use_default_font_size, "toggled",
G_CALLBACK(default_font_size_cb), property_box);
- g_signal_connect(G_OBJECT(pui->open_inbox_upon_startup), "toggled",
+ g_signal_connect(pui->open_inbox_upon_startup, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->check_mail_upon_startup), "toggled",
+ g_signal_connect(pui->check_mail_upon_startup, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->remember_open_mboxes), "toggled",
+ g_signal_connect(pui->remember_open_mboxes, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->local_scan_depth), "changed",
+ g_signal_connect(pui->local_scan_depth, "changed",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->imap_scan_depth), "changed",
+ g_signal_connect(pui->imap_scan_depth, "changed",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->empty_trash), "toggled",
+ g_signal_connect(pui->empty_trash, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
/* threading */
- g_signal_connect(G_OBJECT(pui->thread_messages_check), "toggled",
+ g_signal_connect(pui->thread_messages_check, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->tree_expand_check), "toggled",
+ g_signal_connect(pui->tree_expand_check, "toggled",
G_CALLBACK(properties_modified_cb), property_box);
/* Date format */
- g_signal_connect(G_OBJECT(pui->date_format), "changed",
+ g_signal_connect(pui->date_format, "changed",
G_CALLBACK(properties_modified_cb), property_box);
/* Selected headers */
- g_signal_connect(G_OBJECT(pui->selected_headers), "changed",
+ g_signal_connect(pui->selected_headers, "changed",
G_CALLBACK(properties_modified_cb), property_box);
/* Colour */
for (i = 0; i < MAX_QUOTED_COLOR; i++)
- g_signal_connect(G_OBJECT(pui->quoted_color[i]), "released",
+ g_signal_connect(pui->quoted_color[i], "released",
G_CALLBACK(properties_modified_cb), property_box);
- g_signal_connect(G_OBJECT(pui->url_color), "released",
+ g_signal_connect(pui->url_color, "released",
G_CALLBACK(properties_modified_cb), property_box);
/* handling of message parts with 8-bit chars without codeset headers */
for (i = 0; i < NUM_CONVERT_8BIT_MODES; i++)
- g_signal_connect(G_OBJECT(pui->convert_unknown_8bit[i]), "toggled",
+ g_signal_connect(pui->convert_unknown_8bit[i], "toggled",
G_CALLBACK(convert_8bit_cb), property_box);
/* Gnome Property Box Signals */
- g_signal_connect(G_OBJECT(property_box), "response",
+ g_signal_connect(property_box, "response",
G_CALLBACK(response_cb), NULL);
gtk_widget_show_all(GTK_WIDGET(property_box));
diff --git a/src/print-gtk.c b/src/print-gtk.c
index bd9e47b16..14a66edbb 100644
--- a/src/print-gtk.c
+++ b/src/print-gtk.c
@@ -636,10 +636,10 @@ message_prefs_widget(GtkPrintOperation * operation,
gtk_page_setup_get_page_height(pg_setup, GTK_UNIT_POINTS),
balsa_app.margin_bottom,
GTK_GRID(grid), 1);
- g_signal_connect(G_OBJECT(gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_top))),
+ g_signal_connect(gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_top)),
"value-changed", G_CALLBACK(check_margins),
gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_bottom)));
- g_signal_connect(G_OBJECT(gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_bottom))),
+ g_signal_connect(gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_bottom)),
"value-changed", G_CALLBACK(check_margins),
gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_top)));
print_prefs->margin_left =
@@ -654,10 +654,10 @@ message_prefs_widget(GtkPrintOperation * operation,
gtk_page_setup_get_page_width(pg_setup, GTK_UNIT_POINTS),
balsa_app.margin_right,
GTK_GRID(grid), 3);
- g_signal_connect(G_OBJECT(gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_left))),
+ g_signal_connect(gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_left)),
"value-changed", G_CALLBACK(check_margins),
gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_right)));
- g_signal_connect(G_OBJECT(gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_right))),
+ g_signal_connect(gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_right)),
"value-changed", G_CALLBACK(check_margins),
gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(print_prefs->margin_left)));
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index b39baaa3c..15dcce38c 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -411,7 +411,7 @@ address_book_cb(LibBalsaAddressView * address_view,
ab = balsa_ab_window_new(TRUE, GTK_WINDOW(bsmsg->window));
gtk_window_set_destroy_with_parent(GTK_WINDOW(ab), TRUE);
- g_signal_connect(G_OBJECT(ab), "response",
+ g_signal_connect(ab, "response",
G_CALLBACK(address_book_response), address_view);
row_ref_copy = gtk_tree_row_reference_copy(row_ref);
g_object_set_data_full(G_OBJECT(ab), BALSA_SENDMSG_ROW_REF_KEY,
@@ -561,9 +561,9 @@ balsa_sendmsg_destroy_handler(BalsaSendmsg * bsmsg)
g_assert(bsmsg != NULL);
if (balsa_app.main_window) {
- g_signal_handler_disconnect(G_OBJECT(balsa_app.main_window),
+ g_signal_handler_disconnect(balsa_app.main_window,
bsmsg->delete_sig_id);
- g_signal_handler_disconnect(G_OBJECT(balsa_app.main_window),
+ g_signal_handler_disconnect(balsa_app.main_window,
bsmsg->identities_changed_id);
g_object_weak_unref(G_OBJECT(balsa_app.main_window),
(GWeakNotify) gtk_widget_destroy, bsmsg->window);
@@ -1551,7 +1551,7 @@ sw_get_user_codeset(BalsaSendmsg * bsmsg, gboolean * change_type,
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_box),
"application/octet-stream");
gtk_combo_box_set_active(GTK_COMBO_BOX(combo_box), 0);
- g_signal_connect(G_OBJECT(combo_box), "changed",
+ g_signal_connect(combo_box, "changed",
G_CALLBACK(sw_charset_combo_box_changed),
charset_button);
gtk_box_pack_start(GTK_BOX(hbox), combo_box, TRUE, TRUE, 0);
@@ -1775,7 +1775,7 @@ add_attachment(BalsaSendmsg * bsmsg, const gchar *filename,
[LIBBALSA_ATTACH_AS_INLINE]));
g_object_set_data(G_OBJECT(menu_item), "new-mode",
GINT_TO_POINTER(LIBBALSA_ATTACH_AS_INLINE));
- g_signal_connect(G_OBJECT(menu_item), "activate",
+ g_signal_connect(menu_item, "activate",
G_CALLBACK(change_attach_mode),
(gpointer)attach_data);
gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu),
@@ -1790,7 +1790,7 @@ add_attachment(BalsaSendmsg * bsmsg, const gchar *filename,
gtk_widget_set_sensitive(menu_item, FALSE);
g_object_set_data(G_OBJECT(menu_item), "new-mode",
GINT_TO_POINTER(LIBBALSA_ATTACH_AS_ATTACHMENT));
- g_signal_connect(G_OBJECT(menu_item), "activate",
+ g_signal_connect(menu_item, "activate",
G_CALLBACK(change_attach_mode),
(gpointer)attach_data);
gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu),
@@ -1804,7 +1804,7 @@ add_attachment(BalsaSendmsg * bsmsg, const gchar *filename,
[LIBBALSA_ATTACH_AS_EXTBODY]));
g_object_set_data(G_OBJECT(menu_item), "new-mode",
GINT_TO_POINTER(LIBBALSA_ATTACH_AS_EXTBODY));
- g_signal_connect(G_OBJECT(menu_item), "activate",
+ g_signal_connect(menu_item, "activate",
G_CALLBACK(change_attach_mode),
(gpointer)attach_data);
gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu),
@@ -1814,7 +1814,7 @@ add_attachment(BalsaSendmsg * bsmsg, const gchar *filename,
/* an attachment can be removed */
menu_item =
gtk_menu_item_new_with_label(_("Remove"));
- g_signal_connect(G_OBJECT (menu_item), "activate",
+ g_signal_connect(menu_item, "activate",
G_CALLBACK(remove_attachment),
(gpointer)attach_data);
gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu),
@@ -1887,7 +1887,7 @@ add_urlref_attachment(BalsaSendmsg * bsmsg, gchar *url)
attach_data->popup_menu = gtk_menu_new();
menu_item =
gtk_menu_item_new_with_label(_("Remove"));
- g_signal_connect(G_OBJECT (menu_item), "activate",
+ g_signal_connect(menu_item, "activate",
G_CALLBACK(remove_attachment),
(gpointer)attach_data);
gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu),
@@ -1899,7 +1899,7 @@ add_urlref_attachment(BalsaSendmsg * bsmsg, gchar *url)
gtk_separator_menu_item_new());
menu_item =
gtk_menu_item_new_with_label(_("Open…"));
- g_signal_connect(G_OBJECT (menu_item), "activate",
+ g_signal_connect(menu_item, "activate",
G_CALLBACK(on_open_url_cb),
(gpointer)attach_data);
gtk_menu_shell_append(GTK_MENU_SHELL(attach_data->popup_menu),
@@ -1984,7 +1984,7 @@ sw_attach_dialog(BalsaSendmsg * bsmsg)
if (balsa_app.attach_dir)
gtk_file_chooser_set_current_folder_uri(fc, balsa_app.attach_dir);
- g_signal_connect(G_OBJECT(fc), "response",
+ g_signal_connect(fc, "response",
G_CALLBACK(attach_dialog_response), bsmsg);
gtk_widget_show(fsw);
@@ -2551,7 +2551,7 @@ create_info_pane(BalsaSendmsg * bsmsg)
/* Subject: */
create_string_entry(bsmsg, grid, _("S_ubject:"), ++row,
bsmsg->subject);
- g_signal_connect_swapped(G_OBJECT(bsmsg->subject[1]), "changed",
+ g_signal_connect_swapped(bsmsg->subject[1], "changed",
G_CALLBACK(sendmsg_window_set_title), bsmsg);
/* Reply To: */
@@ -2684,7 +2684,7 @@ sw_attachment_list(BalsaSendmsg *bsmsg)
g_signal_connect(view, "button_press_event",
G_CALLBACK(attachment_button_press_cb), NULL);
- g_signal_connect(G_OBJECT(bsmsg->window), "drag_data_received",
+ g_signal_connect(bsmsg->window, "drag_data_received",
G_CALLBACK(attachments_add), bsmsg);
gtk_drag_dest_set(GTK_WIDGET(bsmsg->window), GTK_DEST_DEFAULT_ALL,
drop_types, G_N_ELEMENTS(drop_types),
@@ -2870,9 +2870,9 @@ create_text_area(BalsaSendmsg * bsmsg)
buffer = gtk_text_view_get_buffer(text_view);
#ifdef HAVE_GTKSOURCEVIEW
- g_signal_connect(G_OBJECT(buffer), "notify::can-undo",
+ g_signal_connect(buffer, "notify::can-undo",
G_CALLBACK(sw_can_undo_cb), bsmsg);
- g_signal_connect(G_OBJECT(buffer), "notify::can-redo",
+ g_signal_connect(buffer, "notify::can-redo",
G_CALLBACK(sw_can_redo_cb), bsmsg);
#else /* HAVE_GTKSOURCEVIEW */
bsmsg->buffer2 =
@@ -2900,7 +2900,7 @@ create_text_area(BalsaSendmsg * bsmsg)
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll),
GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
gtk_container_add(GTK_CONTAINER(scroll), bsmsg->text);
- g_signal_connect(G_OBJECT(bsmsg->text), "drag_data_received",
+ g_signal_connect(bsmsg->text, "drag_data_received",
G_CALLBACK(drag_data_quote), bsmsg);
/* GTK_DEST_DEFAULT_ALL in drag_set would trigger bug 150141 */
gtk_drag_dest_set(GTK_WIDGET(bsmsg->text), 0,
@@ -4217,7 +4217,7 @@ create_lang_menu(GtkWidget * parent, BalsaSendmsg * bsmsg)
locales[i].
lang_name);
group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(w));
- g_signal_connect(G_OBJECT(w), "activate",
+ g_signal_connect(w, "activate",
G_CALLBACK(lang_set_cb), bsmsg);
g_object_set_data_full(G_OBJECT(w), BALSA_LANGUAGE_MENU_LANG,
g_strdup(locales[i].locale), g_free);
@@ -4246,7 +4246,7 @@ create_lang_menu(GtkWidget * parent, BalsaSendmsg * bsmsg)
w = gtk_radio_menu_item_new_with_label(group, lang);
group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(w));
- g_signal_connect(G_OBJECT(w), "activate",
+ g_signal_connect(w, "activate",
G_CALLBACK(lang_set_cb), bsmsg);
g_object_set_data_full(G_OBJECT(w), BALSA_LANGUAGE_MENU_LANG,
g_strdup(lang), g_free);
@@ -4683,7 +4683,7 @@ sendmsg_window_set_field(BalsaSendmsg * bsmsg, const gchar * key,
#endif
g_object_set_data(G_OBJECT(bsmsg->window),
"balsa-sendmsg-window-url-bcc", dialog);
- g_signal_connect(G_OBJECT(dialog), "response",
+ g_signal_connect(dialog, "response",
G_CALLBACK(gtk_widget_destroy), NULL);
gtk_widget_show_all(dialog);
}
@@ -4817,7 +4817,7 @@ sw_include_file_activated(GSimpleAction * action,
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER
(file_selector),
balsa_app.attach_dir);
- g_signal_connect(G_OBJECT(file_selector), "response",
+ g_signal_connect(file_selector, "response",
G_CALLBACK(insert_file_response), bsmsg);
/* Display that dialog */
@@ -6883,9 +6883,9 @@ sendmsg_window_new()
bsmsg->draft_message = NULL;
bsmsg->parent_message = NULL;
- g_signal_connect(G_OBJECT(window), "delete-event",
+ g_signal_connect(window, "delete-event",
G_CALLBACK(delete_event_cb), bsmsg);
- g_signal_connect(G_OBJECT(window), "destroy",
+ g_signal_connect(window, "destroy",
G_CALLBACK(destroy_event_cb), bsmsg);
/* If any compose windows are open when Balsa is closed, we want
* them also to be closed. */
@@ -6984,7 +6984,7 @@ sendmsg_window_new()
bsmsg->update_config = TRUE;
bsmsg->delete_sig_id =
- g_signal_connect(G_OBJECT(balsa_app.main_window), "delete-event",
+ g_signal_connect(balsa_app.main_window, "delete-event",
G_CALLBACK(delete_event_cb), bsmsg);
setup_headers_from_identity(bsmsg, bsmsg->ident);
diff --git a/src/store-address.c b/src/store-address.c
index 26f46917f..f6034a56b 100644
--- a/src/store-address.c
+++ b/src/store-address.c
@@ -114,7 +114,7 @@ balsa_store_address_from_messages(GList * messages)
(GWeakNotify) store_address_weak_notify, info);
}
- g_signal_connect(G_OBJECT(info->dialog), "response",
+ g_signal_connect(info->dialog, "response",
G_CALLBACK(store_address_response), info);
gtk_widget_show(GTK_WIDGET(info->dialog));
}
@@ -132,7 +132,7 @@ balsa_store_address(LibBalsaAddress *address)
store_address_add_lbaddress(info, address);
- g_signal_connect(G_OBJECT(info->dialog), "response",
+ g_signal_connect(info->dialog, "response",
G_CALLBACK(store_address_response), info);
gtk_widget_show_all(GTK_WIDGET(info->dialog));
}
diff --git a/src/toolbar-prefs.c b/src/toolbar-prefs.c
index 5164cf1a1..1515b72bf 100644
--- a/src/toolbar-prefs.c
+++ b/src/toolbar-prefs.c
@@ -146,7 +146,7 @@ customize_dialog_cb(GtkWidget * widget, gpointer data)
#endif
g_object_add_weak_pointer(G_OBJECT(customize_widget),
(gpointer *) & customize_widget);
- g_signal_connect(G_OBJECT(customize_widget), "response",
+ g_signal_connect(customize_widget, "response",
G_CALLBACK(tp_dialog_response_cb), NULL);
notebook = gtk_notebook_new();
@@ -204,7 +204,7 @@ customize_dialog_cb(GtkWidget * widget, gpointer data)
gtk_check_button_new_with_mnemonic(_("_Wrap button labels"));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(wrap_button),
balsa_app.toolbar_wrap_button_text);
- g_signal_connect(G_OBJECT(wrap_button), "toggled",
+ g_signal_connect(wrap_button, "toggled",
G_CALLBACK(wrap_toggled_cb), notebook);
gtk_box_pack_start(GTK_BOX(option_box), wrap_button, FALSE, FALSE, 0);
@@ -542,30 +542,30 @@ create_toolbar_page(BalsaToolbarModel * model, GActionMap * map)
gtk_container_add(GTK_CONTAINER(destination_scroll), page->current);
/* UI signals */
- g_signal_connect(G_OBJECT(page->available), "row-activated",
+ g_signal_connect(page->available, "row-activated",
G_CALLBACK(available_row_activated_cb), page);
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(page->available));
- g_signal_connect(G_OBJECT(selection), "changed",
+ g_signal_connect(selection, "changed",
G_CALLBACK(available_selection_changed_cb), page);
- g_signal_connect(G_OBJECT(page->current), "row-activated",
+ g_signal_connect(page->current, "row-activated",
G_CALLBACK(current_row_activated_cb), page);
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(page->current));
- g_signal_connect(G_OBJECT(selection), "changed",
+ g_signal_connect(selection, "changed",
G_CALLBACK(current_selection_changed_cb), page);
- g_signal_connect(G_OBJECT(page->add_button), "clicked",
+ g_signal_connect(page->add_button, "clicked",
G_CALLBACK(add_button_cb), page);
- g_signal_connect(G_OBJECT(page->remove_button), "clicked",
+ g_signal_connect(page->remove_button, "clicked",
G_CALLBACK(remove_button_cb), page);
- g_signal_connect(G_OBJECT(page->forward_button), "clicked",
+ g_signal_connect(page->forward_button, "clicked",
G_CALLBACK(forward_button_cb), page);
- g_signal_connect(G_OBJECT(page->back_button), "clicked",
+ g_signal_connect(page->back_button, "clicked",
G_CALLBACK(back_button_cb), page);
- g_signal_connect(G_OBJECT(page->standard_button), "clicked",
+ g_signal_connect(page->standard_button, "clicked",
G_CALLBACK(standard_button_cb), page);
- g_signal_connect(G_OBJECT(style_button), "clicked",
+ g_signal_connect(style_button, "clicked",
G_CALLBACK(style_button_cb), page);
gtk_widget_set_sensitive(page->add_button, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]