Commit a9a9bb7c authored by Jehan's avatar Jehan

extensions: removing a bunch of useless semicolon on Python script.

Probably forgotten remnants from the C to Python port, as I copy-pasted
the C plug-in and converted each line of code to Python 3, one by one.
These semicolons are not breaking the plug-in, but that is still not
very "Python-style". Let's say it's valid, though useless in this case
and clearly not considered beautiful Python.
parent 042ed7e2
Pipeline #222136 passed with stages
in 42 minutes and 1 second
......@@ -43,16 +43,16 @@ class Goat (Gimp.PlugIn):
Gimp.PDBProcType.PLUGIN,
self.run, None)
procedure.set_image_types("*");
procedure.set_image_types("*")
procedure.set_menu_label("Exercise a goat and a python");
procedure.set_icon_name(GimpUi.ICON_GEGL);
procedure.add_menu_path('<Image>/Filters/Development/Goat exercises/');
procedure.set_menu_label("Exercise a goat and a python")
procedure.set_icon_name(GimpUi.ICON_GEGL)
procedure.add_menu_path('<Image>/Filters/Development/Goat exercises/')
procedure.set_documentation("Exercise a goat in the Python 3 language",
"Takes a goat for a walk in Python 3",
name);
procedure.set_attribution("Jehan", "Jehan", "2019");
name)
procedure.set_attribution("Jehan", "Jehan", "2019")
return procedure
......@@ -73,10 +73,10 @@ class Goat (Gimp.PlugIn):
dialog.add_button("_Source", Gtk.ResponseType.APPLY)
dialog.add_button("_OK", Gtk.ResponseType.OK)
geometry = Gdk.Geometry();
geometry.min_aspect = 0.5;
geometry.max_aspect = 1.0;
dialog.set_geometry_hints(None, geometry, Gdk.WindowHints.ASPECT);
geometry = Gdk.Geometry()
geometry.min_aspect = 0.5
geometry.max_aspect = 1.0
dialog.set_geometry_hints(None, geometry, Gdk.WindowHints.ASPECT)
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=2)
dialog.get_content_area().add(box)
......@@ -130,9 +130,9 @@ class Goat (Gimp.PlugIn):
return procedure.new_return_values(Gimp.PDBStatusType.CANCEL,
GLib.Error())
intersect, x, y, width, height = drawable.mask_intersect();
intersect, x, y, width, height = drawable.mask_intersect()
if intersect:
Gegl.init(None);
Gegl.init(None)
buffer = drawable.get_buffer()
shadow_buffer = drawable.get_shadow_buffer()
......
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