1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
|
# This patch is based on the Ubuntu patch for TiEmu 3.02, see
# http://packages.ubuntu.com/de/oneiric/tiemu
diff -purN tiemu-3.03.orig/src/gui/calc/calc.c tiemu-3.03/src/gui/calc/calc.c
--- tiemu-3.03.orig/src/gui/calc/calc.c 2007-12-16 16:29:16.000000000 +0100
+++ tiemu-3.03/src/gui/calc/calc.c 2011-11-04 23:11:40.000000000 +0100
@@ -313,7 +313,7 @@ on_drawingarea1_expose_event (
{
gdk_draw_pixmap(
widget->window,
- widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ widget->style->fg_gc[gtk_widget_get_state (widget)],
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
@@ -586,7 +586,7 @@ int hid_init(void)
// Install LCD refresh: 100 FPS (10 ms)
tid = g_timeout_add((params.lcd_rate == -1) ? 50 : params.lcd_rate,
- (GtkFunction)hid_refresh, NULL);
+ (GSourceFunc)hid_refresh, NULL);
explicit_destroy = 0;
gtk_widget_show(main_wnd); // show wnd here
@@ -640,7 +640,7 @@ void hid_lcd_rate_set(void)
g_source_remove(tid);
tid = g_timeout_add((params.lcd_rate == -1) ? 50 : params.lcd_rate,
- (GtkFunction)hid_refresh, NULL);
+ (GSourceFunc)hid_refresh, NULL);
}
int hid_switch_with_skin(void)
diff -purN tiemu-3.03.orig/src/gui/calc/popup.c tiemu-3.03/src/gui/calc/popup.c
--- tiemu-3.03.orig/src/gui/calc/popup.c 2009-05-08 22:43:47.000000000 +0200
+++ tiemu-3.03/src/gui/calc/popup.c 2011-11-04 22:45:28.000000000 +0100
@@ -26,7 +26,9 @@
# include <config.h>
#endif
+#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
+#define GTK_DISABLE_DEPRECATED
#include <glade/glade.h>
#include <stdlib.h>
#include <string.h>
diff -purN tiemu-3.03.orig/src/gui/calc/screen.c tiemu-3.03/src/gui/calc/screen.c
--- tiemu-3.03.orig/src/gui/calc/screen.c 2006-11-06 18:18:51.000000000 +0100
+++ tiemu-3.03/src/gui/calc/screen.c 2011-11-04 23:12:09.000000000 +0100
@@ -187,7 +187,7 @@ void redraw_skin(void)
skin_infos.image = gdk_pixbuf_scale_simple(skin_infos.raw, wr.wr.w, wr.wr.h, GDK_INTERP_NEAREST);
// and draw image into pixmap (next, into window on expose event)
- gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[GTK_WIDGET_STATE(main_wnd)],
+ gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[gtk_widget_get_state(main_wnd)],
skin_infos.image, 0, 0, 0, 0, -1, -1, GDK_RGB_DITHER_NONE, 0, 0);
gdk_window_invalidate_rect(main_wnd->window, &wr.gr, FALSE);
}
@@ -204,7 +204,7 @@ void redraw_lcd(void)
gdk_pixbuf_scale_simple(skin_infos.raw, sr.w, sr.h, GDK_INTERP_NEAREST);
// and draw
- gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[GTK_WIDGET_STATE(main_wnd)],
+ gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[gtk_widget_get_state(main_wnd)],
skin_infos.image, ls.x, ls.y, lr.x, lr.y, lr.w, lr.h, GDK_RGB_DITHER_NONE, 0, 0);
gtk_widget_queue_draw_area(area, lr.x, lr.y, lr.w, lr.h);
}
@@ -324,7 +324,7 @@ int hid_update_lcd(void)
skin_infos.image = gdk_pixbuf_scale_simple(lcd, lr.w, lr.h, GDK_INTERP_NEAREST);
// and draw image into pixmap (next, into window on expose event)
- gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[GTK_WIDGET_STATE(main_wnd)],
+ gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[gtk_widget_get_state(main_wnd)],
skin_infos.image, src.x, src.y, lr.x, lr.y, src.w, src.h,
GDK_RGB_DITHER_NONE, 0, 0);
gtk_widget_queue_draw_area(area, lr.x, lr.y, src.w, src.h);
@@ -332,7 +332,7 @@ int hid_update_lcd(void)
else
{
// and draw image into pixmap (next, into window on expose event)
- gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[GTK_WIDGET_STATE(main_wnd)],
+ gdk_draw_pixbuf(pixmap, main_wnd->style->fg_gc[gtk_widget_get_state(main_wnd)],
lcd_mem, src.x, src.y, lr.x, lr.y, src.w, src.h,
GDK_RGB_DITHER_NONE, 0, 0);
gtk_widget_queue_draw_area(area, lr.x, lr.y, src.w, src.h);
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_all.c tiemu-3.03/src/gui/debugger/dbg_all.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_all.c 2009-05-08 12:56:40.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_all.c 2011-11-04 22:46:29.000000000 +0100
@@ -90,21 +90,21 @@ void gtk_debugger_refresh(void)
{
WND_TMR_START();
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.regs))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.regs))
dbgregs_refresh_window();
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.mem))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.mem))
dbgmem_refresh_window();
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.bkpts))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.bkpts))
dbgbkpts_refresh_window();
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.pclog))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.pclog))
dbgpclog_refresh_window();
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.code))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.code))
dbgcode_refresh_window();
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.stack))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.stack))
dbgstack_refresh_window();
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.heap))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.heap))
dbgheap_refresh_window();
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.iop))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.iop))
dbgiop_refresh_window();
WND_TMR_STOP("Debugger Refresh Time");
@@ -163,7 +163,7 @@ int gtk_debugger_enter(int context)
gtk_debugger_refresh();
// enable the debugger if GDB disabled it
- if (!options3.dbg_dock && !GTK_WIDGET_SENSITIVE(dbgw.regs))
+ if (!options3.dbg_dock && !gtk_widget_get_sensitive(dbgw.regs))
gtk_debugger_enable();
// handle automatic debugging requests
@@ -180,7 +180,7 @@ int gtk_debugger_enter(int context)
ti68k_bkpt_get_pgmentry_offset(id, &handle, &offset);
ti68k_bkpt_del_pgmentry(handle);
- if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.bkpts))
+ if(options3.dbg_dock || gtk_widget_get_visible(dbgw.bkpts))
dbgbkpts_refresh_window();
delete_command(NULL, 0);
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_bkpts.c tiemu-3.03/src/gui/debugger/dbg_bkpts.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_bkpts.c 2009-05-06 21:48:47.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_bkpts.c 2011-11-04 22:46:29.000000000 +0100
@@ -388,7 +388,7 @@ GtkWidget* dbgbkpts_display_window(void)
gtk_window_iconify(GTK_WINDOW(wnd));
#endif
- if(!GTK_WIDGET_VISIBLE(dbgw.bkpts) && !options3.bkpts.closed)
+ if(!gtk_widget_get_visible(dbgw.bkpts) && !options3.bkpts.closed)
gtk_widget_show(wnd);
return wnd;
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_code.c tiemu-3.03/src/gui/debugger/dbg_code.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_code.c 2009-05-06 21:48:47.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_code.c 2011-11-04 22:46:29.000000000 +0100
@@ -1117,7 +1117,7 @@ void gdbcallback_refresh_debugger(void)
int dbgcode_quit_enabled(void)
{
- return GTK_WIDGET_SENSITIVE(mi.m8);
+ return gtk_widget_get_sensitive(mi.m8);
}
static int close_debugger_wrapper(gpointer data)
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_dock.c tiemu-3.03/src/gui/debugger/dbg_dock.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_dock.c 2008-05-26 18:48:30.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_dock.c 2011-11-04 23:05:02.000000000 +0100
@@ -151,22 +151,22 @@ void dbgdock_set_sensitivity(int state)
void dbgdock_show_all(int all)
{
- if(!GTK_WIDGET_VISIBLE(dbgw.dock) && all)
+ if(!gtk_widget_get_visible(dbgw.dock) && all)
gtk_widget_show(dbgw.dock);
- if(GTK_WIDGET_VISIBLE(dbgw.iop))
+ if(gtk_widget_get_visible(dbgw.iop))
gtk_window_iconify(GTK_WINDOW(dbgw.iop));
- if(GTK_WIDGET_VISIBLE(dbgw.pclog))
+ if(gtk_widget_get_visible(dbgw.pclog))
gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
}
void dbgdock_hide_all(int all)
{
- if(GTK_WIDGET_VISIBLE(dbgw.dock) && all)
+ if(gtk_widget_get_visible(dbgw.dock) && all)
gtk_widget_hide(dbgw.dock);
- if(GTK_WIDGET_VISIBLE(dbgw.pclog))
+ if(gtk_widget_get_visible(dbgw.pclog))
gtk_widget_hide(dbgw.pclog);
- if(GTK_WIDGET_VISIBLE(dbgw.iop))
+ if(gtk_widget_get_visible(dbgw.iop))
gtk_widget_hide(dbgw.iop);
}
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_heap.c tiemu-3.03/src/gui/debugger/dbg_heap.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_heap.c 2009-05-06 21:48:47.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_heap.c 2011-11-04 22:46:29.000000000 +0100
@@ -171,7 +171,7 @@ GtkWidget* dbgheap_display_window(void)
gtk_window_iconify(GTK_WINDOW(dbgw.heap));
#endif
- if(!GTK_WIDGET_VISIBLE(dbgw.heap) && !options3.heap.closed)
+ if(!gtk_widget_get_visible(dbgw.heap) && !options3.heap.closed)
gtk_widget_show(dbgw.heap);
return dbgw.heap;
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_iop.c tiemu-3.03/src/gui/debugger/dbg_iop.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_iop.c 2009-05-02 21:46:04.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_iop.c 2011-11-04 22:46:29.000000000 +0100
@@ -455,7 +455,7 @@ GtkWidget* dbgiop_display_window(void)
gtk_window_iconify(GTK_WINDOW(dbgw.iop));
#endif
- if(!GTK_WIDGET_VISIBLE(dbgw.iop) && !options3.iop.closed)
+ if(!gtk_widget_get_visible(dbgw.iop) && !options3.iop.closed)
gtk_widget_show(dbgw.iop);
return dbgw.iop;
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_mem.c tiemu-3.03/src/gui/debugger/dbg_mem.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_mem.c 2009-05-06 21:48:47.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_mem.c 2011-11-04 22:46:29.000000000 +0100
@@ -435,7 +435,7 @@ GtkWidget* dbgmem_display_window(void)
gtk_window_iconify(GTK_WINDOW(dbgw.mem));
#endif
- if(!GTK_WIDGET_VISIBLE(dbgw.mem) && !options3.mem.closed)
+ if(!gtk_widget_get_visible(dbgw.mem) && !options3.mem.closed)
gtk_widget_show(dbgw.mem);
return dbgw.mem;
@@ -605,7 +605,7 @@ dbgmem_button6_clicked
GLADE_CB void
on_notebook1_switch_page (GtkNotebook *notebook,
- GtkNotebookPage *page,
+ gpointer *page,
guint page_num,
gpointer user_data)
{
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_pclog.c tiemu-3.03/src/gui/debugger/dbg_pclog.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_pclog.c 2009-05-02 21:46:04.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_pclog.c 2011-11-04 22:46:29.000000000 +0100
@@ -163,7 +163,7 @@ GtkWidget* dbgpclog_display_window(void)
gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
#endif
- if(!GTK_WIDGET_VISIBLE(dbgw.pclog) && !options3.pclog.closed)
+ if(!gtk_widget_get_visible(dbgw.pclog) && !options3.pclog.closed)
gtk_widget_show(dbgw.pclog);
return dbgw.pclog;
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_regs.c tiemu-3.03/src/gui/debugger/dbg_regs.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_regs.c 2009-05-06 21:48:47.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_regs.c 2011-11-04 22:46:29.000000000 +0100
@@ -302,7 +302,7 @@ GtkWidget* dbgregs_display_window(void)
gtk_window_iconify(GTK_WINDOW(dbgw.regs));
#endif
- if(!GTK_WIDGET_VISIBLE(dbgw.regs) && !options3.regs.closed)
+ if(!gtk_widget_get_visible(dbgw.regs) && !options3.regs.closed)
gtk_widget_show(dbgw.regs);
return dbgw.regs;
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_romcall.c tiemu-3.03/src/gui/debugger/dbg_romcall.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_romcall.c 2007-07-05 13:36:10.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_romcall.c 2011-11-04 22:46:29.000000000 +0100
@@ -29,7 +29,9 @@
# include <config.h>
#endif
-#include <gtk/gtk.h>
+#undef GTK_DISABLE_DEPRECATED
+ #include <gtk/gtk.h>
+#define GTK_DISABLE_DEPRECATED
#include <glade/glade.h>
#include <string.h>
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_stack.c tiemu-3.03/src/gui/debugger/dbg_stack.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_stack.c 2009-05-06 21:48:47.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_stack.c 2011-11-04 22:46:29.000000000 +0100
@@ -197,7 +197,7 @@ GtkWidget* dbgstack_display_window(void)
gtk_window_iconify(GTK_WINDOW(dbgw.stack));
#endif
- if(!GTK_WIDGET_VISIBLE(dbgw.stack) && !options3.stack.closed)
+ if(!gtk_widget_get_visible(dbgw.stack) && !options3.stack.closed)
gtk_widget_show(dbgw.stack);
return dbgw.stack;
diff -purN tiemu-3.03.orig/src/gui/debugger/dbg_wnds.c tiemu-3.03/src/gui/debugger/dbg_wnds.c
--- tiemu-3.03.orig/src/gui/debugger/dbg_wnds.c 2009-05-07 09:18:02.000000000 +0200
+++ tiemu-3.03/src/gui/debugger/dbg_wnds.c 2011-11-04 23:07:54.000000000 +0100
@@ -74,21 +74,21 @@ void dbgwnds_minimize_all(int all)
if(options3.dbg_dock)
return;
- if(GTK_WIDGET_VISIBLE(dbgw.regs))
+ if(gtk_widget_get_visible(dbgw.regs))
gtk_window_iconify(GTK_WINDOW(dbgw.regs));
- if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
+ if(gtk_widget_get_visible(dbgw.bkpts))
gtk_window_iconify(GTK_WINDOW(dbgw.bkpts));
- if(GTK_WIDGET_VISIBLE(dbgw.mem))
+ if(gtk_widget_get_visible(dbgw.mem))
gtk_window_iconify(GTK_WINDOW(dbgw.mem));
- if(GTK_WIDGET_VISIBLE(dbgw.pclog))
+ if(gtk_widget_get_visible(dbgw.pclog))
gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
- if(GTK_WIDGET_VISIBLE(dbgw.code) & all)
+ if(gtk_widget_get_visible(dbgw.code) & all)
gtk_window_iconify(GTK_WINDOW(dbgw.code));
- if(GTK_WIDGET_VISIBLE(dbgw.stack))
+ if(gtk_widget_get_visible(dbgw.stack))
gtk_window_iconify(GTK_WINDOW(dbgw.stack));
- if(GTK_WIDGET_VISIBLE(dbgw.heap))
+ if(gtk_widget_get_visible(dbgw.heap))
gtk_window_iconify(GTK_WINDOW(dbgw.heap));
- if(GTK_WIDGET_VISIBLE(dbgw.iop))
+ if(gtk_widget_get_visible(dbgw.iop))
gtk_window_iconify(GTK_WINDOW(dbgw.iop));
}
@@ -98,21 +98,21 @@ void dbgwnds_unminimize_all(int all)
if(options3.dbg_dock)
return;
- if(GTK_WIDGET_VISIBLE(dbgw.regs))
+ if(gtk_widget_get_visible(dbgw.regs))
gtk_window_deiconify(GTK_WINDOW(dbgw.regs));
- if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
+ if(gtk_widget_get_visible(dbgw.bkpts))
gtk_window_deiconify(GTK_WINDOW(dbgw.bkpts));
- if(GTK_WIDGET_VISIBLE(dbgw.mem))
+ if(gtk_widget_get_visible(dbgw.mem))
gtk_window_deiconify(GTK_WINDOW(dbgw.mem));
- if(GTK_WIDGET_VISIBLE(dbgw.pclog))
+ if(gtk_widget_get_visible(dbgw.pclog))
gtk_window_deiconify(GTK_WINDOW(dbgw.pclog));
- if(GTK_WIDGET_VISIBLE(dbgw.code) & all)
+ if(gtk_widget_get_visible(dbgw.code) & all)
gtk_window_deiconify(GTK_WINDOW(dbgw.code));
- if(GTK_WIDGET_VISIBLE(dbgw.stack))
+ if(gtk_widget_get_visible(dbgw.stack))
gtk_window_deiconify(GTK_WINDOW(dbgw.stack));
- if(GTK_WIDGET_VISIBLE(dbgw.heap))
+ if(gtk_widget_get_visible(dbgw.heap))
gtk_window_deiconify(GTK_WINDOW(dbgw.heap));
- if(GTK_WIDGET_VISIBLE(dbgw.iop))
+ if(gtk_widget_get_visible(dbgw.iop))
gtk_window_deiconify(GTK_WINDOW(dbgw.iop));
}
@@ -122,21 +122,21 @@ void dbgwnds_show_all(int all)
if(options3.dbg_dock)
return;
- if(!GTK_WIDGET_VISIBLE(dbgw.regs))
+ if(!gtk_widget_get_visible(dbgw.regs))
gtk_widget_show(dbgw.regs);
- if(!GTK_WIDGET_VISIBLE(dbgw.bkpts))
+ if(!gtk_widget_get_visible(dbgw.bkpts))
gtk_widget_show(dbgw.bkpts);
- if(!GTK_WIDGET_VISIBLE(dbgw.mem))
+ if(!gtk_widget_get_visible(dbgw.mem))
gtk_widget_show(dbgw.mem);
- if(!GTK_WIDGET_VISIBLE(dbgw.pclog))
+ if(!gtk_widget_get_visible(dbgw.pclog))
gtk_widget_show(dbgw.pclog);
- if(!GTK_WIDGET_VISIBLE(dbgw.code) && all)
+ if(!gtk_widget_get_visible(dbgw.code) && all)
gtk_widget_show(dbgw.code);
- if(!GTK_WIDGET_VISIBLE(dbgw.stack))
+ if(!gtk_widget_get_visible(dbgw.stack))
gtk_widget_show(dbgw.stack);
- if(!GTK_WIDGET_VISIBLE(dbgw.heap))
+ if(!gtk_widget_get_visible(dbgw.heap))
gtk_widget_show(dbgw.heap);
- if(!GTK_WIDGET_VISIBLE(dbgw.iop))
+ if(!gtk_widget_get_visible(dbgw.iop))
gtk_widget_show(dbgw.iop);
}
@@ -146,21 +146,21 @@ void dbgwnds_hide_all(int all)
if(options3.dbg_dock)
return;
- if(GTK_WIDGET_VISIBLE(dbgw.regs))
+ if(gtk_widget_get_visible(dbgw.regs))
gtk_widget_hide(dbgw.regs);
- if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
+ if(gtk_widget_get_visible(dbgw.bkpts))
gtk_widget_hide(dbgw.bkpts);
- if(GTK_WIDGET_VISIBLE(dbgw.mem))
+ if(gtk_widget_get_visible(dbgw.mem))
gtk_widget_hide(dbgw.mem);
- if(GTK_WIDGET_VISIBLE(dbgw.pclog))
+ if(gtk_widget_get_visible(dbgw.pclog))
gtk_widget_hide(dbgw.pclog);
- if(GTK_WIDGET_VISIBLE(dbgw.code) && all)
+ if(gtk_widget_get_visible(dbgw.code) && all)
gtk_widget_hide(dbgw.code);
- if(GTK_WIDGET_VISIBLE(dbgw.stack))
+ if(gtk_widget_get_visible(dbgw.stack))
gtk_widget_hide(dbgw.stack);
- if(GTK_WIDGET_VISIBLE(dbgw.heap))
+ if(gtk_widget_get_visible(dbgw.heap))
gtk_widget_hide(dbgw.heap);
- if(GTK_WIDGET_VISIBLE(dbgw.iop))
+ if(gtk_widget_get_visible(dbgw.iop))
gtk_widget_hide(dbgw.iop);
}
@@ -338,7 +338,7 @@ void update_submenu(GtkWidget *widget, g
if(!options3.dbg_dock)
{
g_signal_handlers_block_by_func(GTK_OBJECT(item), on_registers1_activate, NULL);
- gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.regs));
+ gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.regs));
g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_registers1_activate, NULL);
}
else
@@ -350,7 +350,7 @@ void update_submenu(GtkWidget *widget, g
if(!options3.dbg_dock)
{
g_signal_handlers_block_by_func(GTK_OBJECT(item), on_breakpoints1_activate, NULL);
- gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.bkpts));
+ gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.bkpts));
g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_breakpoints1_activate, NULL);
}
else
@@ -362,7 +362,7 @@ void update_submenu(GtkWidget *widget, g
if(!options3.dbg_dock)
{
g_signal_handlers_block_by_func(GTK_OBJECT(item), on_memory1_activate, NULL);
- gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.mem));
+ gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.mem));
g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_memory1_activate, NULL);
}
else
@@ -372,7 +372,7 @@ void update_submenu(GtkWidget *widget, g
elt = g_list_nth(list, 3);
item = GTK_CHECK_MENU_ITEM(elt->data);
g_signal_handlers_block_by_func(GTK_OBJECT(item), on_pc_log1_activate, NULL);
- gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.pclog));
+ gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.pclog));
g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_pc_log1_activate, NULL);
// stack
@@ -381,7 +381,7 @@ void update_submenu(GtkWidget *widget, g
if(!options3.dbg_dock)
{
g_signal_handlers_block_by_func(GTK_OBJECT(item), on_stack_frame1_activate, NULL);
- gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.stack));
+ gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.stack));
g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_stack_frame1_activate, NULL);
}
else
@@ -393,7 +393,7 @@ void update_submenu(GtkWidget *widget, g
if(!options3.dbg_dock)
{
g_signal_handlers_block_by_func(GTK_OBJECT(item), on_heap_frame1_activate, NULL);
- gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.heap));
+ gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.heap));
g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_heap_frame1_activate, NULL);
}
else
@@ -403,7 +403,7 @@ void update_submenu(GtkWidget *widget, g
elt = g_list_nth(list, 6);
item = GTK_CHECK_MENU_ITEM(elt->data);
g_signal_handlers_block_by_func(GTK_OBJECT(item), on_ioports_frame1_activate, NULL);
- gtk_check_menu_item_set_active(item, GTK_WIDGET_VISIBLE(dbgw.iop));
+ gtk_check_menu_item_set_active(item, gtk_widget_get_visible(dbgw.iop));
g_signal_handlers_unblock_by_func(GTK_OBJECT(item), on_ioports_frame1_activate, NULL);
// dock/multi mode
diff -purN tiemu-3.03.orig/src/gui/filesel.c tiemu-3.03/src/gui/filesel.c
--- tiemu-3.03.orig/src/gui/filesel.c 2007-12-16 16:54:33.000000000 +0100
+++ tiemu-3.03/src/gui/filesel.c 2011-11-04 22:45:28.000000000 +0100
@@ -41,7 +41,9 @@
#include <stdio.h>
#include <stdlib.h>
+#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
+#define GTK_DISABLE_DEPRECATED
#include <string.h>
#ifdef __WIN32__
|