1 <?xml version='1.0' encoding="ISO-8859-1"?>
2 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
5 <chapter id="chapter-signals-gtkblist">
6 <title>Buddy List signals</title>
8 <refsect1 id="gtkblist.signals" role="signal_proto">
9 <title role="signal_proto.title">List of signals</title>
11 "<link linkend="gtkblist-gtkblist-hiding">gtkblist-hiding</link>"
12 "<link linkend="gtkblist-gtkblist-unhiding">gtkblist-unhiding</link>"
13 "<link linkend="gtkblist-gtkblist-created">gtkblist-created</link>"
14 "<link linkend="gtkblist-drawing-tooltip">drawing-tooltip</link>"
15 "<link linkend="gtkblist-drawing-buddy">drawing-buddy</link>"
19 <refsect1 id="gtkblist.signal-details" role="signals">
20 <title role="signals.title">Signal details</title>
22 <refsect2 id="gtkblist-gtkblist-hiding" role="signal">
23 <title>The <literal>"gtkblist-hiding"</literal> signal</title>
25 void user_function (PurpleBuddyList *blist,
29 Emitted when the buddy list is about to be hidden.
31 <variablelist role="params">
33 <term><parameter>blist</parameter> :</term>
34 <listitem><simpara>The buddy list.</simpara></listitem>
37 <term><parameter>user_data</parameter> :</term>
38 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
43 <refsect2 id="gtkblist-gtkblist-unhiding" role="signal">
44 <title>The <literal>"gtkblist-unhiding"</literal> signal</title>
46 void user_function (PurpleBuddyList *blist,
50 Emitted when the buddy list is about to be unhidden.
52 <variablelist role="params">
54 <term><parameter>blist</parameter> :</term>
55 <listitem><simpara>The buddy list.</simpara></listitem>
58 <term><parameter>user_data</parameter> :</term>
59 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
64 <refsect2 id="gtkblist-gtkblist-created" role="signal">
65 <title>The <literal>"gtkblist-created"</literal> signal</title>
67 void user_function (PurpleBuddyList *blist,
71 Emitted when the buddy list is created.
73 <variablelist role="params">
75 <term><parameter>blist</parameter> :</term>
76 <listitem><simpara>The buddy list.</simpara></listitem>
79 <term><parameter>user_data</parameter> :</term>
80 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
85 <refsect2 id="gtkblist-drawing-tooltip" role="signal">
86 <title>The <literal>"drawing-tooltip"</literal> signal</title>
88 void user_function (PurpleBlistNode *node,
94 Emitted just before a tooltip is displayed. <literal>text</literal> is a standard GString, so the plugin can modify the text that will be displayed.
97 Make sure to free <literal>*text</literal> before you replace it!
99 <variablelist role="params">
101 <term><parameter>node</parameter> :</term>
102 <listitem><simpara>The blist node for the tooltip.</simpara></listitem>
105 <term><parameter>text</parameter> :</term>
106 <listitem><simpara>A pointer to the text that will be displayed.</simpara></listitem>
109 <term><parameter>full</parameter> :</term>
110 <listitem><simpara>Whether we're doing a full tooltip for the priority buddy or a compact tooltip for a non-priority buddy.</simpara></listitem>
113 <term><parameter>user_data</parameter> :</term>
114 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
119 <refsect2 id="gtkblist-drawing-buddy" role="signal">
120 <title>The <literal>"drawing-buddy"</literal> signal</title>
122 char * user_function (PurpleBuddy *buddy,
126 Emitted to allow plugins to handle markup within a buddy's name or to override the default of no formatting for names shown in the buddy list.
128 <variablelist role="params">
130 <term><parameter>buddy</parameter> :</term>
131 <listitem><simpara>A pointer to the PurpleBuddy that will be displayed.</simpara></listitem>
134 <term><parameter>user_data</parameter> :</term>
135 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
138 <term><emphasis>Returns</emphasis> :</term>
139 <listitem><simpara>The text to display (must be allocated), or <literal>NULL</literal> if no changes to the default behavior are desired.</simpara></listitem>