im.pidgin.cpw.resiak.disconnectreason: 33d27986612eaed6ef244c24919bb3df0c1be876
resiak at soc.pidgin.im
resiak at soc.pidgin.im
Mon Nov 5 04:40:40 EST 2007
-----------------------------------------------------------------
Revision: 33d27986612eaed6ef244c24919bb3df0c1be876
Ancestor: b8377770fe2978cc7f25bbbbc9d32a0ca1c271b9
Author: resiak at soc.pidgin.im
Date: 2007-11-04T23:58:50
Branch: im.pidgin.cpw.resiak.disconnectreason
Modified files:
pidgin/minidialog.c pidgin/minidialog.h
ChangeLog:
Add pidgin_mini_dialog_get_num_children(), a convenient way to check how many
widgets you have added to a PidginMiniDialog.
-------------- next part --------------
============================================================
--- pidgin/minidialog.c 684d434b20dfac1b992e80f7e5f684413867a805
+++ pidgin/minidialog.c 01ecc8409e7319b6f68ba93e48d9bdd0fe9a0986
@@ -99,6 +99,12 @@ struct _mini_dialog_button_clicked_cb_da
gpointer user_data;
};
+guint
+pidgin_mini_dialog_get_num_children(PidginMiniDialog *mini_dialog)
+{
+ return g_list_length(mini_dialog->contents->children);
+}
+
static gboolean
idle_destroy_cb(GtkWidget *mini_dialog)
{
============================================================
--- pidgin/minidialog.h 6c1ae35fe3f64cf03baebe9172f9099df956bcfa
+++ pidgin/minidialog.h 09af17f9fcca702a2a31034759d93f4a77cf1c5c
@@ -151,6 +151,12 @@ void pidgin_mini_dialog_add_button(Pidgi
const char *text, PidginMiniDialogCallback clicked_cb,
gpointer user_data);
+/** Gets the number of widgets packed into PidginMiniDialog.contents.
+ * @param mini_dialog a mini-dialog
+ * @return the number of widgets in @a mini_dialog->contents.
+ */
+guint pidgin_mini_dialog_get_num_children(PidginMiniDialog *mini_dialog);
+
G_END_DECLS
#endif /* __PIDGIN_MINI_DIALOG_H__ */
More information about the Commits
mailing list