summaryrefslogtreecommitdiff
path: root/capplets/keybindings/eggcellrendererkeys.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 14:22:58 +0200
committerLuke from DC <[email protected]>2022-02-09 04:42:12 +0000
commit2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64 (patch)
tree0de842f92df7aa496d2867a65f160322687e47a4 /capplets/keybindings/eggcellrendererkeys.c
parent0bfa4ca16e527fdc333fc1ded8b1d9f5963ccf1e (diff)
downloadmate-control-center-2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64.tar.bz2
mate-control-center-2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64.tar.xz
Unnecessary G_OBJECT cast when calling signal connect function
Diffstat (limited to 'capplets/keybindings/eggcellrendererkeys.c')
-rw-r--r--capplets/keybindings/eggcellrendererkeys.c7
1 files changed, 4 insertions, 3 deletions
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;