summaryrefslogtreecommitdiff
path: root/src/gui/gui-buffer.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-05 13:18:03 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-05 13:18:03 +0200
commitd27c459c1df88400f64311eedb30c5035d6334b9 (patch)
tree067f8011817e18c57deb47132d245f54654b6724 /src/gui/gui-buffer.h
parent02532973e9f30b8086ddad2d2f5f4d655ec03202 (diff)
downloadweechat-d27c459c1df88400f64311eedb30c5035d6334b9.zip
core: fix bugs with automatic layout (bug #26110), add support of merged buffers in layout (task #10893)
Diffstat (limited to 'src/gui/gui-buffer.h')
-rw-r--r--src/gui/gui-buffer.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h
index 312388aa5..97acff1c0 100644
--- a/src/gui/gui-buffer.h
+++ b/src/gui/gui-buffer.h
@@ -80,10 +80,8 @@ struct t_gui_buffer
struct t_gui_buffer *merge_for_upgrade;
int number; /* buffer number (first is 1) */
- int layout_number; /* the number of buffer saved in */
- /* layout */
- int layout_applied; /* used when applying layout, to */
- /* know if layout has been applied */
+ int layout_number; /* number of buffer saved in layout */
+ int layout_number_merge_order; /* order in merge for layout */
char *name; /* buffer name */
char *short_name; /* short buffer name */
enum t_gui_buffer_type type; /* buffer type (formatted, free, ..) */
@@ -264,6 +262,8 @@ extern struct t_gui_buffer *gui_buffer_search_by_full_name (const char *full_nam
extern struct t_gui_buffer *gui_buffer_search_by_partial_name (const char *plugin,
const char *name);
extern struct t_gui_buffer *gui_buffer_search_by_number (int number);
+extern struct t_gui_buffer *gui_buffer_search_by_layout_number (int layout_number,
+ int layout_number_merge_order);
extern int gui_buffer_count_merged_buffers (int number);
extern int gui_buffer_is_scrolled (struct t_gui_buffer *buffer);
extern void gui_buffer_clear (struct t_gui_buffer *buffer);
@@ -279,6 +279,7 @@ extern void gui_buffer_merge (struct t_gui_buffer *buffer,
struct t_gui_buffer *target_buffer);
extern void gui_buffer_unmerge (struct t_gui_buffer *buffer, int number);
extern void gui_buffer_unmerge_all ();
+extern void gui_buffer_sort_by_layout_number ();
extern void gui_buffer_undo_snap (struct t_gui_buffer *buffer);
extern void gui_buffer_undo_snap_free (struct t_gui_buffer *buffer);
extern void gui_buffer_undo_add (struct t_gui_buffer *buffer);