unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Ken Brown <kbrown@cornell.edu>
Cc: 11177@debbugs.gnu.org
Subject: bug#11177: 24.0.95; gtk_window_parse_geometry warning
Date: Fri, 6 Apr 2012 12:57:16 +0200	[thread overview]
Message-ID: <44C72D45-F636-4A2A-B0AC-76C98EC0E524@swipnet.se> (raw)
In-Reply-To: <4F7CA84A.7010906@cornell.edu>

Hello.

4 apr 2012 kl. 22:00 skrev Ken Brown:

> When emacs is built with gtk3 and the window geometry is specified on the command line or in .Xdefaults, the following warning appears in the terminal from which emacs was started:
> 
> Gtk-WARNING **: gtk_window_parse_geometry() called on a window with no visible children; the window should be set up before gtk_window_parse_geometry() is called.
> 
> To reproduce:
> 
> 1. Build emacs with the configure option --with-x-toolkit=gtk3.
> 
> 2. emacs -Q --geometry=80x34+340+40 &
> 
> I don't know enough about gtk to know whether this warning can safely be ignored, but here's a quote from the source file gtk/gtkwindow.c in which gtk_window_parse_geometry is defined:
> 
> * Note that for gtk_window_parse_geometry() to work as expected, it has
> * to be called when the window has its "final" size, i.e. after calling
> * gtk_widget_show_all() on the contents and gtk_window_set_geometry_hints()
> * on the window.
> 

This is a false warning. There are known issues with the rows in the geometry given to Emacs (you may get less rows than you ask for) but the positions are AFAIK more or less correct (i.e. both Gtk and the window manager modifyes it in an effort to keep the window onscreen).  I don't know why they added this warning in Gtk+ 3, the code is more or less the same as in Gtk+2.

Now, if you have a case where the window position is much different from the geometry given, that would be a real bug.

	Jan D.






  reply	other threads:[~2012-04-06 10:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-04 20:00 bug#11177: 24.0.95; gtk_window_parse_geometry warning Ken Brown
2012-04-06 10:57 ` Jan Djärv [this message]
2012-04-06 11:27   ` Ken Brown
2012-11-25 17:40   ` Ken Brown
2012-12-03 19:52     ` Jan Djärv
2012-12-03 20:04       ` Ken Brown

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44C72D45-F636-4A2A-B0AC-76C98EC0E524@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=11177@debbugs.gnu.org \
    --cc=kbrown@cornell.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).