mirror of https://github.com/GNOME/gimp.git
slight include file ordering tweak
2003-08-13 Manish Singh <yosh@gimp.org> * pygimp/Makefile.am: slight include file ordering tweak * plug-ins/pygimp/plug-ins/colorhtml.py: add a sanity check * plug-ins/pygimp/plug-ins/sphere.py * plug-ins/pygimp/plug-ins/whirlpinch.py: minor cleanups for Python 2.3 * plug-ins/webbrowser/web-browser.scm: change script to reflect new pdb name of the web-browser.
This commit is contained in:
parent
84c22a6ed9
commit
690db96f73
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
2003-08-13 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* pygimp/Makefile.am: slight include file ordering tweak
|
||||
|
||||
* plug-ins/pygimp/plug-ins/colorhtml.py: add a sanity check
|
||||
|
||||
* plug-ins/pygimp/plug-ins/sphere.py
|
||||
* plug-ins/pygimp/plug-ins/whirlpinch.py: minor cleanups for
|
||||
Python 2.3
|
||||
|
||||
* plug-ins/webbrowser/web-browser.scm: change script to reflect
|
||||
new pdb name of the web-browser.
|
||||
|
||||
2003-08-13 Gil "Dolfin" Osher <dolfin@rpg.org.il>
|
||||
|
||||
* configure.in: Added "he" (Hebrew) to ALL_LINGUAS.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SUBDIRS = doc plug-ins
|
||||
|
||||
INCLUDES = $(PYTHON_INCLUDES) $(GLIB_CFLAGS) -I$(top_srcdir)
|
||||
INCLUDES = -I$(top_srcdir) $(PYTHON_INCLUDES) $(GLIB_CFLAGS)
|
||||
|
||||
pygimpdir = $(gimpplugindir)/python
|
||||
|
||||
|
|
|
@ -42,6 +42,9 @@ def python_colorhtml(img, drawable, filename, raw_filename,
|
|||
height = drawable.height
|
||||
bpp = drawable.bpp
|
||||
|
||||
if not drawable.is_rgb or drawable.has_alpha:
|
||||
return
|
||||
|
||||
gimp.tile_cache_ntiles(width / gimp.tile_width() + 1)
|
||||
|
||||
html = file(filename, 'w')
|
||||
|
|
|
@ -42,6 +42,9 @@ def python_colorhtml(img, drawable, filename, raw_filename,
|
|||
height = drawable.height
|
||||
bpp = drawable.bpp
|
||||
|
||||
if not drawable.is_rgb or drawable.has_alpha:
|
||||
return
|
||||
|
||||
gimp.tile_cache_ntiles(width / gimp.tile_width() + 1)
|
||||
|
||||
html = file(filename, 'w')
|
||||
|
|
|
@ -21,8 +21,8 @@ import math
|
|||
from gimpfu import *
|
||||
|
||||
def python_sphere(radius, light, shadow, bg_colour, sphere_colour):
|
||||
width = radius * 3.75
|
||||
height = radius * 2.5;
|
||||
width = int(radius * 3.75)
|
||||
height = int(radius * 2.5)
|
||||
img = gimp.Image(width, height, RGB)
|
||||
drawable = gimp.Layer(img, "Sphere Layer", width, height,
|
||||
RGB_IMAGE, 100, NORMAL_MODE)
|
||||
|
|
|
@ -193,7 +193,7 @@ def bilinear(x, y, values):
|
|||
y = y % 1.0
|
||||
m0 = values[0] + x * (values[1] - values[0])
|
||||
m1 = values[2] + x * (values[3] - values[2])
|
||||
return chr(m0 + y * (m1 - m0))
|
||||
return chr(int(m0 + y * (m1 - m0)))
|
||||
|
||||
|
||||
register(
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
(set! web-browser-new-window 0)
|
||||
|
||||
(define (script-fu-bookmark url)
|
||||
(extension-web-browser 1 url web-browser-new-window))
|
||||
(plug-in-web-browser 1 url web-browser-new-window))
|
||||
|
||||
(define (bookmark-register proc menu help)
|
||||
(script-fu-register proc menu help
|
||||
|
|
Loading…
Reference in New Issue