Exemplo n.º 1
0
/**
 * dialog_vbox_labeled:
 * 	@labeltext:	#const gchar * The label text.
 * 	@box:			#GtkWidget * GtkBox the label is packed into.
 *  
 * 	Creates a GtkVBox and packs a new GtkLabel into it.
 *
 * Return value: #GtkWidget * The new GtkVBox widget.
 */
GtkWidget *
dialog_vbox_labeled(const gchar *labeltext, GtkWidget *box)
{
	GtkWidget *label;

	label = dialog_vbox_label_new(labeltext, 0, 0, box);
		
	return dialog_vbox_new(box);
}
Exemplo n.º 2
0
/**
 * dialog_vbox_labeled_checkbutton:
 * 	@labeltext:	  #const gchar * The label text.
 *  @checkbutton: #GtkWidget * GtkWidget that is the mnemonic target.
 * 	@box:		  #GtkWidget * GtkBox the new GtkVBox is packed into.
 *  
 * 	Creates a GtkVBox with a GtkCheckButton as it's label.
 *
 * Return value: #GtkWidget * The new GtkVBox widget.
 */
GtkWidget *
dialog_vbox_labeled_checkbutton(const gchar * labeltext, GtkWidget * checkbutton, GtkWidget * box)
{
	GtkWidget *label, *hbox;

	hbox = gtk_hbox_new(FALSE, 2);
	gtk_box_pack_start(GTK_BOX(hbox), checkbutton, FALSE, FALSE, 0);

	label = dialog_label_new(labeltext, 0, 0.5, hbox, 0);
	gtk_label_set_mnemonic_widget(GTK_LABEL(label), checkbutton);
	gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 0);

	return dialog_vbox_new(box);
}