Google-Code-Fork / snes9x-gtk

Automatically exported from code.google.com/p/snes9x-gtk
0 stars 0 forks source link

Avoid compile error on systems with gtk2 < 2.14 #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get this error compiling on YDL 6.2 (has gtk2-2.10.4):

src/gtk_s9xwindow.cpp: In member function ‘void
Snes9xWindow::show_status_message(const char*)’:
src/gtk_s9xwindow.cpp:1273: error: ‘g_timeout_add_seconds’ was not declared
in this scope

Can you use g_timeout_add instead?

--- snes9x-1.52-src/gtk/src/gtk_s9xwindow.cpp.orig      2010-01-18
16:54:10.000000000 -0500
+++ snes9x-1.52-src/gtk/src/gtk_s9xwindow.cpp   2010-01-18
16:56:23.000000000 -0500
@@ -1270,7 +1270,7 @@
     gtk_statusbar_pop (statusbar, gtk_statusbar_get_context_id (statusbar,
"info"));
     gtk_statusbar_push (statusbar, gtk_statusbar_get_context_id
(statusbar, "info"), message);

-    g_timeout_add_seconds (2, statusbar_timeout, statusbar);
+    g_timeout_add (2, statusbar_timeout, statusbar);

     return;
 }

---

Or should that be "g_timeout_add (2000, statusbar_timeout, statusbar);"
since interval is in milliseconds for that?

Original issue reported on code.google.com by wdbl...@gmail.com on 19 Jan 2010 at 3:09

GoogleCodeExporter commented 9 years ago
Fixed in SVN. You might have a hard time with Gtk+ versions below 2.16 when I 
switch
to GtkBuilder.

Original comment by bear...@gmail.com on 21 Jan 2010 at 11:46

GoogleCodeExporter commented 9 years ago
That would appear to be a problem for RHEL and derivatives (Centos, YDL, etc.) 
which
remain at 2.10.  Oh well -- I suppose "Enterprise Linux" is not really an 
intended
target for snes9x.  :)

Original comment by wdbl...@gmail.com on 24 Jan 2010 at 8:10