mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
a11y: Use the canonical way to connect to signals
No functional changes at all, the generated code should in fact be identical.
This commit is contained in:
parent
eeae39d359
commit
4abbe4cb52
@ -156,15 +156,10 @@ setup_buffer (GtkTextView *view,
|
||||
buffer = gtk_text_view_get_buffer (view);
|
||||
|
||||
/* Set up signal callbacks */
|
||||
g_signal_connect_data (buffer, "insert-text",
|
||||
(GCallback) insert_text_cb, view, NULL, 0);
|
||||
g_signal_connect_data (buffer, "delete-range",
|
||||
(GCallback) delete_range_cb, view, NULL, 0);
|
||||
g_signal_connect_data (buffer, "mark-set",
|
||||
(GCallback) mark_set_cb, view, NULL, 0);
|
||||
g_signal_connect_data (buffer, "changed",
|
||||
(GCallback) changed_cb, view, NULL, 0);
|
||||
|
||||
g_signal_connect (buffer, "insert-text", G_CALLBACK (insert_text_cb), view);
|
||||
g_signal_connect (buffer, "delete-range", G_CALLBACK (delete_range_cb), view);
|
||||
g_signal_connect (buffer, "mark-set", G_CALLBACK (mark_set_cb), view);
|
||||
g_signal_connect (buffer, "changed", G_CALLBACK (changed_cb), view);
|
||||
}
|
||||
|
||||
static gchar *
|
||||
|
Loading…
Reference in New Issue
Block a user