Re: StockIcons without label



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]