Loading...
Searching...
No Matches
gtkutils.h
Go to the documentation of this file.
/* pidgin
*
* Pidgin is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#ifndef _PIDGINUTILS_H_
#define _PIDGINUTILS_H_
#include "gtkconv.h"
#include "pidgin.h"
#include "prpl.h"
#include "util.h"
typedef enum
{
PIDGIN_BUTTON_HORIZONTAL,
PIDGIN_BUTTON_VERTICAL
} PidginButtonOrientation;
typedef enum
{
PIDGIN_BUTTON_NONE = 0,
PIDGIN_BUTTON_TEXT,
PIDGIN_BUTTON_IMAGE,
PIDGIN_BUTTON_TEXT_IMAGE
} PidginButtonStyle;
typedef enum
{
PIDGIN_PRPL_ICON_SMALL,
PIDGIN_PRPL_ICON_MEDIUM,
PIDGIN_PRPL_ICON_LARGE
} PidginPrplIconSize;
#ifndef _WIN32
typedef enum
{
PIDGIN_BROWSER_DEFAULT = 0,
PIDGIN_BROWSER_CURRENT,
PIDGIN_BROWSER_NEW_WINDOW,
PIDGIN_BROWSER_NEW_TAB
} PidginBrowserPlace;
#endif /* _WIN32 */
typedef struct {
gboolean is_buddy;
union {
PurpleBuddy *buddy;
PurpleLogSet *logged_buddy;
} entry;
} PidginBuddyCompletionEntry;
typedef gboolean (*PidginFilterBuddyCompletionEntryFunc) (const PidginBuddyCompletionEntry *completion_entry, gpointer user_data);
void pidgin_setup_imhtml(GtkWidget *imhtml);
GtkWidget *pidgin_create_imhtml(gboolean editable, GtkWidget **imhtml_ret, GtkWidget **toolbar_ret, GtkWidget **sw_ret);
GtkWidget *pidgin_create_small_button(GtkWidget *image);
GtkWidget *pidgin_create_window(const char *title, guint border_width, const char *role, gboolean resizable);
GtkWidget *pidgin_create_dialog(const char *title, guint border_width, const char *role, gboolean resizable);
GtkWidget *pidgin_dialog_get_vbox_with_properties(GtkDialog *dialog, gboolean homogeneous, gint spacing);
GtkWidget *pidgin_dialog_get_vbox(GtkDialog *dialog);
GtkWidget *pidgin_dialog_add_button(GtkDialog *dialog, const char *label,
GCallback callback, gpointer callbackdata);
GtkWidget *pidgin_dialog_get_action_area(GtkDialog *dialog);
void pidgin_toggle_sensitive(GtkWidget *widget, GtkWidget *to_toggle);
void pidgin_set_sensitive_if_input(GtkWidget *entry, GtkWidget *dialog);
void pidgin_toggle_sensitive_array(GtkWidget *w, GPtrArray *data);
void pidgin_toggle_showhide(GtkWidget *widget, GtkWidget *to_toggle);
GtkWidget *pidgin_separator(GtkWidget *menu);
GtkWidget *pidgin_new_item(GtkWidget *menu, const char *str);
GtkWidget *pidgin_new_check_item(GtkWidget *menu, const char *str,
GCallback cb, gpointer data, gboolean checked);
GtkWidget *pidgin_new_item_from_stock(GtkWidget *menu, const char *str,
const char *icon, GCallback cb,
gpointer data, guint accel_key,
guint accel_mods, char *mod);
GtkWidget *pidgin_pixbuf_button_from_stock(const char *text, const char *icon,
PidginButtonOrientation style);
GtkWidget *pidgin_pixbuf_toolbar_button_from_stock(const char *stock);
GtkWidget *pidgin_make_frame(GtkWidget *parent, const char *title);
GtkWidget *pidgin_protocol_option_menu_new(const char *id,
GCallback cb,
gpointer user_data);
const char *pidgin_protocol_option_menu_get_selected(GtkWidget *optmenu);
GtkWidget *pidgin_account_option_menu_new(PurpleAccount *default_account,
gboolean show_all, GCallback cb,
PurpleFilterAccountFunc filter_func, gpointer user_data);
PurpleAccount *pidgin_account_option_menu_get_selected(GtkWidget *optmenu);
void pidgin_account_option_menu_set_selected(GtkWidget *optmenu, PurpleAccount *account);
void pidgin_setup_screenname_autocomplete_with_filter(GtkWidget *entry, GtkWidget *optmenu, PidginFilterBuddyCompletionEntryFunc filter_func, gpointer user_data);
gboolean pidgin_screenname_autocomplete_default_filter(const PidginBuddyCompletionEntry *completion_entry, gpointer all_accounts);
void pidgin_setup_screenname_autocomplete(GtkWidget *entry, GtkWidget *optmenu, gboolean all);
gboolean pidgin_check_if_dir(const char *path, GtkFileSelection *filesel);
void pidgin_setup_gtkspell(GtkTextView *textview);
void pidgin_save_accels_cb(GtkAccelGroup *accel_group, guint arg1,
GdkModifierType arg2, GClosure *arg3,
gpointer data);
gboolean pidgin_save_accels(gpointer data);
void pidgin_load_accels(void);
void pidgin_retrieve_user_info(PurpleConnection *conn, const char *name);
void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chatid);
gboolean pidgin_parse_x_im_contact(const char *msg, gboolean all_accounts,
PurpleAccount **ret_account,
char **ret_protocol, char **ret_username,
char **ret_alias);
void pidgin_set_accessible_label(GtkWidget *w, GtkWidget *l);
void pidgin_set_accessible_relations(GtkWidget *w, GtkWidget *l);
void pidgin_menu_position_func_helper(GtkMenu *menu, gint *x, gint *y,
gboolean *push_in, gpointer data);
void pidgin_treeview_popup_menu_position_func(GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
gpointer user_data);
void pidgin_dnd_file_manage(GtkSelectionData *sd, PurpleAccount *account, const char *who);
void pidgin_buddy_icon_get_scale_size(GdkPixbuf *buf, PurpleBuddyIconSpec *spec, PurpleIconScaleRules rules, int *width, int *height);
GdkPixbuf *pidgin_create_prpl_icon(PurpleAccount *account, PidginPrplIconSize size);
GdkPixbuf * pidgin_create_status_icon(PurpleStatusPrimitive primitive, GtkWidget *w, const char *size);
const char *pidgin_stock_id_from_status_primitive(PurpleStatusPrimitive prim);
const char *pidgin_stock_id_from_presence(PurplePresence *presence);
GtkWidget *pidgin_append_menu_action(GtkWidget *menu, PurpleMenuAction *act,
gpointer gobject);
void pidgin_set_cursor(GtkWidget *widget, GdkCursorType cursor_type);
void pidgin_clear_cursor(GtkWidget *widget);
GtkWidget *pidgin_buddy_icon_chooser_new(GtkWindow *parent, void(*callback)(const char*,gpointer), gpointer data);
gpointer pidgin_convert_buddy_icon(PurplePlugin *plugin, const char *path, size_t *len);
#if !(defined PIDGIN_DISABLE_DEPRECATED) || (defined _PIDGIN_GTKUTILS_C_)
void pidgin_set_custom_buddy_icon(PurpleAccount *account, const char *who, const char *filename);
#endif
char *pidgin_make_pretty_arrows(const char *str);
typedef void (*PidginUtilMiniDialogCallback)(gpointer user_data, GtkButton *);
GtkWidget *pidgin_make_mini_dialog(PurpleConnection *handle,
const char* stock_id, const char *primary, const char *secondary,
void *user_data, ...) G_GNUC_NULL_TERMINATED;
GtkWidget *pidgin_make_mini_dialog_with_custom_icon(PurpleConnection *gc,
GdkPixbuf *custom_icon,
const char *primary,
const char *secondary,
void *user_data,
...) G_GNUC_NULL_TERMINATED;
gboolean pidgin_tree_view_search_equal_func(GtkTreeModel *model, gint column,
const gchar *key, GtkTreeIter *iter, gpointer data);
void pidgin_set_urgent(GtkWindow *window, gboolean urgent);
gboolean pidgin_gdk_pixbuf_is_opaque(GdkPixbuf *pixbuf);
void pidgin_gdk_pixbuf_make_round(GdkPixbuf *pixbuf);
const char *pidgin_get_dim_grey_string(GtkWidget *widget);
GtkWidget *pidgin_text_combo_box_entry_new(const char *default_item, GList *items);
const char *pidgin_text_combo_box_entry_get_text(GtkWidget *widget);
void pidgin_text_combo_box_entry_set_text(GtkWidget *widget, const char *text);
gboolean pidgin_auto_parent_window(GtkWidget *window);
GtkWidget *pidgin_add_widget_to_vbox(GtkBox *vbox, const char *widget_label, GtkSizeGroup *sg, GtkWidget *widget, gboolean expand, GtkWidget **p_label);
GdkPixbuf *pidgin_pixbuf_from_data(const guchar *buf, gsize count);
GdkPixbufAnimation *pidgin_pixbuf_anim_from_data(const guchar *buf, gsize count);
GdkPixbuf *pidgin_pixbuf_from_imgstore(PurpleStoredImage *image);
GdkPixbuf *pidgin_pixbuf_new_from_file(const char *filename);
GdkPixbuf *pidgin_pixbuf_new_from_file_at_size(const char *filename, int width, int height);
GdkPixbuf *pidgin_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, gboolean preserve_aspect_ratio);
GtkWidget *pidgin_make_scrollable(GtkWidget *child, GtkPolicyType hscrollbar_policy, GtkPolicyType vscrollbar_policy, GtkShadowType shadow_type, int width, int height);
void pidgin_utils_init(void);
void pidgin_utils_uninit(void);
#endif /* _PIDGINUTILS_H_ */
PurpleAccount
struct _PurpleAccount PurpleAccount
Structure representing an account.
Definition account.h:38
PurpleBuddy
struct _PurpleBuddy PurpleBuddy
A buddy.
Definition blist.h:48
PurpleConnection
struct _PurpleConnection PurpleConnection
Definition connection.h:31
gtkconv.h
GTK+ Conversation API.
pidgin_load_accels
void pidgin_load_accels(void)
Load menu accelerators.
pidgin_gdk_pixbuf_make_round
void pidgin_gdk_pixbuf_make_round(GdkPixbuf *pixbuf)
Rounds the corners of a 32x32 GdkPixbuf in place.
pidgin_set_accessible_label
void pidgin_set_accessible_label(GtkWidget *w, GtkWidget *l)
Sets an ATK name for a given widget.
pidgin_text_combo_box_entry_new
GtkWidget * pidgin_text_combo_box_entry_new(const char *default_item, GList *items)
Create a simple text GtkComboBoxEntry equivalent.
pidgin_stock_id_from_presence
const char * pidgin_stock_id_from_presence(PurplePresence *presence)
Returns an appropriate stock-id for a PurplePresence.
pidgin_toggle_showhide
void pidgin_toggle_showhide(GtkWidget *widget, GtkWidget *to_toggle)
Toggles the visibility of a widget.
pidgin_set_cursor
void pidgin_set_cursor(GtkWidget *widget, GdkCursorType cursor_type)
Sets the mouse pointer for a GtkWidget.
pidgin_dialog_get_vbox_with_properties
GtkWidget * pidgin_dialog_get_vbox_with_properties(GtkDialog *dialog, gboolean homogeneous, gint spacing)
Retrieves the main content box (vbox) from a pidgin dialog window.
pidgin_pixbuf_from_imgstore
GdkPixbuf * pidgin_pixbuf_from_imgstore(PurpleStoredImage *image)
Create a GdkPixbuf from a PurpleStoredImage.
pidgin_make_mini_dialog
GtkWidget * pidgin_make_mini_dialog(PurpleConnection *handle, const char *stock_id, const char *primary, const char *secondary, void *user_data,...) G_GNUC_NULL_TERMINATED
Creates a PidginMiniDialog, tied to a PurpleConnection, suitable for embedding in the buddy list scro...
pidgin_get_dim_grey_string
const char * pidgin_get_dim_grey_string(GtkWidget *widget)
Returns an HTML-style color string for use as a dim grey string.
pidgin_toggle_sensitive
void pidgin_toggle_sensitive(GtkWidget *widget, GtkWidget *to_toggle)
Toggles the sensitivity of a widget.
pidgin_create_small_button
GtkWidget * pidgin_create_small_button(GtkWidget *image)
Creates a small button.
pidgin_set_accessible_relations
void pidgin_set_accessible_relations(GtkWidget *w, GtkWidget *l)
Sets the labelled-by and label-for ATK relationships.
pidgin_protocol_option_menu_new
GtkWidget * pidgin_protocol_option_menu_new(const char *id, GCallback cb, gpointer user_data)
Creates a drop-down option menu filled with protocols.
pidgin_gdk_pixbuf_is_opaque
gboolean pidgin_gdk_pixbuf_is_opaque(GdkPixbuf *pixbuf)
Returns TRUE if the GdkPixbuf is opaque, as determined by no alpha at any of the edge pixels.
pidgin_buddy_icon_chooser_new
GtkWidget * pidgin_buddy_icon_chooser_new(GtkWindow *parent, void(*callback)(const char *, gpointer), gpointer data)
Creates a File Selection widget for choosing a buddy icon.
pidgin_create_imhtml
GtkWidget * pidgin_create_imhtml(gboolean editable, GtkWidget **imhtml_ret, GtkWidget **toolbar_ret, GtkWidget **sw_ret)
Create an GtkIMHtml widget and associated GtkIMHtmlToolbar widget.
pidgin_check_if_dir
gboolean pidgin_check_if_dir(const char *path, GtkFileSelection *filesel)
Check if the given path is a directory or not.
pidgin_treeview_popup_menu_position_func
void pidgin_treeview_popup_menu_position_func(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer user_data)
A valid GtkMenuPositionFunc.
pidgin_clear_cursor
void pidgin_clear_cursor(GtkWidget *widget)
Sets the mouse point for a GtkWidget back to that of its parent window.
pidgin_account_option_menu_set_selected
void pidgin_account_option_menu_set_selected(GtkWidget *optmenu, PurpleAccount *account)
Sets the currently selected account for an account drop down box.
pidgin_new_check_item
GtkWidget * pidgin_new_check_item(GtkWidget *menu, const char *str, GCallback cb, gpointer data, gboolean checked)
Creates a check menu item.
pidgin_parse_x_im_contact
gboolean pidgin_parse_x_im_contact(const char *msg, gboolean all_accounts, PurpleAccount **ret_account, char **ret_protocol, char **ret_username, char **ret_alias)
Parses an application/x-im-contact MIME message and returns the data inside.
pidgin_toggle_sensitive_array
void pidgin_toggle_sensitive_array(GtkWidget *w, GPtrArray *data)
Toggles the sensitivity of all widgets in a pointer array.
pidgin_pixbuf_new_from_file_at_scale
GdkPixbuf * pidgin_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, gboolean preserve_aspect_ratio)
Helper function that calls gdk_pixbuf_new_from_file_at_scale() and checks both the return code and th...
pidgin_set_sensitive_if_input
void pidgin_set_sensitive_if_input(GtkWidget *entry, GtkWidget *dialog)
Checks if text has been entered into a GtkTextEntry widget.
pidgin_save_accels
gboolean pidgin_save_accels(gpointer data)
Save menu accelerators.
pidgin_utils_init
void pidgin_utils_init(void)
Initialize some utility functions.
pidgin_set_custom_buddy_icon
void pidgin_set_custom_buddy_icon(PurpleAccount *account, const char *who, const char *filename)
Set or unset a custom buddyicon for a user.
pidgin_protocol_option_menu_get_selected
const char * pidgin_protocol_option_menu_get_selected(GtkWidget *optmenu)
Gets the currently selected protocol from a protocol drop down box.
pidgin_pixbuf_new_from_file_at_size
GdkPixbuf * pidgin_pixbuf_new_from_file_at_size(const char *filename, int width, int height)
Helper function that calls gdk_pixbuf_new_from_file_at_size() and checks both the return code and the...
pidgin_account_option_menu_new
GtkWidget * pidgin_account_option_menu_new(PurpleAccount *default_account, gboolean show_all, GCallback cb, PurpleFilterAccountFunc filter_func, gpointer user_data)
Creates a drop-down option menu filled with accounts.
pidgin_append_menu_action
GtkWidget * pidgin_append_menu_action(GtkWidget *menu, PurpleMenuAction *act, gpointer gobject)
Append a PurpleMenuAction to a menu.
pidgin_add_widget_to_vbox
GtkWidget * pidgin_add_widget_to_vbox(GtkBox *vbox, const char *widget_label, GtkSizeGroup *sg, GtkWidget *widget, gboolean expand, GtkWidget **p_label)
Add a labelled widget to a GtkVBox.
pidgin_dialog_get_action_area
GtkWidget * pidgin_dialog_get_action_area(GtkDialog *dialog)
Retrieves the action area (button box) from a pidgin dialog window.
pidgin_set_urgent
void pidgin_set_urgent(GtkWindow *window, gboolean urgent)
Sets or resets a window to 'urgent,' by setting the URGENT hint in X or blinking in the win32 taskbar...
pidgin_account_option_menu_get_selected
PurpleAccount * pidgin_account_option_menu_get_selected(GtkWidget *optmenu)
Gets the currently selected account from an account drop down box.
pidgin_pixbuf_toolbar_button_from_stock
GtkWidget * pidgin_pixbuf_toolbar_button_from_stock(const char *stock)
Creates a toolbar button with the stock icon.
pidgin_make_pretty_arrows
char * pidgin_make_pretty_arrows(const char *str)
Converts "->" and "<-" in strings to Unicode arrow characters, for use in referencing menu items.
pidgin_create_dialog
GtkWidget * pidgin_create_dialog(const char *title, guint border_width, const char *role, gboolean resizable)
Creates a new dialog window.
pidgin_retrieve_user_info
void pidgin_retrieve_user_info(PurpleConnection *conn, const char *name)
Get information about a user.
pidgin_screenname_autocomplete_default_filter
gboolean pidgin_screenname_autocomplete_default_filter(const PidginBuddyCompletionEntry *completion_entry, gpointer all_accounts)
The default filter function for username autocomplete.
pidgin_tree_view_search_equal_func
gboolean pidgin_tree_view_search_equal_func(GtkTreeModel *model, gint column, const gchar *key, GtkTreeIter *iter, gpointer data)
This is a callback function to be used for Ctrl+F searching in treeviews.
pidgin_make_frame
GtkWidget * pidgin_make_frame(GtkWidget *parent, const char *title)
Creates a HIG preferences frame.
PidginUtilMiniDialogCallback
void(* PidginUtilMiniDialogCallback)(gpointer user_data, GtkButton *)
The type of callbacks passed to pidgin_make_mini_dialog().
Definition gtkutils.h:689
pidgin_dialog_get_vbox
GtkWidget * pidgin_dialog_get_vbox(GtkDialog *dialog)
Retrieves the main content box (vbox) from a pidgin dialog window.
pidgin_menu_position_func_helper
void pidgin_menu_position_func_helper(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer data)
A helper function for GtkMenuPositionFuncs.
pidgin_setup_imhtml
void pidgin_setup_imhtml(GtkWidget *imhtml)
Sets up a gtkimhtml widget, loads it with smileys, and sets the default signal handlers.
pidgin_create_prpl_icon
GdkPixbuf * pidgin_create_prpl_icon(PurpleAccount *account, PidginPrplIconSize size)
Returns the base image to represent the account, based on the currently selected theme.
pidgin_dnd_file_manage
void pidgin_dnd_file_manage(GtkSelectionData *sd, PurpleAccount *account, const char *who)
Manages drag'n'drop of files.
pidgin_dialog_add_button
GtkWidget * pidgin_dialog_add_button(GtkDialog *dialog, const char *label, GCallback callback, gpointer callbackdata)
Add a button to a dialog created by pidgin_create_dialog.
pidgin_pixbuf_new_from_file
GdkPixbuf * pidgin_pixbuf_new_from_file(const char *filename)
Helper function that calls gdk_pixbuf_new_from_file() and checks both the return code and the GError ...
pidgin_convert_buddy_icon
gpointer pidgin_convert_buddy_icon(PurplePlugin *plugin, const char *path, size_t *len)
Converts a buddy icon to the required size and format.
pidgin_pixbuf_anim_from_data
GdkPixbufAnimation * pidgin_pixbuf_anim_from_data(const guchar *buf, gsize count)
Create a GdkPixbufAnimation from a chunk of image data.
pidgin_text_combo_box_entry_set_text
void pidgin_text_combo_box_entry_set_text(GtkWidget *widget, const char *text)
Set the text in the entry of the simple text GtkComboBoxEntry equivalent.
pidgin_buddy_icon_get_scale_size
void pidgin_buddy_icon_get_scale_size(GdkPixbuf *buf, PurpleBuddyIconSpec *spec, PurpleIconScaleRules rules, int *width, int *height)
Convenience wrapper for purple_buddy_icon_get_scale_size.
pidgin_utils_uninit
void pidgin_utils_uninit(void)
Uninitialize some utility functions.
pidgin_auto_parent_window
gboolean pidgin_auto_parent_window(GtkWidget *window)
Automatically make a window transient to a suitable parent window.
pidgin_stock_id_from_status_primitive
const char * pidgin_stock_id_from_status_primitive(PurpleStatusPrimitive prim)
Returns an appropriate stock-id for a status primitive.
pidgin_make_mini_dialog_with_custom_icon
GtkWidget * pidgin_make_mini_dialog_with_custom_icon(PurpleConnection *gc, GdkPixbuf *custom_icon, const char *primary, const char *secondary, void *user_data,...) G_GNUC_NULL_TERMINATED
Does exactly what pidgin_make_mini_dialog() does, except you can specify a custom icon for the dialog...
pidgin_create_status_icon
GdkPixbuf * pidgin_create_status_icon(PurpleStatusPrimitive primitive, GtkWidget *w, const char *size)
Creates a status icon for a given primitve.
pidgin_setup_screenname_autocomplete_with_filter
void pidgin_setup_screenname_autocomplete_with_filter(GtkWidget *entry, GtkWidget *optmenu, PidginFilterBuddyCompletionEntryFunc filter_func, gpointer user_data)
Add autocompletion of screenames to an entry, supporting a filtering function.
pidgin_setup_gtkspell
void pidgin_setup_gtkspell(GtkTextView *textview)
Sets up GtkSpell for the given GtkTextView, reporting errors if encountered.
pidgin_make_scrollable
GtkWidget * pidgin_make_scrollable(GtkWidget *child, GtkPolicyType hscrollbar_policy, GtkPolicyType vscrollbar_policy, GtkShadowType shadow_type, int width, int height)
Add scrollbars to a widget.
pidgin_retrieve_user_info_in_chat
void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chatid)
Get information about a user in a chat.
pidgin_text_combo_box_entry_get_text
const char * pidgin_text_combo_box_entry_get_text(GtkWidget *widget)
Retrieve the text from the entry of the simple text GtkComboBoxEntry equivalent.
pidgin_pixbuf_button_from_stock
GtkWidget * pidgin_pixbuf_button_from_stock(const char *text, const char *icon, PidginButtonOrientation style)
Creates a button with the specified text and stock icon.
pidgin_separator
GtkWidget * pidgin_separator(GtkWidget *menu)
Adds a separator to a menu.
pidgin_create_window
GtkWidget * pidgin_create_window(const char *title, guint border_width, const char *role, gboolean resizable)
Creates a new window.
pidgin_save_accels_cb
void pidgin_save_accels_cb(GtkAccelGroup *accel_group, guint arg1, GdkModifierType arg2, GClosure *arg3, gpointer data)
Save menu accelerators callback.
pidgin_setup_screenname_autocomplete
void pidgin_setup_screenname_autocomplete(GtkWidget *entry, GtkWidget *optmenu, gboolean all)
Add autocompletion of screenames to an entry.
pidgin_pixbuf_from_data
GdkPixbuf * pidgin_pixbuf_from_data(const guchar *buf, gsize count)
Create a GdkPixbuf from a chunk of image data.
pidgin_new_item
GtkWidget * pidgin_new_item(GtkWidget *menu, const char *str)
Creates a menu item.
pidgin_new_item_from_stock
GtkWidget * pidgin_new_item_from_stock(GtkWidget *menu, const char *str, const char *icon, GCallback cb, gpointer data, guint accel_key, guint accel_mods, char *mod)
Creates a menu item.
PurpleStoredImage
struct _PurpleStoredImage PurpleStoredImage
A set of utility functions that provide a reference-counted immutable wrapper around an image's data ...
Definition imgstore.h:37
pidgin.h
UI definitions and includes.
PurplePlugin
struct _PurplePlugin PurplePlugin
A plugin handle.
Definition plugin.h:38
prpl.h
Protocol Plugin functions.
PurpleIconScaleRules
PurpleIconScaleRules
Definition prpl.h:41
PurpleBuddyIconSpec
struct _PurpleBuddyIconSpec PurpleBuddyIconSpec
A description of a Buddy Icon specification.
Definition prpl.h:52
PurpleStatusPrimitive
PurpleStatusPrimitive
A primitive defining the basic structure of a status type.
Definition status.h:118
PidginBuddyCompletionEntry
Definition gtkutils.h:72
util.h
Utility Functions.
PurpleMenuAction
struct _PurpleMenuAction PurpleMenuAction
Definition util.h:40