# Hey all, here's some changes for compatibility with latest Ruby 1.9.1 preview 2

**URL:** <https://www.ruby-forum.com/t/hey-all-heres-some-changes-for-compatibility-with-latest-ruby-1-9-1-preview-2/154718>\
**Category:** Ruby-Gnome 2\
**Created:** [December 3, 2008, 8:45am UTC](https://www.ruby-forum.com/t/hey-all-heres-some-changes-for-compatibility-with-latest-ruby-1-9-1-preview-2/154718 "2008-12-03T08:45:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [December 3, 2008, 8:45am UTC](https://www.ruby-forum.com/t/hey-all-heres-some-changes-for-compatibility-with-latest-ruby-1-9-1-preview-2/154718/1 "2008-12-03T08:45:43Z")

</div>

Hi,

Please review these changes and apply them as you see fit.

I am not entirely sure about the correctness of this patch so  
review it, please. 🙂

I could not come up with something better due to my limited  
C knowledge.

Thanks!

Cheers,  
Joao

# Index: glib/src/rbgobj\_type.c

— glib/src/rbgobj\_type.c (revisÃ£o 3447)  
+++ glib/src/rbgobj\_type.c (cÃ³pia de trabalho)  
@@ -28,6 +28,7 @@  
static ID id\_superclass;  
static VALUE gtype\_to\_cinfo;  
static VALUE klass\_to\_cinfo;  
+static VALUE rb\_thread\_critical;

# static GHashTable\* dynamic\_gtype\_list; typedef struct { Index: glib/src/rbgcompat.h

— glib/src/rbgcompat.h (revisÃ£o 3447)  
+++ glib/src/rbgcompat.h (cÃ³pia de trabalho)  
@@ -25,6 +25,8 @@

extern void rbgobj\_fund\_define\_fundamental(RGFundamental \*fundamental);

+#define rb\_progname (rb\_argv0)  
+  
G\_END\_DECLS

#endif

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [December 9, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/hey-all-heres-some-changes-for-compatibility-with-latest-ruby-1-9-1-preview-2/154718/2 "2008-12-09T13:56:02Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] Hey all, here’s some changes for compatibility  
with latest Ruby 1.9.1 preview 2” on Wed, 3 Dec 2008 04:45:09 -0300,  
“Joao P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> static GHashTable\* dynamic\_gtype\_list;  
> I don’t know that we can just ignore rb\_thread\_critical. I’m  
> asking it in ruby-dev.

> G\_END\_DECLS
> 
> #endif

We should use rb\_argv0 directory instead of defining  
rb\_progname.  
I’ll do it (or apply a patch from someone 😉 later.

## Thanks,

kou
