Re-indent.

This commit is contained in:
Glenn Y. Rolland 2015-08-10 17:00:41 +02:00
parent 9c1d1fdcda
commit c9d4c7138b

View file

@ -45,15 +45,19 @@ module Qasim
def dbus_notify title, body, icon def dbus_notify title, body, icon
bus = Qt::DBusConnection.sessionBus bus = Qt::DBusConnection.sessionBus
if !bus.connected? if !bus.connected?
$stderr.puts("Cannot connect to the D-BUS session bus.\n" \ $stderr.puts(
"Cannot connect to the D-BUS session bus.\n" \
"To start it, run:\n" \ "To start it, run:\n" \
"\teval `dbus-launch --auto-syntax`\n") "\teval `dbus-launch --auto-syntax`\n"
)
exit 1 exit 1
end end
msg = Qt::DBusMessage.create_method_call( 'org.freedesktop.Notifications', msg = Qt::DBusMessage.create_method_call(
'org.freedesktop.Notifications',
'/org/freedesktop/Notifications', '/org/freedesktop/Notifications',
'org.freedesktop.Notifications', 'org.freedesktop.Notifications',
'Notify' ) 'Notify'
)
msg.arguments = [ APP_NAME, Qt::Variant.from_value( 0, "unsigned int" ), msg.arguments = [ APP_NAME, Qt::Variant.from_value( 0, "unsigned int" ),
icon, title, body, [], {}, -1 ] icon, title, body, [], {}, -1 ]
rep = bus.call( msg ) rep = bus.call( msg )