X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Femugtk.c;h=982a236180a4e7c7381c74527fa9beaa520369da;hb=cece320b97e8438693b2b5bbc82380d40e1c7d94;hp=7749763e8d85d4f8e5320839061a219f5cc006ae;hpb=4d60f6b8f78f5a9e7307b5e8ee0468247f02ec64;p=emu8051.git diff --git a/src/emugtk.c b/src/emugtk.c index 7749763..982a236 100644 --- a/src/emugtk.c +++ b/src/emugtk.c @@ -200,27 +200,27 @@ AddButtons(void) /* Creating the RESET button. */ button = button_add_pix(button_hbox, reset_xpm); - gtk_signal_connect(GTK_OBJECT(button), "clicked", - GTK_SIGNAL_FUNC(emugtk_ResetEvent), - NULL); + g_signal_connect(button, "clicked", + G_CALLBACK(emugtk_ResetEvent), + NULL); /* Creating the RUN button. */ button = button_add_pix(button_hbox, run_xpm); - gtk_signal_connect(GTK_OBJECT(button), "clicked", - GTK_SIGNAL_FUNC(emugtk_RunEvent), - NULL); + g_signal_connect(button, "clicked", + G_CALLBACK(emugtk_RunEvent), + NULL); /* Creating STOP button. */ button = button_add_pix(button_hbox, stop_xpm); - gtk_signal_connect(GTK_OBJECT(button), "clicked", - GTK_SIGNAL_FUNC(emugtk_StopEvent), - NULL); + g_signal_connect(GTK_OBJECT(button), "clicked", + G_CALLBACK(emugtk_StopEvent), + NULL); /* Creating STEP button. */ button = button_add_pix(button_hbox, step_xpm); - gtk_signal_connect(GTK_OBJECT(button), "clicked", - GTK_SIGNAL_FUNC(emugtk_StepEvent), - NULL); + g_signal_connect(GTK_OBJECT(button), "clicked", + G_CALLBACK(emugtk_StepEvent), + NULL); return button_hbox; } @@ -263,8 +263,8 @@ emugtk_window_init(void) gtk_container_set_border_width(GTK_CONTAINER(mainwin), 0); /* Window DESTROY event. */ - gtk_signal_connect(GTK_OBJECT(mainwin), "destroy", - GTK_SIGNAL_FUNC(WindowDestroyEvent), NULL); + g_signal_connect(mainwin, "destroy", + G_CALLBACK(WindowDestroyEvent), NULL); /* * Setting main window geometry based on command line options