diff options
-rw-r--r-- | ChangeLog | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 18 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 18 | ||||
-rw-r--r-- | gtk/gtkcolorsel.c | 2 |
8 files changed, 36 insertions, 92 deletions
@@ -1,3 +1,8 @@ +Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): + guard against division by zero. (Fixes bug #1339) + Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_move_{forward,backward}_word): @@ -10,19 +15,6 @@ Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com> modality to error dialog as well as confirmation dialogs. (Bug #1803, reported by Rosanna Wing Sze Yuen) -Thu Aug 5 17:05:39 1999 Owen Taylor <otaylor@redhat.com> - - * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call gtk_rc_init() - here since that will the default files to be parsed again. - Instead, recreate rc_style_ht upon demand. - - * gtk/gtkrc.c: Fix problem where RC styles that were freed - would be left in realized_style_ht, resulting in - lookups that returned stale data. - - * gtk/gtkrc.c (gtk_rc_style_unref): Code style cleanups. - Create a GtkRcStylePrivate structure in the GDK style. - Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org> * docs/gtkfaq.sgml: FAQ Update diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index bda988eaa..ba73908ea 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): + guard against division by zero. (Fixes bug #1339) + Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_move_{forward,backward}_word): @@ -10,19 +15,6 @@ Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com> modality to error dialog as well as confirmation dialogs. (Bug #1803, reported by Rosanna Wing Sze Yuen) -Thu Aug 5 17:05:39 1999 Owen Taylor <otaylor@redhat.com> - - * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call gtk_rc_init() - here since that will the default files to be parsed again. - Instead, recreate rc_style_ht upon demand. - - * gtk/gtkrc.c: Fix problem where RC styles that were freed - would be left in realized_style_ht, resulting in - lookups that returned stale data. - - * gtk/gtkrc.c (gtk_rc_style_unref): Code style cleanups. - Create a GtkRcStylePrivate structure in the GDK style. - Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org> * docs/gtkfaq.sgml: FAQ Update diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index bda988eaa..ba73908ea 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): + guard against division by zero. (Fixes bug #1339) + Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_move_{forward,backward}_word): @@ -10,19 +15,6 @@ Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com> modality to error dialog as well as confirmation dialogs. (Bug #1803, reported by Rosanna Wing Sze Yuen) -Thu Aug 5 17:05:39 1999 Owen Taylor <otaylor@redhat.com> - - * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call gtk_rc_init() - here since that will the default files to be parsed again. - Instead, recreate rc_style_ht upon demand. - - * gtk/gtkrc.c: Fix problem where RC styles that were freed - would be left in realized_style_ht, resulting in - lookups that returned stale data. - - * gtk/gtkrc.c (gtk_rc_style_unref): Code style cleanups. - Create a GtkRcStylePrivate structure in the GDK style. - Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org> * docs/gtkfaq.sgml: FAQ Update diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index bda988eaa..ba73908ea 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): + guard against division by zero. (Fixes bug #1339) + Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_move_{forward,backward}_word): @@ -10,19 +15,6 @@ Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com> modality to error dialog as well as confirmation dialogs. (Bug #1803, reported by Rosanna Wing Sze Yuen) -Thu Aug 5 17:05:39 1999 Owen Taylor <otaylor@redhat.com> - - * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call gtk_rc_init() - here since that will the default files to be parsed again. - Instead, recreate rc_style_ht upon demand. - - * gtk/gtkrc.c: Fix problem where RC styles that were freed - would be left in realized_style_ht, resulting in - lookups that returned stale data. - - * gtk/gtkrc.c (gtk_rc_style_unref): Code style cleanups. - Create a GtkRcStylePrivate structure in the GDK style. - Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org> * docs/gtkfaq.sgml: FAQ Update diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index bda988eaa..ba73908ea 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): + guard against division by zero. (Fixes bug #1339) + Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_move_{forward,backward}_word): @@ -10,19 +15,6 @@ Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com> modality to error dialog as well as confirmation dialogs. (Bug #1803, reported by Rosanna Wing Sze Yuen) -Thu Aug 5 17:05:39 1999 Owen Taylor <otaylor@redhat.com> - - * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call gtk_rc_init() - here since that will the default files to be parsed again. - Instead, recreate rc_style_ht upon demand. - - * gtk/gtkrc.c: Fix problem where RC styles that were freed - would be left in realized_style_ht, resulting in - lookups that returned stale data. - - * gtk/gtkrc.c (gtk_rc_style_unref): Code style cleanups. - Create a GtkRcStylePrivate structure in the GDK style. - Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org> * docs/gtkfaq.sgml: FAQ Update diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index bda988eaa..ba73908ea 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): + guard against division by zero. (Fixes bug #1339) + Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_move_{forward,backward}_word): @@ -10,19 +15,6 @@ Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com> modality to error dialog as well as confirmation dialogs. (Bug #1803, reported by Rosanna Wing Sze Yuen) -Thu Aug 5 17:05:39 1999 Owen Taylor <otaylor@redhat.com> - - * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call gtk_rc_init() - here since that will the default files to be parsed again. - Instead, recreate rc_style_ht upon demand. - - * gtk/gtkrc.c: Fix problem where RC styles that were freed - would be left in realized_style_ht, resulting in - lookups that returned stale data. - - * gtk/gtkrc.c (gtk_rc_style_unref): Code style cleanups. - Create a GtkRcStylePrivate structure in the GDK style. - Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org> * docs/gtkfaq.sgml: FAQ Update diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index bda988eaa..ba73908ea 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com> + + * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar): + guard against division by zero. (Fixes bug #1339) + Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_move_{forward,backward}_word): @@ -10,19 +15,6 @@ Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com> modality to error dialog as well as confirmation dialogs. (Bug #1803, reported by Rosanna Wing Sze Yuen) -Thu Aug 5 17:05:39 1999 Owen Taylor <otaylor@redhat.com> - - * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call gtk_rc_init() - here since that will the default files to be parsed again. - Instead, recreate rc_style_ht upon demand. - - * gtk/gtkrc.c: Fix problem where RC styles that were freed - would be left in realized_style_ht, resulting in - lookups that returned stale data. - - * gtk/gtkrc.c (gtk_rc_style_unref): Code style cleanups. - Create a GtkRcStylePrivate structure in the GDK style. - Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org> * docs/gtkfaq.sgml: FAQ Update diff --git a/gtk/gtkcolorsel.c b/gtk/gtkcolorsel.c index c5784086e..5e82acc6d 100644 --- a/gtk/gtkcolorsel.c +++ b/gtk/gtkcolorsel.c @@ -1314,7 +1314,7 @@ gtk_color_selection_draw_value_bar (GtkColorSelection *colorsel, } v = 1.0; - sv = 1.0 / (gdouble) (heig - 1); + sv = 1.0 / (gdouble) MAX (heig - 1, 0); for (y = 0; y < heig; y++) { |