Re: [gtk-list] Widget attribute question
- From: Alexander Kotelnikov <sacha AK2614 spb edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Widget attribute question
- Date: Thu, 25 Feb 1999 02:20:43 +0300 (MSK)
On Wed, 24 Feb 1999, David J. Topper wrote:
> Hey folks,
>
> So after more than 1 year of "planning" I'm finally learning GTK! So
> far so good.
>
> I've been cruising through the tutoral, and see a short section on
> setting widget attributes. But I'm curious about the following:
>
> 1. How can I keep the size of a "button" constant and have the rest of
> the window resize / scale? It often looks a bit silly to have QUIT
> buttons that occupy 1/2 the screen.
hbox = gtk_hbox_new (FALSE, 0);
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (box), hbox);
gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE,FALSE,0);
gtk_box_pack_start(GTK_BOX(vbox), button, FALSE,FALSE,0);
_____
Alexander Kotelnikov
Saint-Petersburg, Russia
mailto:sacha@ak2614.spb.edu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]