Commit 4abbe4cb authored by Benjamin Otte's avatar Benjamin Otte
Browse files

a11y: Use the canonical way to connect to signals

No functional changes at all, the generated code should in fact be
identical.
parent eeae39d3
......@@ -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 *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment