Fix API function weechat_bar_set for python/lua/ruby (patch #6912)
parent
1c194ffa42
commit
4bd7eaf123
|
@ -1,9 +1,14 @@
|
|||
WeeChat ChangeLog
|
||||
=================
|
||||
FlashCode <flashcode@flashtux.org>
|
||||
v0.3.0, 2009-09-06
|
||||
v0.3.1-dev, 2009-09-11
|
||||
|
||||
|
||||
Version 0.3.1 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* api: fix function weechat_bar_set for python/lua/ruby (patch #6912)
|
||||
|
||||
Version 0.3.0 (2009-09-06)
|
||||
--------------------------
|
||||
|
||||
|
|
|
@ -5826,9 +5826,9 @@ weechat_lua_api_bar_set (lua_State *L)
|
|||
property = lua_tostring (lua_current_interpreter, -2);
|
||||
value = lua_tostring (lua_current_interpreter, -1);
|
||||
|
||||
weechat_buffer_set (script_str2ptr (bar),
|
||||
property,
|
||||
value);
|
||||
weechat_bar_set (script_str2ptr (bar),
|
||||
property,
|
||||
value);
|
||||
|
||||
LUA_RETURN_OK;
|
||||
}
|
||||
|
|
|
@ -5186,9 +5186,9 @@ weechat_python_api_bar_set (PyObject *self, PyObject *args)
|
|||
PYTHON_RETURN_ERROR;
|
||||
}
|
||||
|
||||
weechat_buffer_set (script_str2ptr (bar),
|
||||
property,
|
||||
value);
|
||||
weechat_bar_set (script_str2ptr (bar),
|
||||
property,
|
||||
value);
|
||||
|
||||
PYTHON_RETURN_OK;
|
||||
}
|
||||
|
|
|
@ -5993,9 +5993,9 @@ weechat_ruby_api_bar_set (VALUE class, VALUE bar, VALUE property, VALUE value)
|
|||
c_property = STR2CSTR (property);
|
||||
c_value = STR2CSTR (value);
|
||||
|
||||
weechat_buffer_set (script_str2ptr (c_bar),
|
||||
c_property,
|
||||
c_value);
|
||||
weechat_bar_set (script_str2ptr (c_bar),
|
||||
c_property,
|
||||
c_value);
|
||||
|
||||
RUBY_RETURN_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue