[gtkglarea] examples/zktor.c: Replace more deprecated api
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglarea] examples/zktor.c: Replace more deprecated api
- Date: Thu, 20 Mar 2014 11:47:02 +0000 (UTC)
commit 7e7b41754c4fd7cc53da564d833aa1c52e0383dd
Author: Javier Jardón <jjardon gnome org>
Date: Thu Mar 20 02:31:58 2014 +0000
examples/zktor.c: Replace more deprecated api
examples/zktor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/zktor.c b/examples/zktor.c
index 4430fff..e345c35 100644
--- a/examples/zktor.c
+++ b/examples/zktor.c
@@ -963,11 +963,11 @@ int main(int argc, char **argv)
gtk_widget_show(window);
/* set focus to glarea widget */
- GTK_WIDGET_SET_FLAGS(glarea, GTK_CAN_FOCUS);
+ gtk_widget_set_can_focus (glarea, TRUE);
gtk_widget_grab_focus(GTK_WIDGET(glarea));
/* animating */
- gtk_idle_add((GtkFunction)animate, glarea);
+ gtk_idle_add((GSourceFunc)animate, glarea);
game_init();
gtk_main();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]