From a51a69134b8bdc94cfb4dcc1403e33cce24d34bc Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Tue, 30 Oct 2012 11:35:39 +0100 Subject: Nah, even more rebranding --- src/common/dbus/dbus-client.c | 2 +- src/common/dbus/dbus-client.h | 2 +- src/common/dbus/dbus-plugin.h | 4 ++-- src/common/dbus/example.py | 24 ++++++++++++------------ 4 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src/common/dbus') diff --git a/src/common/dbus/dbus-client.c b/src/common/dbus/dbus-client.c index 70b94b50..6ea8e45a 100644 --- a/src/common/dbus/dbus-client.c +++ b/src/common/dbus/dbus-client.c @@ -1,4 +1,4 @@ -/* dbus-client.c - XChat command-line options for D-Bus +/* dbus-client.c - HexChat command-line options for D-Bus * Copyright (C) 2006 Claessens Xavier * * This program is free software; you can redistribute it and/or modify diff --git a/src/common/dbus/dbus-client.h b/src/common/dbus/dbus-client.h index a689e978..0cd4336c 100644 --- a/src/common/dbus/dbus-client.h +++ b/src/common/dbus/dbus-client.h @@ -1,4 +1,4 @@ -/* dbus-client.h - XChat command-line options for D-Bus +/* dbus-client.h - HexChat command-line options for D-Bus * Copyright (C) 2006 Claessens Xavier * * This program is free software; you can redistribute it and/or modify diff --git a/src/common/dbus/dbus-plugin.h b/src/common/dbus/dbus-plugin.h index 49dded9c..05619d40 100644 --- a/src/common/dbus/dbus-plugin.h +++ b/src/common/dbus/dbus-plugin.h @@ -19,8 +19,8 @@ * xclaesse@gmail.com */ -#ifndef XCHAT_DBUS_PLUGIN_H -#define XCHAT_DBUS_PLUGIN_H +#ifndef HEXCHAT_DBUS_PLUGIN_H +#define HEXCHAT_DBUS_PLUGIN_H int dbus_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, diff --git a/src/common/dbus/example.py b/src/common/dbus/example.py index 01156806..49855784 100644 --- a/src/common/dbus/example.py +++ b/src/common/dbus/example.py @@ -10,19 +10,19 @@ path = remote.Connect ("example.py", "Example of a D-Bus client written in python", "1.0") proxy = bus.get_object('org.hexchat.service', path) -xchat = dbus.Interface(proxy, 'org.hexchat.plugin') +hexchat = dbus.Interface(proxy, 'org.hexchat.plugin') -channels = xchat.ListGet ("channels") -while xchat.ListNext (channels): - name = xchat.ListStr (channels, "channel") +channels = hexchat.ListGet ("channels") +while hexchat.ListNext (channels): + name = hexchat.ListStr (channels, "channel") print "------- " + name + " -------" - xchat.SetContext (xchat.ListInt (channels, "context")) - xchat.EmitPrint ("Channel Message", ["John", "Hi there", "@"]) - users = xchat.ListGet ("users") - while xchat.ListNext (users): - print "Nick: " + xchat.ListStr (users, "nick") - xchat.ListFree (users) -xchat.ListFree (channels) + hexchat.SetContext (hexchat.ListInt (channels, "context")) + hexchat.EmitPrint ("Channel Message", ["John", "Hi there", "@"]) + users = hexchat.ListGet ("users") + while hexchat.ListNext (users): + print "Nick: " + hexchat.ListStr (users, "nick") + hexchat.ListFree (users) +hexchat.ListFree (channels) -print xchat.Strip ("\00312Blue\003 \002Bold!\002", -1, 1|2) +print hexchat.Strip ("\00312Blue\003 \002Bold!\002", -1, 1|2) -- cgit 1.4.1