Commit fe1cc678 authored by Tor Lillqvist's avatar Tor Lillqvist
Browse files

app/makefile.cygwin app/makefile.msc plug-ins/makefile.cygwin

	* app/makefile.cygwin
	* app/makefile.msc
	* plug-ins/makefile.cygwin
	* plug-ins/makefile.msc
	* modules/makefile.cygwin
	* modules/makefile.msc
	* tools/gcg/makefile.cygwin: Various updates. GCC-compiled DLL
	name change.

	* app/context_manager.c: Include paint_options.h for prototype.

	* app/gimpimage.c (gimp_image_initialize_projection): Break out of
 	loop as soon as possible.

	* app/menus.c (menus_last_opened_cmd_callback): Check if referring
 	to entry not in list.

	* app/module_db.c (valid_module_name): (Win32) Require module DLL
 	names to include name of compiler built with.

	* app/paths_dialog.c (paths_draw_segment_points): No use to draw
 	lines if we have less that two points.

	* app/qmask.c: Include stdio.h and floating_sel.h.

	* libgimp/makefile.cygwin: New file.

	* libgimp/Makefile.am:  Distribute above file.

	* libgimp/gimp.def: Update.

	* libgimp/gimpenv.c (gimp_directory): Don't warn about missing
 	home directory on Win32, it is perfectly natural.

	* plug-ins/sel2path/global.h: Bypass unused declarations, some
	of which clash with functions in MSVCRT.

	* plug-ins/sel2path/math.c
	* modules/colorsel_water.c: Define M_PI if necessary.

	* plug-ins/sel2path/sel2path.c: Include config.h and
 	glib.h. Define rint() if needed.

	* plug-ins/sel2path/vector.c: Include glib.h (for hypot() renaming
 	on Win32; In the MS C runtime, as hypot() is non-ANSI, it's called
 	_hypot(), sigh).

	* plug-ins/sinus/sinus_logo.h: Use indexed format, it is easier on
 	some compilers than the huge string.
parent 061dc89d
1999-07-14 Tor Lillqvist <tml@iki.fi>
* app/makefile.cygwin
* app/makefile.msc
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc
* modules/makefile.cygwin
* modules/makefile.msc
* tools/gcg/makefile.cygwin: Various updates. GCC-compiled DLL
name change.
* app/context_manager.c: Include paint_options.h for prototype.
* app/gimpimage.c (gimp_image_initialize_projection): Break out of
loop as soon as possible.
* app/menus.c (menus_last_opened_cmd_callback): Check if referring
to entry not in list.
* app/module_db.c (valid_module_name): (Win32) Require module DLL
names to include name of compiler built with.
* app/paths_dialog.c (paths_draw_segment_points): No use to draw
lines if we have less that two points.
* app/qmask.c: Include stdio.h and floating_sel.h.
* libgimp/makefile.cygwin: New file.
* libgimp/Makefile.am: Distribute above file.
* libgimp/gimp.def: Update.
* libgimp/gimpenv.c (gimp_directory): Don't warn about missing
home directory on Win32, it is perfectly natural.
* plug-ins/sel2path/global.h: Bypass unused declarations, some
of which clash with functions in MSVCRT.
* plug-ins/sel2path/math.c
* modules/colorsel_water.c: Define M_PI if necessary.
* plug-ins/sel2path/sel2path.c: Include config.h and
glib.h. Define rint() if needed.
* plug-ins/sel2path/vector.c: Include glib.h (for hypot() renaming
on Win32; In the MS C runtime, as hypot() is non-ANSI, it's called
_hypot(), sigh).
* plug-ins/sinus/sinus_logo.h: Use indexed format, it is easier on
some compilers than the huge string.
Wed Jul 14 11:42:49 MEST 1999 Sven Neumann <sven@gimp.org>
* app/ink.c: we were leaking a blob at each button_press
......@@ -289,9 +341,6 @@ Mon Jul 5 20:39:42 BST 1999 Austin Donnelly <austin@gimp.org>
1999-07-04 Tor Lillqvist <tml@iki.fi>
* libgimp/gimpenv.c (gimp_directory): Don't warn about missing
home directory on Win32, it is perfectly natural.
* app/color_notebook.c
* libgimp/color_selector.h: Bypass the declaration of the exported
functions in the header. (Caused different linkage error with MSC,
......
......@@ -18,10 +18,12 @@
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "appenv.h"
#include "channel.h"
#include "floating_sel.h"
#include "gdisplayF.h"
#include "gimpcontext.h"
#include "gimage_mask.h"
......
......@@ -18,10 +18,12 @@
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "appenv.h"
#include "channel.h"
#include "floating_sel.h"
#include "gdisplayF.h"
#include "gimpcontext.h"
#include "gimage_mask.h"
......
......@@ -21,6 +21,7 @@
#include "appenv.h"
#include "gdisplay.h"
#include "gimprc.h"
#include "paint_options.h"
#include "tools.h"
static GimpContext * global_user_context;
......
......@@ -1464,7 +1464,10 @@ gimp_image_initialize_projection (GimpImage *gimage,
(off_y <= y) &&
(off_x + drawable_width (GIMP_DRAWABLE(layer)) >= x + w) &&
(off_y + drawable_height (GIMP_DRAWABLE(layer)) >= y + h))
coverage = 1;
{
coverage = 1;
break;
}
list = g_slist_next (list);
}
......
......@@ -1464,7 +1464,10 @@ gimp_image_initialize_projection (GimpImage *gimage,
(off_y <= y) &&
(off_x + drawable_width (GIMP_DRAWABLE(layer)) >= x + w) &&
(off_y + drawable_height (GIMP_DRAWABLE(layer)) >= y + h))
coverage = 1;
{
coverage = 1;
break;
}
list = g_slist_next (list);
}
......
......@@ -1464,7 +1464,10 @@ gimp_image_initialize_projection (GimpImage *gimage,
(off_y <= y) &&
(off_x + drawable_width (GIMP_DRAWABLE(layer)) >= x + w) &&
(off_y + drawable_height (GIMP_DRAWABLE(layer)) >= y + h))
coverage = 1;
{
coverage = 1;
break;
}
list = g_slist_next (list);
}
......
......@@ -18,10 +18,12 @@
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "appenv.h"
#include "channel.h"
#include "floating_sel.h"
#include "gdisplayF.h"
#include "gimpcontext.h"
#include "gimage_mask.h"
......
......@@ -18,10 +18,12 @@
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "appenv.h"
#include "channel.h"
#include "floating_sel.h"
#include "gdisplayF.h"
#include "gimpcontext.h"
#include "gimage_mask.h"
......
......@@ -1464,7 +1464,10 @@ gimp_image_initialize_projection (GimpImage *gimage,
(off_y <= y) &&
(off_x + drawable_width (GIMP_DRAWABLE(layer)) >= x + w) &&
(off_y + drawable_height (GIMP_DRAWABLE(layer)) >= y + h))
coverage = 1;
{
coverage = 1;
break;
}
list = g_slist_next (list);
}
......
......@@ -1464,7 +1464,10 @@ gimp_image_initialize_projection (GimpImage *gimage,
(off_y <= y) &&
(off_x + drawable_width (GIMP_DRAWABLE(layer)) >= x + w) &&
(off_y + drawable_height (GIMP_DRAWABLE(layer)) >= y + h))
coverage = 1;
{
coverage = 1;
break;
}
list = g_slist_next (list);
}
......
......@@ -1464,7 +1464,10 @@ gimp_image_initialize_projection (GimpImage *gimage,
(off_y <= y) &&
(off_x + drawable_width (GIMP_DRAWABLE(layer)) >= x + w) &&
(off_y + drawable_height (GIMP_DRAWABLE(layer)) >= y + h))
coverage = 1;
{
coverage = 1;
break;
}
list = g_slist_next (list);
}
......
......@@ -1464,7 +1464,10 @@ gimp_image_initialize_projection (GimpImage *gimage,
(off_y <= y) &&
(off_x + drawable_width (GIMP_DRAWABLE(layer)) >= x + w) &&
(off_y + drawable_height (GIMP_DRAWABLE(layer)) >= y + h))
coverage = 1;
{
coverage = 1;
break;
}
list = g_slist_next (list);
}
......
......@@ -470,11 +470,23 @@ valid_module_name (const char *filename)
if (strcmp (basename + len - 3, ".so"))
return FALSE;
#elif defined (__GNUC__)
/* When compiled with gcc on Win32, require modules to be compiled with
* gcc, too. Use the convention that gcc-compiled GIMP modules are named
* *.gcc.dll. Subject to change.
*/
if (len < 1 + 8)
return FALSE;
if (g_strcasecmp (basename + len - 8, ".gcc.dll"))
return FALSE;
#else
if (len < 1 + 4)
/* When compiled with MSVC, the modules should be called *.msvc.dll.
*/
if (len < 1 + 9)
return FALSE;
if (g_strcasecmp (basename + len - 4, ".dll"))
if (g_strcasecmp (basename + len - 9, ".msvc.dll"))
return FALSE;
#endif
......
......@@ -18,10 +18,12 @@
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "appenv.h"
#include "channel.h"
#include "floating_sel.h"
#include "gdisplayF.h"
#include "gimpcontext.h"
#include "gimage_mask.h"
......
......@@ -1464,7 +1464,10 @@ gimp_image_initialize_projection (GimpImage *gimage,
(off_y <= y) &&
(off_x + drawable_width (GIMP_DRAWABLE(layer)) >= x + w) &&
(off_y + drawable_height (GIMP_DRAWABLE(layer)) >= y + h))
coverage = 1;
{
coverage = 1;
break;
}
list = g_slist_next (list);
}
......
......@@ -583,6 +583,11 @@ menus_last_opened_cmd_callback (GtkWidget *widget,
guint num)
{
gchar *filename, *raw_filename;
guint num_entries;
num_entries = g_slist_length (last_opened_raw_filenames);
if (num >= num_entries)
return;
raw_filename = ((GString *) g_slist_nth_data (last_opened_raw_filenames, num))->str;
filename = g_basename (raw_filename);
......
......@@ -470,11 +470,23 @@ valid_module_name (const char *filename)
if (strcmp (basename + len - 3, ".so"))
return FALSE;
#elif defined (__GNUC__)
/* When compiled with gcc on Win32, require modules to be compiled with
* gcc, too. Use the convention that gcc-compiled GIMP modules are named
* *.gcc.dll. Subject to change.
*/
if (len < 1 + 8)
return FALSE;
if (g_strcasecmp (basename + len - 8, ".gcc.dll"))
return FALSE;
#else
if (len < 1 + 4)
/* When compiled with MSVC, the modules should be called *.msvc.dll.
*/
if (len < 1 + 9)
return FALSE;
if (g_strcasecmp (basename + len - 4, ".dll"))
if (g_strcasecmp (basename + len - 9, ".msvc.dll"))
return FALSE;
#endif
......
......@@ -1884,7 +1884,7 @@ paths_draw_segment_points(BezierSelect *bezier_sel,
pwidget = (PATHWIDGETP)gtk_clist_get_row_data(GTK_CLIST(paths_dialog->paths_list),row);
if(pcount == 0)
if(pcount < 2)
return;
g_return_if_fail(pwidget != NULL);
......
......@@ -18,10 +18,12 @@
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "appenv.h"
#include "channel.h"
#include "floating_sel.h"
#include "gdisplayF.h"
#include "gimpcontext.h"
#include "gimage_mask.h"
......
Supports Markdown
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