27#ifndef __PIDGIN_MINI_DIALOG_H__
28#define __PIDGIN_MINI_DIALOG_H__
30#include <glib-object.h>
35#define PIDGIN_TYPE_MINI_DIALOG pidgin_mini_dialog_get_type()
37#define PIDGIN_MINI_DIALOG(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
39 PIDGIN_TYPE_MINI_DIALOG, PidginMiniDialog))
41#define PIDGIN_MINI_DIALOG_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_CAST ((klass), \
43 PIDGIN_TYPE_MINI_DIALOG, PidginMiniDialogClass))
45#define PIDGIN_IS_MINI_DIALOG(obj) \
46 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
47 PIDGIN_TYPE_MINI_DIALOG))
49#define PIDGIN_IS_MINI_DIALOG_CLASS(klass) \
50 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
51 PIDGIN_TYPE_MINI_DIALOG))
53#define PIDGIN_MINI_DIALOG_GET_CLASS(obj) \
54 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
55 PIDGIN_TYPE_MINI_DIALOG, PidginMiniDialogClass))
92 GtkBoxClass parent_class;
94 void (*_purple_reserved1) (void);
95 void (*_purple_reserved2) (void);
96 void (*_purple_reserved3) (void);
97 void (*_purple_reserved4) (void);
108 GtkButton *button, gpointer user_data);
118 const gchar *description,
const gchar *icon_name);
125 const gchar *description, GdkPixbuf *custom_icon);
140 const char *description);
164 const char *icon_name);
171 GdkPixbuf *custom_icon);
void pidgin_mini_dialog_set_custom_icon(PidginMiniDialog *mini_dialog, GdkPixbuf *custom_icon)
Shortcut for setting a mini-dialog's custom icon via GObject properties.
void pidgin_mini_dialog_set_title(PidginMiniDialog *mini_dialog, const char *title)
Shortcut for setting a mini-dialog's title via GObject properties.
void pidgin_mini_dialog_add_non_closing_button(PidginMiniDialog *mini_dialog, const char *text, PidginMiniDialogCallback clicked_cb, gpointer user_data)
Equivalent to pidgin_mini_dialog_add_button(), the only difference is that the mini-dialog won't be c...
GType pidgin_mini_dialog_get_type(void)
Get the GType of PidginMiniDialog.
guint pidgin_mini_dialog_get_num_children(PidginMiniDialog *mini_dialog)
Gets the number of widgets packed into PidginMiniDialog.contents.
void(* PidginMiniDialogCallback)(PidginMiniDialog *mini_dialog, GtkButton *button, gpointer user_data)
The type of a callback triggered by a button in a mini-dialog being pressed.
gboolean pidgin_mini_dialog_links_supported(void)
Mini-dialogs support hyperlinks in their description (you should first call pidgin_mini_dialog_enable...
PidginMiniDialog * pidgin_mini_dialog_new(const gchar *title, const gchar *description, const gchar *icon_name)
Creates a new PidginMiniDialog with a stock icon.
void pidgin_mini_dialog_set_link_callback(PidginMiniDialog *mini_dialog, GCallback cb, gpointer user_data)
Sets a callback which gets invoked when a hyperlink in the dialog's description is clicked on.
void pidgin_mini_dialog_set_description(PidginMiniDialog *mini_dialog, const char *description)
Shortcut for setting a mini-dialog's description via GObject properties.
void pidgin_mini_dialog_set_icon_name(PidginMiniDialog *mini_dialog, const char *icon_name)
Shortcut for setting a mini-dialog's icon via GObject properties.
void pidgin_mini_dialog_add_button(PidginMiniDialog *mini_dialog, const char *text, PidginMiniDialogCallback clicked_cb, gpointer user_data)
Adds a new button to a mini-dialog, and attaches the supplied callback to its clicked signal.
void pidgin_mini_dialog_enable_description_markup(PidginMiniDialog *mini_dialog)
Enable GMarkup elements in the mini-dialog's description.
PidginMiniDialog * pidgin_mini_dialog_new_with_custom_icon(const gchar *title, const gchar *description, GdkPixbuf *custom_icon)
Creates a new PidginMiniDialog with a custom icon.
The class of PidginMiniDialog objects.
A widget resembling a diminutive dialog box, designed to be embedded in the PidginBuddyList.
GtkBox * contents
A GtkVBox into which extra widgets for the dialog should be packed.