Re: [Gimp-developer] Using drawables with preview

2006-12-05 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
:On Sun, 2006-12-03 at 14:52 -0800, [EMAIL PROTECTED] wrote:
:
: What I'm writing is straightforward- it's a linear (i.e. one-dimensional) 
unsharp :mask. (I'm probably not the first to do this, but it's a good 
learning opportunity, :and it confirmed my hunch that it would work better 
against motion blur than the :standard version). The line is supposed to 
illustrate the angle and size of the :convolution.
:
:In that case you probably want to draw on the preview window without
:fiddling with the buffers that the preview widget uses. Just connect
:after the expose-event handler and use GDK or Cairo drawing API to draw
:on the preview area.

That's great, thanks (also to David Gowers for his response too).

I'm still a relative novice with GTK- I learned what little I know in order to 
write this filter's dialog box- but I'll be taking a look at that.

In the meantime, I've uploaded the linear unsharp mask filter code (first 
version) and some example images here:-
http://home.freeuk.com/misacham/temp/mask.htm

(Note (a) the images are fairly large and (b) Yes, I know the filter code is 
slow and could probably be *much* faster; one thing at a time).

Like I said, I'd be very surprised if I was the first to think of this, but I 
wanted to play around with the idea on my own anyway. It's hardly a miracle 
cure for motion blur, but the results were pretty good; it certainly beats 
two-dimensional USM for that purpose.

- [EMAIL PROTECTED]

_
Get your FREE OiNK-Mail --- http://www.oink.co.uk

Adopt an animal today and help support wildlife conservation --- 
http://www.adoption.co.uk

The Rainforests. Home to half of all living species. Don't let them disappear.  
--- http://www.adoption.co.uk/rainforest
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] help - no more able to compile from cvs

2006-12-05 Thread Marco Ciampa
I've recently upgraded from ubuntu dapper to edgy and I'm no more able to
compile gimp from cvs. The error seems related to the pygimp section. Here
is the make log:

make[4]: Entering directory `/home/marco/cvs-ssh-gnome/gimp/plug-ins/pygimp'
(cd . \
  /usr/bin/pygtk-codegen-2.0 \
--override gimpui.override \
--register /usr/share/pygtk/2.0/defs/gdk-types.defs \
--register /usr/share/pygtk/2.0/defs/gtk-types.defs \
--register ./gimpcolor-types.defs \
--register ./gimpenums-types.defs \
--prefix gimpui gimpui.defs)  gen-gimpui.c \
  cp gen-gimpui.c gimpui.c \
  rm -f gen-gimpui.c
Warning: generating old-style constructor for:gimp_color_display_new
Could not write method GimpColorDisplay.load_state: No ArgType for
GimpParasite*
Could not write method GimpColorDisplay.save_state: No ArgType for
GimpParasite*
Warning: generating old-style constructor for:gimp_color_selector_new
Warning: generating old-style constructor for:gimp_frame_new
Could not write method GimpIntComboBox.prepend: varargs functions not
supported
Could not write method GimpIntComboBox.append: varargs functions not
supported
Could not write method GimpIntComboBox.connect: No ArgType for GCallback
Could not write method GimpIntComboBox.set_sensitivity: No ArgType for
GimpIntSensitivityFunc
Warning: generating old-style constructor for:gimp_enum_combo_box_new
Warning: generating old-style constructor for:gimp_enum_store_new
Warning: generating old-style constructor for:gimp_memsize_entry_new
Warning: generating old-style constructor for:gimp_offset_area_new
Could not write method GimpPageSelector.get_selected_pages: No ArgType for
gint*
Warning: generating old-style constructor for:gimp_path_editor_new
Could not write method GimpPreview.get_position: No ArgType for gint*
Could not write method GimpPreview.get_size: No ArgType for gint*
Could not write method GimpPreviewArea.draw: No ArgType for GimpImageType
Could not write method GimpPreviewArea.blend: No ArgType for GimpImageType
Could not write method GimpPreviewArea.mask: No ArgType for GimpImageType
Could not write method GimpDrawablePreview.get_drawable: No ArgType for
GimpDrawable*
Could not write method GimpDrawablePreview.draw_region: No ArgType for
const-GimpPixelRgn*
Warning: generating old-style constructor for:gimp_size_entry_new
Could not write constructor for GimpSizeEntry: No ArgType for GimpUnit
Could not write method GimpSizeEntry.get_unit: No ArgType for GimpUnit  
Could not write method GimpSizeEntry.get_unit: No ArgType for GimpUnit
Could not write method GimpSizeEntry.set_unit: No ArgType for GimpUnit
Warning: generating old-style constructor for:gimp_unit_menu_new
Could not write constructor for GimpUnitMenu: No ArgType for GimpUnit
Could not write method GimpUnitMenu.set_unit: No ArgType for GimpUnit
Could not write method GimpUnitMenu.get_unit: No ArgType for GimpUnit
Could not write method GimpZoomModel.get_fraction: No ArgType for gint*
Could not write method GimpZoomPreview.get_source: No ArgType for gint*
Could not write method GimpZoomPreview.get_drawable: No ArgType for
GimpDrawable*
Traceback (most recent call last):
  File /usr/share/pygtk/2.0/codegen/codegen.py, line 1707, in ?
sys.exit(main(sys.argv))
  File /usr/share/pygtk/2.0/codegen/codegen.py, line 1698, in main
sw.write(py_ssize_t_clean)
  File /usr/share/pygtk/2.0/codegen/codegen.py, line 1340, in write
self.write_classes()
  File /usr/share/pygtk/2.0/codegen/codegen.py, line 1437, in
write_classes
instance.write_class()
  File /usr/share/pygtk/2.0/codegen/codegen.py, line 283, in write_class
substdict['tp_methods'] = self.write_methods()
  File /usr/share/pygtk/2.0/codegen/codegen.py, line 519, in write_methods
methods.append(self.methdef_tmpl %
UnboundLocalError: local variable 'meth' referenced before assignment
make[4]: *** [gimpui.c] Error 1
make[4]: Leaving directory `/home/marco/cvs-ssh-gnome/gimp/plug-ins/pygimp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/marco/cvs-ssh-gnome/gimp/plug-ins/pygimp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/marco/cvs-ssh-gnome/gimp/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/marco/cvs-ssh-gnome/gimp'
make: *** [all] Error 2
[EMAIL PROTECTED]:~/cvs-ssh-gnome/gimp$

Any hint?
  
-- 

Marco Ciampa

++
| Linux User  #78271 |
| FSFE fellow   #364 |
++
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] help - no more able to compile from cvs

2006-12-05 Thread Kevin Cozens
Marco Ciampa wrote:
 I've recently upgraded from ubuntu dapper to edgy and I'm no more able to
 compile gimp from cvs. The error seems related to the pygimp section. Here
 is the make log:
[snip]
 Any hint?

It is due to a bug in pygtk which has since been fixed. See bug #381389 in 
Gnome bugzilla (http://bugzilla.gnome.org/show_bug.cgi?id=381389).

-- 
Cheers!

Kevin.

http://www.interlog.com/~kcozens/ |What are we going to do today, Borg?
Owner of Elecraft K2 #2172|Same thing we always do, Pinkutus:
   |  Try to assimilate the world!
#include disclaimer/favourite   |  -Pinkutus  the Borg
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer