pidgin/gtkutils.h

changeset 42462
f7f248098e8f
parent 42347
d768e30362a4
child 42464
5de142a471e0
equal deleted inserted replaced
42461:ff4dc54577f9 42462:f7f248098e8f
27 #define _PIDGINUTILS_H_ 27 #define _PIDGINUTILS_H_
28 28
29 #include <gtk/gtk.h> 29 #include <gtk/gtk.h>
30 30
31 #include <purple.h> 31 #include <purple.h>
32
33 #include "pidginversion.h"
32 34
33 typedef struct { 35 typedef struct {
34 gboolean is_buddy; 36 gboolean is_buddy;
35 PurpleBuddy *buddy; 37 PurpleBuddy *buddy;
36 } PidginBuddyCompletionEntry; 38 } PidginBuddyCompletionEntry;
84 * pidgin_retrieve_user_info: 86 * pidgin_retrieve_user_info:
85 * @conn: The connection to get information from. 87 * @conn: The connection to get information from.
86 * @name: The user to get information about. 88 * @name: The user to get information about.
87 * 89 *
88 * Get information about a user. Show immediate feedback. 90 * Get information about a user. Show immediate feedback.
91 *
92 * Since: 2.1.0
89 */ 93 */
94 PIDGIN_AVAILABLE_IN_2_1
90 void pidgin_retrieve_user_info(PurpleConnection *conn, const char *name); 95 void pidgin_retrieve_user_info(PurpleConnection *conn, const char *name);
91 96
92 /** 97 /**
93 * pidgin_retrieve_user_info_in_chat: 98 * pidgin_retrieve_user_info_in_chat:
94 * @conn: The connection to get information from. 99 * @conn: The connection to get information from.
95 * @name: The user to get information about. 100 * @name: The user to get information about.
96 * @chatid: The chat id. 101 * @chatid: The chat id.
97 * 102 *
98 * Get information about a user in a chat. Show immediate feedback. 103 * Get information about a user in a chat. Show immediate feedback.
104 *
105 * Since: 2.1.0
99 */ 106 */
107 PIDGIN_AVAILABLE_IN_2_1
100 void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chatid); 108 void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chatid);
101 109
102 /** 110 /**
103 * pidgin_set_accessible_label: 111 * pidgin_set_accessible_label:
104 * @w: The widget that we want to name. 112 * @w: The widget that we want to name.
127 * @window: The window to make transient. 135 * @window: The window to make transient.
128 * 136 *
129 * Automatically make a window transient to a suitable parent window. 137 * Automatically make a window transient to a suitable parent window.
130 * 138 *
131 * Returns: Whether the window was made transient or not. 139 * Returns: Whether the window was made transient or not.
140 *
141 * Since: 2.4.0
132 */ 142 */
143 PIDGIN_AVAILABLE_IN_2_4
133 gboolean pidgin_auto_parent_window(GtkWidget *window); 144 gboolean pidgin_auto_parent_window(GtkWidget *window);
134 145
135 /** 146 /**
136 * pidgin_add_widget_to_vbox: 147 * pidgin_add_widget_to_vbox:
137 * @vbox: The vertically-oriented GtkBox to add the widget to. 148 * @vbox: The vertically-oriented GtkBox to add the widget to.
142 * @p_label: Place to store a pointer to the GtkLabel, or %NULL if you don't care. 153 * @p_label: Place to store a pointer to the GtkLabel, or %NULL if you don't care.
143 * 154 *
144 * Add a labelled widget to a GtkBox 155 * Add a labelled widget to a GtkBox
145 * 156 *
146 * Returns: (transfer full): A GtkBox already added to the GtkBox containing the GtkLabel and the GtkWidget. 157 * Returns: (transfer full): A GtkBox already added to the GtkBox containing the GtkLabel and the GtkWidget.
158 *
159 * Since: 2.4.0
147 */ 160 */
161 PIDGIN_AVAILABLE_IN_2_4
148 GtkWidget *pidgin_add_widget_to_vbox(GtkBox *vbox, const char *widget_label, GtkSizeGroup *sg, GtkWidget *widget, gboolean expand, GtkWidget **p_label); 162 GtkWidget *pidgin_add_widget_to_vbox(GtkBox *vbox, const char *widget_label, GtkSizeGroup *sg, GtkWidget *widget, gboolean expand, GtkWidget **p_label);
149 163
150 G_END_DECLS 164 G_END_DECLS
151 165
152 #endif /* _PIDGINUTILS_H_ */ 166 #endif /* _PIDGINUTILS_H_ */

mercurial