Re: StockIcons without label

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux