use G_CALLBACK macros
authorteodor <teodor>
Tue, 26 Dec 2006 20:21:46 +0000 (20:21 +0000)
committerteodor <teodor>
Tue, 26 Dec 2006 20:21:46 +0000 (20:21 +0000)
hclip.c

diff --git a/hclip.c b/hclip.c
index c4cdaaa..1f591b7 100644 (file)
--- 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 ();