Mageia Bugzilla – Attachment 4937 Details for
Bug 12609
Own signals not working with ruby 2.0.0 and qt4-ruby 4.11.4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to handle own signals
qtruby-4.11.4-custom-signals.diff (text/plain), 646 bytes, created by
Nicolas Salguero
on 2014-02-05 14:27:43 CET
(
hide
)
Description:
Patch to handle own signals
Filename:
MIME Type:
Creator:
Nicolas Salguero
Created:
2014-02-05 14:27:43 CET
Size:
646 bytes
patch
obsolete
>--- qtruby-4.11.4.orig/src/qtruby.cpp 2013-06-28 19:16:12.057325696 +0200 >+++ qtruby-4.11.4/src/qtruby.cpp 2014-01-07 19:22:11.000000000 +0100 >@@ -1398,11 +1391,14 @@ > return Qfalse; > } > >-#if RUBY_VERSION >= 0x10900 >+#if RUBY_VERSION >= 0x20000 >+ QLatin1String signalname(rb_id2name(rb_frame_this_func())); >+#elif RUBY_VERSION >= 0x10900 > QLatin1String signalname(rb_id2name(rb_frame_callee())); > #else > QLatin1String signalname(rb_id2name(rb_frame_last_func())); > #endif >+ > VALUE metaObject_value = rb_funcall(qt_internal_module, rb_intern("getMetaObject"), 2, Qnil, self); > > smokeruby_object *ometa = value_obj_info(metaObject_value);
--- qtruby-4.11.4.orig/src/qtruby.cpp 2013-06-28 19:16:12.057325696 +0200 +++ qtruby-4.11.4/src/qtruby.cpp 2014-01-07 19:22:11.000000000 +0100 @@ -1398,11 +1391,14 @@ return Qfalse; } -#if RUBY_VERSION >= 0x10900 +#if RUBY_VERSION >= 0x20000 + QLatin1String signalname(rb_id2name(rb_frame_this_func())); +#elif RUBY_VERSION >= 0x10900 QLatin1String signalname(rb_id2name(rb_frame_callee())); #else QLatin1String signalname(rb_id2name(rb_frame_last_func())); #endif + VALUE metaObject_value = rb_funcall(qt_internal_module, rb_intern("getMetaObject"), 2, Qnil, self); smokeruby_object *ometa = value_obj_info(metaObject_value);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12609
: 4937