Torsten Schoenfeld wrote:
> T.J. Ferraro wrote:
>
>> Trying to get the hwnd of a Gtk2::Gdk::Drawable on win32. After pouring
>> through source I noticed nothing was being exported for this in
>> gtk2-perl. I'm not really an XS expert (yet...) so I threw together a
After messing around a bit I realized it was actually giving me back the
hwnd, just in decimal form. A simple sprintf("%x", $hwnd) was able to
return to me the actual hex handle :)
T.J.
T.J. Ferraro wrote:
> Trying to get the hwnd of a Gtk2::Gdk::Drawable on win32. After
>
Trying to get the hwnd of a Gtk2::Gdk::Drawable on win32. After pouring
through source I noticed nothing was being exported for this in
gtk2-perl. I'm not really an XS expert (yet...) so I threw together a
quick hack to try to get this working for me.
I modified GdkDrawable.xs by adding...
#in
PM, T.J. Ferraro wrote:
>
>> Well, here's what I got when running it through OllyDbg.
>>
> [snip]
>
>> LastErr stays 0 after making all of the relevant calls, is there
>> anything else I should be specifically be looking for?
>>
>
&g
n case the slight discrepancies
could be explained by differences in the code?
Thanks for your help.
T.J.
muppet wrote:
On Mar 20, 2008, at 2:06 AM, T.J. Ferraro wrote:
Been kind of busy, but back on track now. Instead of reviving this via
Gtk2::Gdk::Pixbuf, I figured I'd try to get Gtk2
t the little file with the red X.
Is there anything else special you did?
Thanks,
T.J.
rahed wrote:
> "T.J. Ferraro" <[EMAIL PROTECTED]> writes:
>
>
>> Are you running ActiveState perl? What version of Gtk2 and Glib perl
>> bindings? What compiler did
Are you running ActiveState perl? What version of Gtk2 and Glib perl
bindings? What compiler did you use?
Thanks.
T.J.
rahed wrote:
> Grant McLean <[EMAIL PROTECTED]> writes:
>
>
>> I've attached a standalone program that displays an image on a button.
>> The source image was a PNG but I've
Yep, works on linux, but...
C:\>perl image_button.pl
Unrecognized image file format at image_button.pl line 45.
Thanks for the effort, though :)
T.J.
Grant McLean wrote:
> On Thu, 2008-03-06 at 01:05 -0800, T.J. Ferraro wrote:
>
>> At this point I'm willing to settle fo
Sorry for the delay. It looks like I will have to file a report as after
building a simple C program I'm getting a segfault calling
gdk_pixbuf_new_from_file. I will get around to that some time this
weekend along with testing the other more complex methods.
In the mean time, however, I also bui
files. And whether calling
Gtk2::Gdk::Pixbuf::new_from_data or loading a file directly all result
in the same errors.
T.J.
muppet wrote:
>
> On Mar 2, 2008, at 11:07 PM, T.J. Ferraro wrote:
>
>> rn any case, I figured I would give it a try right now. However, when I
>> use Gtk2::I
rahed wrote:
> "T.J. Ferraro" <[EMAIL PROTECTED]> writes:
>
>
>> Which is the line: $pixbuf = Gtk2::Gdk::Pixbuf->new_from_file('image.bmp');
>>
>
> Instead of Gtk2::Gdk::Pixbuf I use:
>
> Gtk2::Image->new_from_file('
Not sure if this is a problem with the gtk2 bindings or the underlying
libraries so I figured I'd start here and work my way back. The attached
script runs fine on linux. However, I get this on windows:
Couldn't recognize the image file format for file 'image.bmp' at
imagetest.pl line 13.
Wh
ble,
run it, see what's missing, add, rinse, repeat.
Is it a pain? Yep...but it works!
Oh, of course, don't forget the dlls that also need to be shipped.
T.J. Ferraro
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Talk about a delayed reaction. Good thing I resent it the next day. :)
On 12/28/07 T.J. Ferraro wrote:
> I'm trying to compile Glib/Gtk 1.162 under win32 using VC7. Glib
> compiled fine. Gtk, however, had mixed results. If I compile it against
> Gtk2 libraries <= 2.6, it compi
I'm trying to compile Glib/Gtk 1.162 under win32 using VC7. Glib
compiled fine. Gtk, however, had mixed results. If I compile it against
Gtk2 libraries <= 2.6, it compiles fine. However, anything higher
(because of a clause in the Makefile to use Cairo) and I get:
PangoCairo.c
xs\PangoCairo.xs(
My suggestion? Move on unless you have a *lot* of time on your hands :)
nmake test:
Failed Test Stat Wstat Total Fail List of Failed
---
t/Gdk.t 4 1024 17 12 12-17
t/GdkDisplay.t 255 65280 24 47 1-24
t/GdkInput.t 1 256 16
Yep, moving the statement up one line did the trick.
Thanks
T.J.
muppet wrote:
> Try changing the code to this:
>
> static void
> gtk2perl_pango_cairo_shape_renderer_func (cairo_t *cr,
> PangoAttrShape * attr,
>
Using VC7. If I compile against pango < 1.17 it compiles fine. Otherwise:
PangoCairo.c
xs\PangoCairo.xs(24) : error C2143: syntax error : missing ';' before
'type'
xs\PangoCairo.xs(26) : error C2065: 'callback' : undeclared identifier
xs\PangoCairo.xs(26) : error C2223: left of '->priv' must poin
*alloc/free is not safe. You should be using New* and Safefree for
*alloc/free calls. I remember the same problem being resolved in DBD-Pg
a little while back. The attached diff is against 1.044. At first I
only changed the calloc/free calls, which were responsible for the test
failure on wind
19 matches
Mail list logo