summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-04-19 10:22:53 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-04-19 10:22:53 +0200
commitdf31147e162e9090c380dd76e86f4141f2868ba1 (patch)
tree1acbdec2d12b4070d5214f2fca60fde8772ec96a /src/gui
parent074f2dc778f1f75b2b95e66d1eecb2ca0d7e7f2c (diff)
downloadweechat-df31147e162e9090c380dd76e86f4141f2868ba1.zip
api: add "_chat_line" (line pointer) in hashtable of hook_focus
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-focus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/gui-focus.c b/src/gui/gui-focus.c
index 8442d1388..91606e4f1 100644
--- a/src/gui/gui-focus.c
+++ b/src/gui/gui-focus.c
@@ -225,6 +225,7 @@ gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key)
str_tags = string_build_with_split_string ((const char **)((focus_info->chat_line)->data)->tags_array, ",");
str_message = gui_color_decode (((focus_info->chat_line)->data)->message, NULL);
nick = gui_line_get_nick_tag (focus_info->chat_line);
+ FOCUS_PTR("_chat_line", focus_info->chat_line);
FOCUS_INT("_chat_line_x", focus_info->chat_line_x);
FOCUS_INT("_chat_line_y", ((focus_info->chat_line)->data)->y);
FOCUS_TIME("_chat_line_date", ((focus_info->chat_line)->data)->date);
@@ -245,6 +246,7 @@ gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key)
}
else
{
+ FOCUS_PTR("_chat_line", NULL);
FOCUS_STR("_chat_line_x", "-1");
FOCUS_STR("_chat_line_y", "-1");
FOCUS_STR("_chat_line_date", "-1");