GNU bug report logs -
#11177
24.0.95; gtk_window_parse_geometry warning
Previous Next
Reported by: Ken Brown <kbrown <at> cornell.edu>
Date: Wed, 4 Apr 2012 20:02:01 UTC
Severity: normal
Merged with 13050
Found in versions 24.0.95, 24.2.90
Done: Ken Brown <kbrown <at> cornell.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11177 in the body.
You can then email your comments to 11177 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11177
; Package
emacs
.
(Wed, 04 Apr 2012 20:02:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ken Brown <kbrown <at> cornell.edu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 04 Apr 2012 20:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
In GNU Emacs 24.0.95.1 (i686-pc-cygwin, GTK+ Version 3.2.3)
of 2012-04-04 on fiona
Windowing system distributor `The Cygwin/X Project', version 11.0.11200000
Configured using:
`configure
'--srcdir=/home/kbrown/src/cygemacs/emacs-24.0.95-3/src/emacs-24.0.95'
'--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin'
'--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--datadir=/usr/share'
'--localstatedir=/var' '--sysconfdir=/etc' '--datarootdir=/usr/share'
'--docdir=/usr/share/doc/emacs' '-C' '--with-x-toolkit=gtk3' 'CC=gcc'
'CFLAGS=-g -O2 -pipe ' 'LDFLAGS=-L/usr/lib/ncursesw' 'LIBS='
'CPPFLAGS=-I/usr/include/ncursesw''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11177
; Package
emacs
.
(Fri, 06 Apr 2012 10:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 11177 <at> debbugs.gnu.org (full text, mbox):
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 sent
to
Ken Brown <kbrown <at> cornell.edu>
:
You have taken responsibility.
(Fri, 06 Apr 2012 11:29:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ken Brown <kbrown <at> cornell.edu>
:
bug acknowledged by developer.
(Fri, 06 Apr 2012 11:29:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 11177-done <at> debbugs.gnu.org (full text, mbox):
On 4/6/2012 6:57 AM, Jan Djärv wrote:
> 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.
OK, thanks for the information. I'm closing the bug.
Ken
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 05 May 2012 11:24:03 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Ken Brown <kbrown <at> cornell.edu>
to
control <at> debbugs.gnu.org
.
(Sun, 25 Nov 2012 17:29:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11177
; Package
emacs
.
(Sun, 25 Nov 2012 17:43:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 11177 <at> debbugs.gnu.org (full text, mbox):
On 4/6/2012 6:57 AM, Jan Djärv wrote:
> 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.
Now that gtk3 is used by default, this warning is likely to annoy more
and more users. Is there a way to suppress it? Are other people seeing
it and simply ignoring it?
Ken
Merged 11177 13050.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 02 Dec 2012 00:33:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11177
; Package
emacs
.
(Mon, 03 Dec 2012 19:56:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 11177-done <at> debbugs.gnu.org (full text, mbox):
Hello.
25 nov 2012 kl. 18:40 skrev Ken Brown <kbrown <at> cornell.edu>:
> Now that gtk3 is used by default, this warning is likely to annoy more and more users. Is there a way to suppress it? Are other people seeing it and simply ignoring it?
I added code to supress the warning.
Jan D.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11177
; Package
emacs
.
(Mon, 03 Dec 2012 20:08:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 11177-done <at> debbugs.gnu.org (full text, mbox):
On 12/3/2012 2:52 PM, Jan Djärv wrote:
> I added code to supress the warning.
Thanks.
Ken
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 01 Jan 2013 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 126 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.