GNOME Bugzilla – Bug 568386
G_OBJECT is not need for g_signal_connect.
Last modified: 2009-01-20 23:05:44 UTC
G_OBJECT does not need for g_signal_connect. The first argument of g_signal_connect is a gpointer so G_OBJECT is not need.
Created attachment 126820 [details] [review] Proposed patch
Well, this provides additional protection by checking that the pointer is really gobject. Are there any arguments why dropping this check is better?
IMHO, G_TYPE_CHECK_INSTANCE in g_signal_connect_data is sufficient to check it.
Ok, can you commit please?
Done. 2009-01-21 Hiroyuki Ikezoe <poincare@ikezoe.net> * shell/ev-sidebar-links.c * shell/ev-print-operation.c: * shell/ev-history.c: * shell/ev-file-monitor.c: * shell/ev-window.c: * shell/ev-password-view.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-sidebar-attachments.c: * libview/ev-pixbuf-cache.c: * libview/ev-view.c: Remove needless G_OBJECT from g_signal_connect. Bug #568386.