projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d60f6b
)
Replace deprecated gtk_signal_connect()
author
Hugo Villeneuve
<hugo@hugovil.com>
Mon, 9 Sep 2013 23:58:23 +0000
(19:58 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 1 Oct 2013 01:19:45 +0000
(21:19 -0400)
src/emugtk.c
patch
|
blob
|
history
diff --git
a/src/emugtk.c
b/src/emugtk.c
index
7749763
..
982a236
100644
(file)
--- 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);
/* Creating the RESET button. */
button = button_add_pix(button_hbox, reset_xpm);
- g
tk_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);
/* Creating the RUN button. */
button = button_add_pix(button_hbox, run_xpm);
- g
tk_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);
/* Creating STOP button. */
button = button_add_pix(button_hbox, stop_xpm);
- g
tk
_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);
/* Creating STEP button. */
button = button_add_pix(button_hbox, step_xpm);
- g
tk
_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;
}
return button_hbox;
}
@@
-263,8
+263,8
@@
emugtk_window_init(void)
gtk_container_set_border_width(GTK_CONTAINER(mainwin), 0);
/* Window DESTROY event. */
gtk_container_set_border_width(GTK_CONTAINER(mainwin), 0);
/* Window DESTROY event. */
- g
tk_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
/*
* Setting main window geometry based on command line options