[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: [Kde-bindings] KDE/kdebindings/ruby/qtruby
From: Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date: 2009-11-12 15:14:29
Message-ID: 1258038869.885314.21243.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1048001 by rdale:
* Added a patch from 'Ruby Twiddler'. Qt::DBusInterface.call() didn't work
when the first argument is an enum. For example:
iface = Qt::DBusInterface.new(SERVICE_NAME, "", "",
Qt::DBusConnection.sessionBus)
msg = iface.call(Qt::DBus::BlockWithGui, "somemethod", param)
p msg # => nil
reply = Qt::DBusReply.new(msg) # => Error!
* Thanks to Twiddler for the patch
CCMAIL: kde-bindings@kde.org
CCBUGS: 208838
M +9 -0 ChangeLog
M +4 -0 src/lib/Qt/qtruby4.rb
--- trunk/KDE/kdebindings/ruby/qtruby/ChangeLog #1048000:1048001
@@ -40,7 +40,16 @@
(it is in Ruby 1.9)
* Thanks to Davor for the patch
+ * Added a patch from 'Ruby Twiddler'. Qt::DBusInterface.call() didn't work
+ when the first argument is an enum. For example:
+ iface = Qt::DBusInterface.new(SERVICE_NAME, "", "",
+ Qt::DBusConnection.sessionBus)
+ msg = iface.call(Qt::DBus::BlockWithGui, "somemethod", param)
+ p msg # => nil
+ reply = Qt::DBusReply.new(msg) # => Error!
+ * Thanks to Twiddler for the patch
+
2009-08-19 Richard Dale <richard.j.dale@gmail.com>
* Added a patch from Youhei Kondou to make the is_a? and kind_of? methods
use the C++ class ancestors obtained from the smoke libary
--- trunk/KDE/kdebindings/ruby/qtruby/src/lib/Qt/qtruby4.rb #1048000:1048001
@@ -723,6 +723,10 @@
def call(method_name, *args)
if args.length == 0
return super(method_name)
+ elsif method_name.is_a? Qt::Enum
+ opt = args.shift
+ qdbusArgs = args.collect {|arg| qVariantFromValue(arg)}
+ return super(method_name, opt, *qdbusArgs)
else
# If the method is Qt::DBusInterface.call(), create an Array
# 'dbusArgs' of Qt::Variants from '*args'
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic