summaryrefslogtreecommitdiff
path: root/src/plugins/weechat-plugin.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-11-29 16:08:55 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-11-29 16:08:55 +0100
commitbc00946a0da47dbc16cefbb915ae7f94b0ac3abf (patch)
tree011ad7fad54e5997a8c749ccc57ae214c8bfa28d /src/plugins/weechat-plugin.h
parent364aa00ab775f0dfdfad897f68bdbce2cfd71088 (diff)
downloadweechat-bc00946a0da47dbc16cefbb915ae7f94b0ac3abf.zip
Add current_window function in plugin API, add window functions in english developer guide
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r--src/plugins/weechat-plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index 551d55321..35d5c0439 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -930,7 +930,7 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
__close_callback, __close_callback_data)
#define weechat_buffer_search(__plugin, __name) \
weechat_plugin->buffer_search(__plugin, __name)
-#define weechat_current_buffer \
+#define weechat_current_buffer() \
weechat_plugin->buffer_search(NULL, NULL)
#define weechat_buffer_clear(__buffer) \
weechat_plugin->buffer_clear(__buffer)
@@ -956,7 +956,7 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
weechat_plugin->window_get_string(__window, __property)
#define weechat_window_get_pointer(__window, __property) \
weechat_plugin->window_get_pointer(__window, __property)
-#define weechat_current_window \
+#define weechat_current_window() \
weechat_plugin->window_get_pointer(NULL, "current")
/* nicklist */