diff options
author | Sadrul Habib Chowdhury <sadrul@pidgin.im> | 2008-01-05 10:43:25 +0000 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@pidgin.im> | 2008-01-05 10:43:25 +0000 |
commit | 82695a7c0dfc93e4b6fcd73abd50f563b18344f8 (patch) | |
tree | 1ced1226b21425b05bcb31fa7d8931e140d0abaf /pidgin/gtkutils.h | |
parent | 5772fca668463c0f7fd652a12127ceef759cd44e (diff) | |
download | pidgin-82695a7c0dfc93e4b6fcd73abd50f563b18344f8.tar.gz |
Remove a lot of duplication from a lot of places. Closes #4558.
Diffstat (limited to 'pidgin/gtkutils.h')
-rw-r--r-- | pidgin/gtkutils.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pidgin/gtkutils.h b/pidgin/gtkutils.h index 691c0a02af..16e6fbd3e8 100644 --- a/pidgin/gtkutils.h +++ b/pidgin/gtkutils.h @@ -794,5 +794,20 @@ void pidgin_text_combo_box_entry_set_text(GtkWidget *widget, const char *text); */ gboolean pidgin_auto_parent_window(GtkWidget *window); +/** + * Add a labelled widget to a GtkVBox + * + * @param vbox The GtkVBox to add the widget to. + * @param widget_label The label to give the widget. + * @param sg The GtkSizeGroup to add the label to. + * @param widget The GtkWidget to add + * @param expand Whether to expand the widget horizontally. + * @param p_label Place to store a pointer to the GtkLabel, or NULL if you don't care. + * + * @return A GtkHBox already added to the GtkVBox containing the GtkLabel and the GtkWidget. + * @since 2.4.0 + */ +GtkWidget *pidgin_add_widget_to_vbox(GtkBox *vbox, const char *widget_label, GtkSizeGroup *sg, GtkWidget *widget, gboolean expand, GtkWidget **p_label); + #endif /* _PIDGINUTILS_H_ */ |