diff options
author | Benjamin Otte <otte@redhat.com> | 2011-04-02 04:10:09 +0200 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2011-06-13 17:52:06 -0400 |
commit | 9694ea8e7a179060e122bbf9890829321c7fedeb (patch) | |
tree | 0468c8f3823287643b7324cdc6ce23b85a43ff37 /data | |
parent | 21f81ff1beaa29800cae351742fdbab17c871937 (diff) | |
download | gdm-9694ea8e7a179060e122bbf9890829321c7fedeb.tar.gz |
simple-greeter: Don't request an invalid size
GTK widgets must at all times report a size they can handle. So it is
not allowed to return 0 when not realized, because then size allocations
break when GTK uses this size for its widget.
In this case, GTK uses the pre-realize size to determine the size it
should request when creating the greeter window - chicken and egg so to
say.
This patch just uses the default monitor (I guess the root window's
monitor is the default monitor?) for determining the login window size.
One thing this patch doesn't do is add a call to gtk_widget_queue_resize()
from the realize callback or from monitor-changing signals, though
that's probably technically necessary.
https://bugzilla.gnome.org/show_bug.cgi?id=646498
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions