From: teodor Date: Tue, 26 Dec 2006 20:21:46 +0000 (+0000) Subject: use G_CALLBACK macros X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=e7e016ad7dd2fbceb6699be2ca7640f750a55d8b;p=hclip.git use G_CALLBACK macros --- diff --git a/hclip.c b/hclip.c index c4cdaaa..1f591b7 100644 --- a/hclip.c +++ b/hclip.c @@ -299,12 +299,12 @@ newClipboardMenuItem(ClipboardDescr *descr) g_signal_connect(item->widget, "activate", - (GCallback)itemActivate, + G_CALLBACK(itemActivate), (gpointer)descr); g_signal_connect(item->widget, "button-release-event", - (GCallback)itemToggleLock, + G_CALLBACK(itemToggleLock), (gpointer)descr); gtk_menu_shell_prepend(GTK_MENU_SHELL(descr->widget), item->widget); @@ -492,7 +492,7 @@ main( int argc, char *argv[] ) { */ g_signal_connect(gtk_clipboard_get(GDK_SELECTION_PRIMARY), "owner-change", - (GCallback)ClipboardChange, + G_CALLBACK(ClipboardChange), (gpointer)&descr); gtk_main ();