From 2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Oct 2021 14:22:58 +0200 Subject: Unnecessary G_OBJECT cast when calling signal connect function --- capplets/keybindings/eggcellrendererkeys.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'capplets/keybindings') diff --git a/capplets/keybindings/eggcellrendererkeys.c b/capplets/keybindings/eggcellrendererkeys.c index 4e61ce41..aa4c8e8a 100644 --- a/capplets/keybindings/eggcellrendererkeys.c +++ b/capplets/keybindings/eggcellrendererkeys.c @@ -622,7 +622,7 @@ egg_cell_renderer_keys_start_editing (GtkCellRenderer *cell, keys->grab_widget = widget; - g_signal_connect (G_OBJECT (widget), "key_press_event", + g_signal_connect (widget, "key_press_event", G_CALLBACK (grab_key_callback), keys); @@ -659,8 +659,9 @@ egg_cell_renderer_keys_start_editing (GtkCellRenderer *cell, gtk_widget_show_all (keys->edit_widget); - g_signal_connect (G_OBJECT (keys->edit_widget), "unrealize", - G_CALLBACK (ungrab_stuff), keys); + g_signal_connect (keys->edit_widget, "unrealize", + G_CALLBACK (ungrab_stuff), + keys); keys->edit_key = keys->accel_key; -- cgit v1.2.1