--- np2/x11/gtk2/gtk_main.c 2011/01/15 16:01:53 1.12 +++ np2/x11/gtk2/gtk_main.c 2012/01/23 03:57:31 1.16 @@ -1,7 +1,5 @@ -/* $Id: gtk_main.c,v 1.12 2011/01/15 16:01:53 monaka Exp $ */ - /* - * Copyright (c) 2004 NONAKA Kimihiro + * Copyright (c) 2004 NONAKA Kimihiro * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -315,7 +313,7 @@ gui_gtk_widget_create(void) set_icon_bitmap(main_window); g_signal_connect(GTK_OBJECT(main_window), "destroy", - G_CALLBACK(destroy_evhandler), "WM destroy"); + G_CALLBACK(destroy_evhandler), (gpointer)"WM destroy"); g_signal_connect(GTK_OBJECT(main_window), "key_press_event", G_CALLBACK(key_press_evhandler), NULL); g_signal_connect(GTK_OBJECT(main_window), "key_release_event", @@ -421,7 +419,7 @@ gui_gtk_msgbox(const char *title, const dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_DESTROY_WITH_PARENT|GTK_DIALOG_MODAL, - msgtype, btntype, msg); + msgtype, btntype, "%s", msg); gtk_window_set_title(GTK_WINDOW(dialog), title); gtk_widget_show_all(dialog);