diff options
author | rbuj <[email protected]> | 2021-10-27 13:12:46 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-01-21 02:50:58 +0000 |
commit | 26cd61275d4b626ea663abfeb2d4a6befd1e8b1f (patch) | |
tree | 21dac68a9a459030d573d3a107ee794d36a6010c /mate-screenshot | |
parent | b798b5bf8cea1fd33abb62dfc45346f74e0515b1 (diff) | |
download | mate-utils-26cd61275d4b626ea663abfeb2d4a6befd1e8b1f.tar.bz2 mate-utils-26cd61275d4b626ea663abfeb2d4a6befd1e8b1f.tar.xz |
Unnecessary G_OBJECT cast when calling signal connect function
Diffstat (limited to 'mate-screenshot')
-rw-r--r-- | mate-screenshot/src/mate-screenshot.c | 2 | ||||
-rw-r--r-- | mate-screenshot/src/screenshot-dialog.c | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/mate-screenshot/src/mate-screenshot.c b/mate-screenshot/src/mate-screenshot.c index 43f74399..d5bbe802 100644 --- a/mate-screenshot/src/mate-screenshot.c +++ b/mate-screenshot/src/mate-screenshot.c @@ -540,7 +540,7 @@ create_interactive_dialog (void) G_CALLBACK (interactive_dialog_response_cb), NULL); - g_signal_connect (G_OBJECT (retval), "key-press-event", + g_signal_connect (retval, "key-press-event", G_CALLBACK(key_press_cb), NULL); diff --git a/mate-screenshot/src/screenshot-dialog.c b/mate-screenshot/src/screenshot-dialog.c index da1a1694..cd1afeb2 100644 --- a/mate-screenshot/src/screenshot-dialog.c +++ b/mate-screenshot/src/screenshot-dialog.c @@ -253,10 +253,12 @@ screenshot_dialog_new (GdkPixbuf *screenshot, gtk_frame_set_shadow_type (GTK_FRAME (aspect_frame), GTK_SHADOW_IN); /* setup dnd */ - g_signal_connect (G_OBJECT (preview_darea), "drag_begin", - G_CALLBACK (drag_begin), dialog); - g_signal_connect (G_OBJECT (preview_darea), "drag_data_get", - G_CALLBACK (drag_data_get), dialog); + g_signal_connect (preview_darea, "drag_begin", + G_CALLBACK (drag_begin), + dialog); + g_signal_connect (preview_darea, "drag_data_get", + G_CALLBACK (drag_data_get), + dialog); gtk_widget_show_all (toplevel); |