some plugin fixes.
This commit is contained in:
@ -353,6 +353,7 @@ def _interact(func_name):
|
||||
tooltips.enable()
|
||||
dialog.show()
|
||||
response = dialog.run()
|
||||
dialog.hide()
|
||||
ret = None
|
||||
if response == gtk.RESPONSE_OK:
|
||||
# OK was clicked
|
||||
|
||||
@ -496,7 +496,7 @@ pygimp_set_background(PyObject *self, PyObject *args)
|
||||
r = CLAMP(r, 0, 255);
|
||||
g = CLAMP(g, 0, 255);
|
||||
b = CLAMP(b, 0, 255);
|
||||
gimp_rgb_set_uchar(&colour, r, g, b);
|
||||
gimp_rgba_set_uchar(&colour, r, g, b, 255);
|
||||
gimp_palette_set_background(&colour);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
|
||||
@ -23,7 +23,7 @@ def python_foggify(img, layer, name, colour, turbulence, opacity):
|
||||
pdb.plug_in_plasma(img, mask, int(time.time()), turbulence)
|
||||
|
||||
# apply the clouds to the layer
|
||||
img.remove_layer_mask(fog, APPLY)
|
||||
img.remove_layer_mask(fog, MASK_APPLY)
|
||||
|
||||
pdb.gimp_undo_push_group_end(img)
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ class pixel_fetcher:
|
||||
self.drawable = drawable
|
||||
self.tile = None
|
||||
def set_bg_colour(self, r, g, b, a):
|
||||
self.bg_colour = struct.pack('bbb', r,g,b)
|
||||
self.bg_colour = struct.pack('BBB', r,g,b)
|
||||
if self.img_has_alpha:
|
||||
self.bg_colour = self.bg_colour + chr(a)
|
||||
def get_pixel(self, x, y):
|
||||
@ -90,7 +90,7 @@ def python_whirl_pinch(image, drawable, whirl, pinch, radius):
|
||||
|
||||
self.radius = max(xhsiz, yhsiz);
|
||||
|
||||
if not drawable.is_colour and not drawable.is_grey:
|
||||
if not drawable.is_rgb and not drawable.is_grey:
|
||||
return
|
||||
|
||||
gimp.tile_cache_ntiles(2 * (self.width + 63) / 64)
|
||||
|
||||
Reference in New Issue
Block a user