--- np2/x11/gtk2/dialog_calendar.c 2004/07/15 14:24:33 1.1 +++ np2/x11/gtk2/dialog_calendar.c 2009/03/05 11:50:39 1.3 @@ -1,4 +1,4 @@ -/* $Id: dialog_calendar.c,v 1.1 2004/07/15 14:24:33 monaka Exp $ */ +/* $Id: dialog_calendar.c,v 1.3 2009/03/05 11:50:39 monaka Exp $ */ /* * Copyright (c) 2003 NONAKA Kimihiro @@ -12,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -211,7 +209,7 @@ create_calendar_dialog(void) gtk_container_set_border_width(GTK_CONTAINER(calendar_dialog), 5); g_signal_connect(GTK_OBJECT(calendar_dialog), "destroy", - GTK_SIGNAL_FUNC(dialog_destroy), NULL); + G_CALLBACK(dialog_destroy), NULL); main_widget = gtk_table_new(4, 6, FALSE); gtk_widget_show(main_widget); @@ -227,7 +225,7 @@ create_calendar_dialog(void) calendar_radiobutton[i], 0, 3, i, i+1); GTK_WIDGET_UNSET_FLAGS(calendar_radiobutton[i], GTK_CAN_FOCUS); g_signal_connect(GTK_OBJECT(calendar_radiobutton[i]), - "clicked", GTK_SIGNAL_FUNC(calendar_radiobutton_clicked), + "clicked", G_CALLBACK(calendar_radiobutton_clicked), (gpointer)i); } @@ -271,7 +269,7 @@ create_calendar_dialog(void) gtk_table_attach_defaults(GTK_TABLE(calendar_widget), now_button, 6, 7, 1, 2); g_signal_connect(GTK_OBJECT(now_button), "clicked", - GTK_SIGNAL_FUNC(now_button_clicked), NULL); + G_CALLBACK(now_button_clicked), NULL); /* update to current state */ set_virtual_calendar(TRUE); @@ -287,7 +285,7 @@ create_calendar_dialog(void) GTK_WIDGET_SET_FLAGS(ok_button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(ok_button, GTK_HAS_DEFAULT); g_signal_connect(GTK_OBJECT(ok_button), "clicked", - GTK_SIGNAL_FUNC(ok_button_clicked), (gpointer)calendar_dialog); + G_CALLBACK(ok_button_clicked), (gpointer)calendar_dialog); gtk_widget_grab_default(ok_button); cancel_button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); @@ -296,7 +294,7 @@ create_calendar_dialog(void) gtk_table_attach_defaults(GTK_TABLE(main_widget), cancel_button, 4, 6, 1, 2); g_signal_connect_swapped(GTK_OBJECT(cancel_button), "clicked", - GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(calendar_dialog)); + G_CALLBACK(gtk_widget_destroy), GTK_OBJECT(calendar_dialog)); gtk_widget_show_all(calendar_dialog); }