Re: StockIcons without label
- From: Olexiy Avramchenko <olexiy irtech cn ua>
- To: LordGolem <lordgolem golemgraphics com>
- Cc: gtk-list gnome org
- Subject: Re: StockIcons without label
- Date: Wed, 05 May 2004 13:15:37 +0300
LordGolem wrote:
Can I use stock icons in a button without displaying the label?
Yep, button is a binary container, so you can pack stock image inside it
with code like this:
{
GtkWidget *button, *image;
button = gtk_button_new();
image = gtk_image_new_from_stock (GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON);
gtk_container_add (GTK_CONTAINER (button), image);
}
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]