Re: GNOME_STOCK_EMPTY
- From: Havoc Pennington <hp redhat com>
- To: Sven Neumann <sven gimp org>
- Cc: Joel Becker <jlbec evilplan org>, gtk-devel-list gnome org
- Subject: Re: GNOME_STOCK_EMPTY
- Date: 09 Nov 2001 14:28:17 -0500
Sven Neumann <sven gimp org> writes:
> there are quite a lot widgets you could put there to assure that the
> correct space is allocated. The cleanest solution would probably by
> to get a pixbuf from the stock system and call gdk_pixbuf_fill() to
> clear it. I don't see why you would need an extra stock item for this.
I would write:
GtkWidget *alignment;
int w, h;
alignment = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
gtk_icon_size_lookup (GTK_ICON_SIZE_WHATEVER, &width, &height);
gtk_widget_set_size_request (alignment, width, height);
Then you have a stock-icon-sized spacer.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]