forked from AuroraMiddleware/gtk
Don't set unsigned ints to -1. (#315481, Kjartan Maraas)
2005-09-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set unsigned ints to -1. (#315481, Kjartan Maraas)
This commit is contained in:
parent
c23e27390d
commit
2460b407ce
@ -1,5 +1,8 @@
|
||||
2005-09-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
|
||||
unsigned ints to -1. (#315481, Kjartan Maraas)
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
|
||||
to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
|
||||
(#314473, Stanislav Brabec)
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-09-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
|
||||
unsigned ints to -1. (#315481, Kjartan Maraas)
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
|
||||
to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
|
||||
(#314473, Stanislav Brabec)
|
||||
|
@ -7339,17 +7339,13 @@ gtk_window_parse_geometry (GtkWindow *window,
|
||||
|
||||
result = gtk_XParseGeometry (geometry, &x, &y, &w, &h);
|
||||
|
||||
if ((result & WidthValue) == 0 ||
|
||||
w < 0)
|
||||
w = -1;
|
||||
if ((result & HeightValue) == 0 ||
|
||||
h < 0)
|
||||
h = -1;
|
||||
|
||||
size_set = FALSE;
|
||||
if ((result & WidthValue) || (result & HeightValue))
|
||||
{
|
||||
gtk_window_set_default_size_internal (window, TRUE, w, TRUE, h, TRUE);
|
||||
gtk_window_set_default_size_internal (window,
|
||||
TRUE, result & WidthValue ? w : -1,
|
||||
TRUE, result & HeightValue ? h : -1,
|
||||
TRUE);
|
||||
size_set = TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user