- From: Hassan Aurag <aurag crm umontreal ca>
- To: Greg Suing <suing tconl com>
- CC: gnome-devel-list gnome org
- Subject: Re: size
- Date: Tue, 18 Jan 2000 04:38:41 GMT
To tell you the truth, I was going to answer you but didn't know how
to translate pygtk commands to C-gtk commands.
I just found out how to do it today!
For Pygtk users, it is:
Say your top-level window is caled win like in:
win = GtkWindow(), or GnomeApp()
You have to do:
Where attr is any attribute of the window.
For general documentation, there is Havoc's book and there is the
excellent description.py in the pygtk-docs.
I think you might be able to translate those to C statements....
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 1/17/00, 11:26:12 PM, Greg Suing <email@example.com> wrote regarding
> Why do questions such as this _never_ get answered on this list?
> It's difficult to get started with Gnome programming due to minimal
> documentation. Answers to questions like these help new programmers
> get started. When they aren't answered, it's very discouraging.
> I asked the same question several weeks ago - with no response.
> Here's what I use to get the size of my main window... it seems to
> GtkWidget *app;
> int w, h;
> w = GTK_WIDGET(GNOME_APP(app)->contents)->allocation.width;
> h = GTK_WIDGET(GNOME_APP(app)->contents)->allocation.height;
> Greg Suing
> Martin Oberzalek wrote:
> > How can I get the current size of a widget?
> > --
> > 2 Pi || ! 2 Pi <- == ?
> > --
> > To unsubscribe: mail firstname.lastname@example.org with
> > as the Subject.
> To unsubscribe: mail email@example.com with
> as the Subject.
] [Thread Prev