| 91 * @return The GtkFrame containing the toolbar and imhtml. |
91 * @return The GtkFrame containing the toolbar and imhtml. |
| 92 */ |
92 */ |
| 93 GtkWidget *pidgin_create_imhtml(gboolean editable, GtkWidget **imhtml_ret, GtkWidget **toolbar_ret, GtkWidget **sw_ret); |
93 GtkWidget *pidgin_create_imhtml(gboolean editable, GtkWidget **imhtml_ret, GtkWidget **toolbar_ret, GtkWidget **sw_ret); |
| 94 |
94 |
| 95 /** |
95 /** |
| |
96 * Creates a new window |
| |
97 * |
| |
98 * @param title The window title, or @c NULL |
| |
99 * @param border_width The window's desired border width |
| |
100 * @param role A string indicating what the window is responsible for doing, or @c NULL |
| |
101 * @param resizable Whether the window should be resizable (@c TRUE) or not (@c FALSE) |
| |
102 * |
| |
103 * @since 2.1.0 |
| |
104 */ |
| |
105 GtkWidget *pidgin_create_window(const char *title, guint border_width, const char *role, gboolean resizable); |
| |
106 |
| |
107 /** |
| 96 * Toggles the sensitivity of a widget. |
108 * Toggles the sensitivity of a widget. |
| 97 * |
109 * |
| 98 * @param widget @c NULL. Used for signal handlers. |
110 * @param widget @c NULL. Used for signal handlers. |
| 99 * @param to_toggle The widget to toggle. |
111 * @param to_toggle The widget to toggle. |
| 100 */ |
112 */ |
| 128 |
140 |
| 129 /** |
141 /** |
| 130 * Adds a separator to a menu. |
142 * Adds a separator to a menu. |
| 131 * |
143 * |
| 132 * @param menu The menu to add a separator to. |
144 * @param menu The menu to add a separator to. |
| 133 */ |
145 * |
| 134 void pidgin_separator(GtkWidget *menu); |
146 * @return The separator. |
| |
147 */ |
| |
148 GtkWidget *pidgin_separator(GtkWidget *menu); |
| 135 |
149 |
| 136 /** |
150 /** |
| 137 * Creates a menu item. |
151 * Creates a menu item. |
| 138 * |
152 * |
| 139 * @param menu The menu to which to append the menu item. |
153 * @param menu The menu to which to append the menu item. |
| 305 * Load menu accelerators |
319 * Load menu accelerators |
| 306 */ |
320 */ |
| 307 void pidgin_load_accels(void); |
321 void pidgin_load_accels(void); |
| 308 |
322 |
| 309 /** |
323 /** |
| |
324 * Get information about a user. Show immediate feedback. |
| |
325 * |
| |
326 * @param conn The connection to get information from. |
| |
327 * @param name The user to get information about. |
| |
328 */ |
| |
329 void pidgin_retrieve_user_info(PurpleConnection *conn, const char *name); |
| |
330 |
| |
331 /** |
| |
332 * Get information about a user in a chat. Show immediate feedback. |
| |
333 * |
| |
334 * @param conn The connection to get information from. |
| |
335 * @param name The user to get information about. |
| |
336 * @param chatid The chat id. |
| |
337 */ |
| |
338 void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chatid); |
| |
339 |
| |
340 /** |
| 310 * Parses an application/x-im-contact MIME message and returns the |
341 * Parses an application/x-im-contact MIME message and returns the |
| 311 * data inside. |
342 * data inside. |
| 312 * |
343 * |
| 313 * @param msg The MIME message. |
344 * @param msg The MIME message. |
| 314 * @param all_accounts If TRUE, check all compatible accounts, online or |
345 * @param all_accounts If TRUE, check all compatible accounts, online or |
| 335 * @param l A GtkLabel that we want to use as the ATK name for the widget. |
366 * @param l A GtkLabel that we want to use as the ATK name for the widget. |
| 336 */ |
367 */ |
| 337 void pidgin_set_accessible_label(GtkWidget *w, GtkWidget *l); |
368 void pidgin_set_accessible_label(GtkWidget *w, GtkWidget *l); |
| 338 |
369 |
| 339 /** |
370 /** |
| 340 * A valid GtkMenuPositionFunc. This is used to determine where |
371 * A helper function for GtkMenuPositionFuncs. This ensures the menu will |
| 341 * to draw context menu's when the menu is activated with the |
372 * be kept on screen if possible. |
| 342 * keyboard (shift+F10). If the menu is activated with the mouse, |
|
| 343 * then you should just use GTK's built-in position function, |
|
| 344 * because it does a better job of positioning the menu. |
|
| 345 * |
373 * |
| 346 * @param menu The menu we are positioning. |
374 * @param menu The menu we are positioning. |
| 347 * @param x Address of the gint representing the horizontal position |
375 * @param x Address of the gint representing the horizontal position |
| 348 * where the menu shall be drawn. This is an output parameter. |
376 * where the menu shall be drawn. This is an output parameter. |
| 349 * @param y Address of the gint representing the vertical position |
377 * @param y Address of the gint representing the vertical position |
| 350 * where the menu shall be drawn. This is an output parameter. |
378 * where the menu shall be drawn. This is an output parameter. |
| 351 * @param push_in This is an output parameter? |
379 * @param push_in This is an output parameter? |
| 352 * @param user_data Not used by this particular position function. |
380 * @param user_data Not used by this particular position function. |
| 353 */ |
381 */ |
| |
382 void pidgin_menu_position_func_helper(GtkMenu *menu, gint *x, gint *y, |
| |
383 gboolean *push_in, gpointer data); |
| |
384 |
| |
385 /** |
| |
386 * A valid GtkMenuPositionFunc. This is used to determine where |
| |
387 * to draw context menu's when the menu is activated with the |
| |
388 * keyboard (shift+F10). If the menu is activated with the mouse, |
| |
389 * then you should just use GTK's built-in position function, |
| |
390 * because it does a better job of positioning the menu. |
| |
391 * |
| |
392 * @param menu The menu we are positioning. |
| |
393 * @param x Address of the gint representing the horizontal position |
| |
394 * where the menu shall be drawn. This is an output parameter. |
| |
395 * @param y Address of the gint representing the vertical position |
| |
396 * where the menu shall be drawn. This is an output parameter. |
| |
397 * @param push_in This is an output parameter? |
| |
398 * @param user_data Not used by this particular position function. |
| |
399 */ |
| 354 void pidgin_treeview_popup_menu_position_func(GtkMenu *menu, |
400 void pidgin_treeview_popup_menu_position_func(GtkMenu *menu, |
| 355 gint *x, |
401 gint *x, |
| 356 gint *y, |
402 gint *y, |
| 357 gboolean *push_in, |
403 gboolean *push_in, |
| 358 gpointer user_data); |
404 gpointer user_data); |
| 402 * Append a PurpleMenuAction to a menu. |
448 * Append a PurpleMenuAction to a menu. |
| 403 * |
449 * |
| 404 * @param menu The menu to append to. |
450 * @param menu The menu to append to. |
| 405 * @param act The PurpleMenuAction to append. |
451 * @param act The PurpleMenuAction to append. |
| 406 * @param gobject The object to be passed to the action callback. |
452 * @param gobject The object to be passed to the action callback. |
| 407 */ |
453 * |
| 408 void pidgin_append_menu_action(GtkWidget *menu, PurpleMenuAction *act, |
454 * @return The menuitem added. |
| |
455 */ |
| |
456 GtkWidget *pidgin_append_menu_action(GtkWidget *menu, PurpleMenuAction *act, |
| 409 gpointer gobject); |
457 gpointer gobject); |
| 410 |
458 |
| 411 /** |
459 /** |
| 412 * Sets the mouse pointer for a GtkWidget. |
460 * Sets the mouse pointer for a GtkWidget. |
| 413 * |
461 * |
| 524 * @param pixbuf The pixbug |
572 * @param pixbuf The pixbug |
| 525 * @return TRUE if the pixbuf is opaque around the edges, FALSE otherwise |
573 * @return TRUE if the pixbuf is opaque around the edges, FALSE otherwise |
| 526 */ |
574 */ |
| 527 gboolean pidgin_gdk_pixbuf_is_opaque(GdkPixbuf *pixbuf); |
575 gboolean pidgin_gdk_pixbuf_is_opaque(GdkPixbuf *pixbuf); |
| 528 |
576 |
| |
577 /** |
| |
578 * Rounds the corners of a 32x32 GdkPixbuf in place |
| |
579 * |
| |
580 * @param pixbuf The buddy icon to transform |
| |
581 */ |
| |
582 void pidgin_gdk_pixbuf_make_round(GdkPixbuf *pixbuf); |
| |
583 |
| |
584 /** |
| |
585 * Returns an HTML-style color string for use as a dim grey |
| |
586 * string |
| |
587 * |
| |
588 * @param widget The widget to return dim grey for |
| |
589 * @return The dim grey string |
| |
590 */ |
| |
591 const char *pidgin_get_dim_grey_string(GtkWidget *widget); |
| |
592 |
| 529 #if !GTK_CHECK_VERSION(2,2,0) |
593 #if !GTK_CHECK_VERSION(2,2,0) |
| 530 /** |
594 /** |
| 531 * This is copied from Gtk to support Gtk 2.0 |
595 * This is copied from Gtk to support Gtk 2.0 |
| 532 * |
596 * |
| 533 * Creates a new path with @a first_index and the varargs as indices. |
597 * Creates a new path with @a first_index and the varargs as indices. |