Label widget
- From: jhonan jolt mpx com au (Jamie Honan)
- To: gtk-list redhat com
- Subject: Label widget
- Date: Wed, 21 May 1997 08:12:17 +1000 (EST)
Someone asked about using a Label on it's own.
I haven't tried this but surely you can use a label widget
in a container...
This from gtklistitem.c ....
GtkWidget*
gtk_list_item_new_with_label (gchar *label)
{
GtkWidget *list_item;
GtkWidget *label_widget;
list_item = gtk_list_item_new ();
label_widget = gtk_label_new (label);
gtk_misc_set_alignment (GTK_MISC (label_widget), 0.0, 0.5);
gtk_container_add (GTK_CONTAINER (list_item), label_widget);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gtk_widget_show (label_widget);
return list_item;
}
(list of containers at end...).
Not all containers might be able to cope... Try vbox..
Jamie
List of containers:
GtkTreeClass
GtkVBoxClass
GtkMenuShellClass
GtkButtonClass
GtkBinClass
GtkBoxClass
GtkMenuBarClass
GtkItemClass
GtkRadioButtonClass
GtkMenuClass
GtkTableClass
GtkViewportClass
GtkWindowClass
GtkCheckButtonClass
GtkDialogClass
GtkScrolledWindowClass
GtkAlignmentClass
GtkCheckMenuItemClass
GtkMenuItemClass
GtkListItemClass
GtkToggleButtonClass
GtkOptionMenuClass
GtkAspectFrameClass
GtkListClass
GtkHBoxClass
GtkTreeItemClass
GtkFrameClass
GtkNotebookClass
GtkColorSelectionClass
GtkRadioMenuItemClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]