diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-03-17 08:28:41 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-03-17 08:28:41 +0100 |
commit | 30e6acb00dc42afbeb8993ee766199b830335c04 (patch) | |
tree | fe825435d5bbc2a190959d569d304a14bb69e4ef /src/gui/gui-buffer.c | |
parent | e1e3109da3ecf6b81cb6c725f500c8c6e93192f4 (diff) | |
download | weechat-30e6acb00dc42afbeb8993ee766199b830335c04.zip |
core: add support of multiple layouts (task #11274)
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r-- | src/gui/gui-buffer.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 0dbeb0111..967881d64 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -460,7 +460,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin, new_buffer->plugin_name_for_upgrade = NULL; /* number will be set later (when inserting buffer in list) */ - gui_layout_buffer_get_number (gui_layout_buffers, + gui_layout_buffer_get_number (gui_layout_current, plugin_get_name (plugin), name, &(new_buffer->layout_number), @@ -578,11 +578,8 @@ gui_buffer_new (struct t_weechat_plugin *plugin, /* set notify level */ new_buffer->notify = gui_buffer_notify_get (new_buffer); - /* - * check if this buffer should be assigned to a window, - * according to windows layout saved - */ - gui_layout_window_check_buffer (new_buffer); + /* assign this buffer to windows of layout */ + gui_layout_window_assign_buffer (new_buffer); if (first_buffer_creation) { |