From 7a4e2d147dc18ea8e317b925176f9fa6d4d8def6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 6 Oct 2012 14:30:14 +0300 Subject: [PATCH] Use the proper macro for connecting signal callbacks --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index f62b7b0..f6a0b13 100644 --- a/main.c +++ b/main.c @@ -600,7 +600,7 @@ int main(int argc, char **argv) window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width(GTK_CONTAINER(window), 5); - g_signal_connect(window, "destroy", >k_main_quit, NULL); + g_signal_connect(window, "destroy", G_CALLBACK(>k_main_quit), NULL); viewport = gtk_viewport_new(NULL, NULL); gtk_viewport_set_shadow_type(GTK_VIEWPORT(viewport), GTK_SHADOW_IN); @@ -608,7 +608,7 @@ int main(int argc, char **argv) list = gtk_tree_view_new(); gtk_container_add(GTK_CONTAINER(viewport), list); - g_signal_connect(list, "row-activated", (GCallback)&row_activated, &umount); + g_signal_connect(list, "row-activated", G_CALLBACK(&row_activated), &umount); store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_POINTER); gtk_tree_view_set_model(GTK_TREE_VIEW(list), GTK_TREE_MODEL(store)); @@ -646,7 +646,7 @@ int main(int argc, char **argv) dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, "No devices to %s", (umount ? "unmount" : "mount")); - g_signal_connect(dialog, "response", >k_main_quit, NULL); + g_signal_connect(dialog, "response", G_CALLBACK(>k_main_quit), NULL); gtk_widget_show_all(dialog); } -- 2.45.2