Fixed long-standing typo in aspect ratio computation code. (pointed out by

Sat Dec  5 21:07:09 1998  Owen Taylor  <otaylor@gtk.org>

     * gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
       long-standing typo in aspect ratio computation code.
       (pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)
This commit is contained in:
Owen Taylor 1998-12-06 02:08:28 +00:00 committed by Owen Taylor
parent f5c4b3740c
commit 5c42d2f6d6
8 changed files with 44 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
long-standing typo in aspect ratio computation code.
(pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)
Fri Dec 4 01:20:06 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with

View File

@ -1,3 +1,9 @@
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
long-standing typo in aspect ratio computation code.
(pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)
Fri Dec 4 01:20:06 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with

View File

@ -1,3 +1,9 @@
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
long-standing typo in aspect ratio computation code.
(pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)
Fri Dec 4 01:20:06 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with

View File

@ -1,3 +1,9 @@
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
long-standing typo in aspect ratio computation code.
(pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)
Fri Dec 4 01:20:06 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with

View File

@ -1,3 +1,9 @@
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
long-standing typo in aspect ratio computation code.
(pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)
Fri Dec 4 01:20:06 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with

View File

@ -1,3 +1,9 @@
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
long-standing typo in aspect ratio computation code.
(pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)
Fri Dec 4 01:20:06 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with

View File

@ -1,3 +1,9 @@
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
long-standing typo in aspect ratio computation code.
(pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)
Fri Dec 4 01:20:06 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with

View File

@ -301,9 +301,8 @@ gtk_aspect_frame_size_allocate (GtkWidget *widget,
bin->child->requisition.height;
if (ratio < MIN_RATIO) ratio = MIN_RATIO;
}
else
if (bin->child->requisition.height != 0)
ratio = MAX_RATIO;
else if (bin->child->requisition.width != 0)
ratio = MAX_RATIO;
else
ratio = 1.0;
}