From: Russell McManus <russell.mcmanus@msdw.com>
To: Marius Vollmer <mvo@zagadka.ping.de>
Cc: guile-gtk@sourceware.cygnus.com
Subject: Re: getting the size and origin of a GtkWindow
Date: Mon, 29 Jan 2001 17:50:00 -0000 [thread overview]
Message-ID: <jqapuh5u7tz.fsf@msdw.com> (raw)
In-Reply-To: <87puh6x7mw.fsf@zagadka.ping.de>
Marius Vollmer <mvo@zagadka.ping.de> writes:
> Russell McManus <russell.mcmanus@msdw.com> writes:
>
> > I'd like to get and set the origin and size of a GtkWindow, that I've
> > created in guile-gtk. Is this possible?
>
> Hmm, I don't think so. How would you do this from C? It is probably
> easy to add the missing things to guile-gtk once it is clear in what
> way the Gtk+ API wants to be used.
I won't respond to the totality of your message, because I haven't
tried your change (thanks for that, btw), but I will forward you this
email message that I found on the web:
How to get GtkWindow's position and size?
From: Carlos Pereira <carlos pehoe civil ist utl pt>
To: gtk-app-devel-list redhat com
Subject: How to get GtkWindow's position and size?
Date: Wed, 15 Mar 2000 14:32:28 GMT
>How to get GtkWindow's position and size?
You can use, for example:
gdk_window_get_origin (window->window, &x, &y);
gdk_window_get_size (window->window, &w, &h);
and then:
gdk_window_move_resize (window->window, x, y, w, h);
gdk_window_move (window->window, x, y);
gdk_window_resize (window->window, w, h);
-russ
--
The whole aim of practical politics is to keep the populace alarmed
[and hence clamorous to be led to safety] by menacing it with an
endless series of hobgoblins, all of them imaginary.
-- H.L. Mencken
next prev parent reply other threads:[~2001-01-29 17:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-29 13:07 Russell McManus
2001-01-29 15:36 ` Marius Vollmer
2001-01-29 17:50 ` Russell McManus [this message]
2001-02-04 10:12 ` Marius Vollmer
2001-02-05 4:55 ` Russell McManus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jqapuh5u7tz.fsf@msdw.com \
--to=russell.mcmanus@msdw.com \
--cc=guile-gtk@sourceware.cygnus.com \
--cc=mvo@zagadka.ping.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).