Commit c271b413 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

we used an array with a hardcoded size here which was too small to hold

2000-06-27  Sven Neumann  <sven@gimp.org>

	* app/about_dialog.c: we used an array with a hardcoded size here
	which was too small to hold all the authors recently added. Made
	it a dynamic one. This fixes the "Can't quit The GIMP" bug #15483.

	* app/about_dialog.h
	* app/commands.c: removed the timeout parameter from
	about_dialog_create() since it wasn't used at all.
parent 3ed86a73
2000-06-27 Sven Neumann <sven@gimp.org>
* app/about_dialog.c: we used an array with a hardcoded size here
which was too small to hold all the authors recently added. Made
it a dynamic one. This fixes the "Can't quit The GIMP" bug #15483.
* app/about_dialog.h
* app/commands.c: removed the timeout parameter from
about_dialog_create() since it wasn't used at all.
Tue Jun 27 22:26:30 BST 2000 Andy Thomas <alt@gimp.org>
* app/paint_core.c
* app/paint_core.c:
Fixed problem with coloured brushes/grayscale images and painting
close to the edge. Fixes bug #14159
......
......@@ -230,14 +230,14 @@ static gchar *scroll_text[] =
#endif
};
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
static gint scroll_text_widths[100] = { 0 };
static gint scroll_text_widths[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
static gint cur_scroll_text = 0;
static gint cur_scroll_index;
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
void
about_dialog_create (gint timeout)
about_dialog_create ()
{
GtkWidget *vbox;
GtkWidget *aboutframe;
......@@ -559,7 +559,7 @@ about_dialog_timer (gpointer data)
if (do_animation)
{
if(logo_area->allocation.width != 1)
if (logo_area->allocation.width != 1)
{
for (i = 0, k = 0; i < dissolve_height; i++)
for (j = 0; j < dissolve_width; j++, k++)
......
......@@ -18,6 +18,6 @@
#ifndef __ABOUT_DIALOG_H__
#define __ABOUT_DIALOG_H__
void about_dialog_create (gint timeout);
void about_dialog_create (void);
#endif /* __ABOUT_DIALOG_H__ */
......@@ -1288,7 +1288,7 @@ void
help_about_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
about_dialog_create (FALSE);
about_dialog_create ();
}
......
......@@ -1288,7 +1288,7 @@ void
help_about_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
about_dialog_create (FALSE);
about_dialog_create ();
}
......
......@@ -230,14 +230,14 @@ static gchar *scroll_text[] =
#endif
};
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
static gint scroll_text_widths[100] = { 0 };
static gint scroll_text_widths[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
static gint cur_scroll_text = 0;
static gint cur_scroll_index;
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
void
about_dialog_create (gint timeout)
about_dialog_create ()
{
GtkWidget *vbox;
GtkWidget *aboutframe;
......@@ -559,7 +559,7 @@ about_dialog_timer (gpointer data)
if (do_animation)
{
if(logo_area->allocation.width != 1)
if (logo_area->allocation.width != 1)
{
for (i = 0, k = 0; i < dissolve_height; i++)
for (j = 0; j < dissolve_width; j++, k++)
......
......@@ -18,6 +18,6 @@
#ifndef __ABOUT_DIALOG_H__
#define __ABOUT_DIALOG_H__
void about_dialog_create (gint timeout);
void about_dialog_create (void);
#endif /* __ABOUT_DIALOG_H__ */
......@@ -230,14 +230,14 @@ static gchar *scroll_text[] =
#endif
};
static gint nscroll_texts = sizeof (scroll_text) / sizeof (scroll_text[0]);
static gint scroll_text_widths[100] = { 0 };
static gint scroll_text_widths[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
static gint cur_scroll_text = 0;
static gint cur_scroll_index;
static gint shuffle_array[ sizeof(scroll_text) / sizeof(scroll_text[0]) ];
void
about_dialog_create (gint timeout)
about_dialog_create ()
{
GtkWidget *vbox;
GtkWidget *aboutframe;
......@@ -559,7 +559,7 @@ about_dialog_timer (gpointer data)
if (do_animation)
{
if(logo_area->allocation.width != 1)
if (logo_area->allocation.width != 1)
{
for (i = 0, k = 0; i < dissolve_height; i++)
for (j = 0; j < dissolve_width; j++, k++)
......
......@@ -18,6 +18,6 @@
#ifndef __ABOUT_DIALOG_H__
#define __ABOUT_DIALOG_H__
void about_dialog_create (gint timeout);
void about_dialog_create (void);
#endif /* __ABOUT_DIALOG_H__ */
......@@ -1288,7 +1288,7 @@ void
help_about_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
about_dialog_create (FALSE);
about_dialog_create ();
}
......
......@@ -1288,7 +1288,7 @@ void
help_about_cmd_callback (GtkWidget *widget,
gpointer client_data)
{
about_dialog_create (FALSE);
about_dialog_create ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment