Re: Cannot call Gio::File::new_for_path

2020-03-31 Thread Torsten Schönfeld
On 31.03.20 18:53, David Breeding via gtk-perl-list wrote: Trying to implement the following code: my $cs = Gtk3::CssProvider->new(); $cs->load_from_file(Gio2::File::new_for_path("$ENV{HOME}/.config/poolstore/ps.css")); my $context = $w_main->get_style_context();

Re: Glib::[gs]et_prgname

2020-01-02 Thread Torsten Schönfeld
On 02.01.20 12:43, Jeff via gtk-perl-list wrote: Bitten by a problem that looks as if it requires me to Glib::set_prgname() to solve[1], I attempted to use it, only to discover that although the code is in the git repo, it is commented out[2]. Why? I don't know. Most likely, no-one saw a use

Re: Cairo patches currently in RT queue

2019-09-03 Thread Torsten Schönfeld
On 28.08.19 22:29, Brian Manning via gtk-perl-list wrote: Can anyone take a look at the Cairo patches currently in RT submitted by Johan Vromans? Cairo set_metadata: https://rt.cpan.org/Ticket/Display.html?id=130308 Cairo tag_begin/tag_end: https://rt.cpan.org/Ticket/Display.html?id=130326 I

Re: Drawing Area issues ( continued, with example )

2017-10-11 Thread Torsten Schönfeld
"Daniel Kasak" : > Does anyone know ... would this bug be in the bindings, or in gtk+ or cairo? If I understand correctly, this is by design. GtkDrawingArea does not have its own GdkWindow, hence all GtkDrawingAreas within a GtkWindow share the underlying GdkWindow and

Re: How to test object type and do casting in G::O::I

2017-08-08 Thread Torsten Schönfeld
"Robin Lee" : > I am playing GIRepository with G::O::I. > I get a GIRepository::BaseInfo object from gir get_info funtion. > > One question is how to test whether this object is a > GIRepository::CallableInfo. > > And another question is how to cast this object to a >

Re: Struggling with TreeModelFilter

2017-05-22 Thread Torsten Schönfeld
"Mike Martin" : > sub cell_edited { > my ($cell, $path_string, $new_text, $model1) = @_; You're example code is not complete, but $path_string here most probably refers to the filtered model. > my ($model,$column)=@{$model1}; And $model is most likely the unfiltered model.

Re: Question and possibly bugs about string encoding in gtk-perl

2016-12-16 Thread Torsten Schönfeld
On 16.12.2016 20:02, Dominique Dumont wrote: On Wednesday, 14 December 2016 10:54:16 CET Boyuan Yang wrote: The original messy output, as indicated in screenshot in the Ubuntu bug, looks like treating a latin-1-encoded binary data as UTF-8-encoded data and showing them anyway. In more

Re: "Not a CODE reference" error with Gtk::Bus::add_watch

2016-11-20 Thread Torsten Schönfeld
On 20.11.2016 14:30, Wouter Verhelst wrote: my $pipeline = Gst::parse_launch("..."); my $bus = $pipeline->get_bus(); $bus->add_watch(\, $mainloop); $mainloop->run(); Since gst_bus_add_watch is not introspectable directly, the GStreamer authors marked gst_bus_add_watch_full as its

Re: 'Cannot convert arbitrary SV to GValue' when setting child property of GtkStack

2016-08-09 Thread Torsten Schönfeld
"Daniel Kasak" : > I'm trying to set the 'needs-attention' property of a GtkStack's child page. > > When I go: > > use Glib qw( TRUE FALSE ); > > my $needs_attention = FALSE; > > if ( $self->{ 'Column' . $i . 'Datasheet' }->count ) { > $needs_attention = TRUE; > } >

RE: Compiling Glib 2.16.5 on strawberry perl

2016-06-29 Thread Torsten Schönfeld
"RAPPAZ Francois" : > The makefile is coming from > > perl Makefile.pl INC="-IC:\prog\gtk+\include\glib-2.0 > -IC:\prog\Gtk+\lib\glib-2.0\include -I. -I./build" LIBS="-LC:/prog/gtk+/lib > -lglib-2.0 -lintl " I don't understand why you need to specify INC and LIBS

Re: Compiling Glib 2.16.5 on strawberry perl

2016-06-28 Thread Torsten Schönfeld
"RAPPAZ Francois" : > "C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- > Glib .bs blib\arch\auto\Glib\Glib.bs 644 [ LD blib\arch\auto\Glib\Glib.xs.dll > ] Cannot export SvGVariant: symbol not defined ... That looks like a bug indeed. It

Re: G::O::I based bindings and problem passing char array ref

2016-06-10 Thread Torsten Schönfeld
"Torsten Schoenfeld" > So I think at this point it would be best to create a bug report against > poppler. I found an old bug report about this very issue: . It was closed as invalid, but I think that was due to a

Re: G::O::I based bindings and problem passing char array ref

2016-06-03 Thread Torsten Schönfeld
"Jeremy Volkening" : > > I see that the data argument to "new_from_data()" is specified as a > > utf-8 char array, but the contents of the PDF files (those that use > > compressed blocks) are not actually straight UTF-8. Is it possible > > that perl-G:I:O sees the specs and is

Re: [PATCH] Pango: fix linking

2015-11-21 Thread Torsten Schönfeld
On 21.11.2015 11:30, Torsten Schönfeld wrote: [...] Generating POD... /usr/bin/perl5.22.0: symbol lookup error: blib/arch/auto/Pango/Pango.so: undefined symbol: pango_cairo_font_map_get_type Why does adding a space to the linker args fix this? pango_cairo_font_map_get_type was introduced

Re: Gtk2::TreeModel get() vs bleeding perl EXTEND()

2015-11-21 Thread Torsten Schönfeld
On 08.11.2015 09:34, Kevin Ryde wrote: Apparently perl 23.something pre-releases are threatening to make xs EXTEND() of negative amounts an error. I have this from cpantesters of some of my code per https://rt.cpan.org/Ticket/Display.html?id=108274 but I don't have a bleeding perl to actually

Re: perl-Gtk2: GdkWindow.t fails with libgtk2 2.24.28 and libgdk-pixbuf2.0 2.31.4-2

2015-08-14 Thread Torsten Schönfeld
intrigeri+deb...@boum.org writes: $ prove -l t/GdkWindow.t t/GdkWindow.t .. 1/58 *** Error in `/usr/bin/perl': free(): invalid size: 0x015ac210 *** t/GdkWindow.t .. Failed 36/58 subtests I could finally reproduce the problem. Should be fixed with

Re: Bindings for a 3rd-party library

2015-07-09 Thread Torsten Schönfeld
Daniel Kasak d.j.kasak...@gmail.com: This part does *something: Glib::Object::Introspection-setup( basename = 'GtkFlow' , version = '0.2' , package = 'GtkFlow' ); ... because if I don't adjust my LD_LIBRARY_PATH, I get errors about missing libraries. When I set

Re: Tracking Gtk2 error messages

2015-06-24 Thread Torsten Schönfeld
On 14.06.2015 04:58, Ian Chapman wrote: How do I determine which widget is the cause of errors such as this? Gtk-CRITICAL **: IA__gtk_widget_grab_default: assertion 'gtk_widget_get_can_default (widget)' failed If you don't mind using a debugger and reading C backtraces, set the environment

Re: Bindings for a 3rd-party library

2015-05-22 Thread Torsten Schönfeld
Daniel Kasak d.j.kasak...@gmail.com: I'm wondering ... how much work is involved in getting Perl bindings for this library working? I guess it would depend on how it's written? Or does the introspection that comes along with gtk3 make it generally an easy task? Something like this should get

Re: GtkSettings

2015-05-20 Thread Torsten Schönfeld
Daniel Kasak d.j.kasak...@gmail.com: Anyway, to help debug, I'm looking for a way to get hold of the GtkSettings: https://developer.gnome.org/gtk3/stable/GtkSettings.html#gtk-settings-get-default Is this covered by the bindings? Gtk3::settings_get_default() doesn't seem to work, nor does any

Re: Glib::Object::Introspection 0.028 available

2015-02-26 Thread Torsten Schönfeld
Thierry Vignaud thierry.vign...@gmail.com On 26 February 2015 at 08:18, Brian Manning c...@xaoc.org wrote: Overview of changes in Glib::Object::Introspection [2015-02-25] === * Harmonize the format of type names in error messages

Re: Gtk2 1.2495 (stable) available

2015-01-28 Thread Torsten Schönfeld
intrigeri intrigeri+deb...@boum.org: Brian Manning wrote (28 Jan 2015 02:10:23 GMT) : Overview of changes in Gtk2 1.2495 (stable) [2015-01-27] * Fix incorrect memory management in Gtk2::Gdk::Display::list_devices Did that bug

Re: wiki surgery

2015-01-17 Thread Torsten Schönfeld
On 16.01.2015 12:45, Emmanuele Bassi wrote: I finally had some time (and enough of a head cold that I had to do something mechanical or just lie in bed) this morning to do some shuffling around of the GTK-Perl wiki pages. Thanks a lot, Emmanuele! That's exactly what I had in mind and have

Re: Installing Glib::Object::Introspection

2015-01-17 Thread Torsten Schönfeld
On 12.01.2015 13:15, Ed . wrote: Separately, the XSMULTI feature would dramatically simplify various parts of the Glib build process; see the bottom of this EUMM FAQ section: https://metacpan.org/pod/release/BINGOS/ExtUtils-MakeMaker-7.05_07/lib/ExtUtils/MakeMaker/FAQ.pod#Bootstrapping How

Re: Fetching GstBuffer Flags in GStreamer1

2015-01-17 Thread Torsten Schönfeld
On 06.01.2015 01:40, Timm Murray wrote: Well, it's fetched through the macro GST_BUFFER_FLAGS. There seems to be different implementations for GStreamer 1.0 and 0.10. The 1.0 version passes it along to GST_MINI_OBJECT_FLAGS. 0.10 has its own flags field. If you can call the macro, then you

Re: segfault using extension events in Gtk2's scribble.pl

2015-01-17 Thread Torsten Schönfeld
On 05.12.2014 12:10, Torsten Schönfeld wrote: Ah, I think I see the problem then. We free the list returned by gdk_display_list_devices: https://git.gnome.org/browse/perl-Gtk2/tree/xs/GdkDisplay.xs#n59 But its docs state that [t]he list is statically allocated and should not be freed

Re: Gtk3 context menu

2015-01-17 Thread Torsten Schönfeld
On 25.08.2014 23:07, Torsten Schönfeld wrote: On 25.08.2014 20:24, Yuri Myasoedov wrote: But when you use Gtk3: (Gtk2::Widget, Gtk3::Gdk::EventButton) - first click (Gtk2::Widget, Gtk3::Gdk::EventButton) - second click (Gtk2::Widget, Gtk3::Gdk::Event) - 2button-press !!! I have no idea, why

Re: Gtk3 Spinner does not spin

2014-12-08 Thread Torsten Schönfeld
Juergen Harms juergen.ha...@unige.ch: However, I appear to advance from a learning problem to a banging-your-head problem (I am using perl-Gtk3-0.19.0 ): $gtk_settings = Gtk3::Settings-get_default (); fails with passed too many parameters (expected 0, got 1) and when I do what I really

Re: Porting perl-GStreamer to gst 1.0

2014-12-06 Thread Torsten Schönfeld
On 06.12.2014 07:01, Brian Manning wrote: I made some changes to the docs for GStreamer(0), with notes about both C libs/Perl modules being able to be installed concurrently, as well as links to GStreamer1. Looks good to me. Thanks, Brian! ___

Re: segfault using extension events in Gtk2's scribble.pl

2014-12-05 Thread Torsten Schönfeld
gvb postdo...@yahoo.fr: Here is a C code that enables the extended devices (then fires up the InputDialog to check they are enabled): initialize_input_devices.c http://gtk.10911.n7.nabble.com/file/n85894/initialize_input_devices.c I tried translating it like this my

Re: segfault using extension events in Gtk2's scribble.pl

2014-12-05 Thread Torsten Schönfeld
gvb postdo...@yahoo.fr: Thanks a lot for your reply. I've been able to solve the problem (see code below: grabbing the device list without reference to the main window works a charm...). I don't understand why the above method failed (the display has a devices_list method, and it reports the

Re: Porting perl-GStreamer to gst 1.0

2014-11-22 Thread Torsten Schönfeld
On 22.11.2014 03:58, Timm Murray wrote: Got it all working using appsink rather than fakesink, which is probably more appropriate. It avoids the use of a callback (which I'm still not sure what I was doing wrong there). Anyway, that gets me to where I wanted to be. I'll be throwing it up on

Re: Porting perl-GStreamer to gst 1.0

2014-11-20 Thread Torsten Schönfeld
vividsnow vivids...@gmail.com: try Glib::Object::Introspection::GValueWrapper like here: https://gist.github.com/vividsnow/06e8eb21165d6f01a8bf#file-gstreamer-video-test-pl-L17 Exactly. See [1] for a short explanation. You would probably make those people happy that try to port from

Re: Porting perl-GStreamer to gst 1.0

2014-11-14 Thread Torsten Schönfeld
Timm Murray tmur...@wumpus-cave.net:  I've made a full module out of it as Gst::*.  I'm open to suggestions on the namespace; I don't necessarily want to clobber the existing GStreamer module on CPAN.  I thought maybe doing GStreamer10, but putting the version in the namespace doesn't seem

Re: Porting perl-GStreamer to gst 1.0

2014-11-14 Thread Torsten Schönfeld
Ed . ej...@hotmail.com: If the CPAN GStreamer doesn’t work properly now, then it ought to be clobbered? It does work properly with libgstreamer 0.x. ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

Re: Porting perl-GStreamer to gst 1.0

2014-11-13 Thread Torsten Schönfeld
Timm Murray tmur...@wumpus-cave.net: Thanks, I was able to get a basic pipeline going: https://github.com/frezik/Gst Excellent! The original C tutorial uses timed_pop_filtered() like this: msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_ERROR | GST_MESSAGE_EOS);

Re: Porting perl-GStreamer to gst 1.0

2014-11-12 Thread Torsten Schönfeld
Timm Murray tmur...@wumpus-cave.net: Thanks, that was easy.  There were a couple critical symbols it didn't pick up, like GST_STATE_PLAYING (which I expect would become GStreamer::STATE_PLAYING).  I used Devel::Symdump to recursively drop everything under the 'GStreamer::' namespace and I

Re: Porting perl-GStreamer to gst 1.0

2014-11-11 Thread Torsten Schönfeld
Timm Murray tmur...@wumpus-cave.net: Has anyone made an attempt to port the current GStreamer bindings to the 1.0 API?  Looks like these haven't been touched in 13 months, and it's stuck on the 0.10 API (which is no longer being supported).  I have some use for gst dealing with the

Re: GNOME 3 Application Menu

2014-09-04 Thread Torsten Schönfeld
me...@seznam.cz: If perl-Glib does not support GVariant and API is missing, how to make GNOME's application menu then? Is it possible? I can add items in application menu but if I click on them, application crashes. Can you provide a small but complete example program that shows this

Re: Gtk3::Clipboard problem

2014-09-02 Thread Torsten Schönfeld
me...@seznam.cz: my $clipboard = Gtk3::Clipboard::get(Gtk3::Gdk::Atom::intern('clipboard', 0)); $clipboard-set_text($col1content, length $col1content); Try capitalizing the name, as in CLIPBOARD. I'm not sure whether capitalization matters, but this spelling is what is generally advertised

Re: Gtk3 context menu

2014-08-25 Thread Torsten Schönfeld
On 25.08.2014 20:24, Yuri Myasoedov wrote: But when you use Gtk3: (Gtk2::Widget, Gtk3::Gdk::EventButton) - first click (Gtk2::Widget, Gtk3::Gdk::EventButton) - second click (Gtk2::Widget, Gtk3::Gdk::Event) - 2button-press !!! I have no idea, why Gtk3::Gdk::Event is used instead of

Re: Glib::JSON 0.001 (trial)

2014-02-25 Thread Torsten Schönfeld
Emmanuele Bassi eba...@gmail.com: It seems that Glib::JSON depends on Glib::IO which is not available on CPAN.  mmh, you're right: Glib::IO seems to be unfinished as well. I should have a look at it, if Torsten is okay with that.   Yes, I'd be delighted if you polished it up a bit and put it on

Re: Where do I find the constants?

2014-01-03 Thread Torsten Schönfeld
Thanks for your input, Christian. Some specific comments: On Fr, 2014-01-03 at 08:19 +, Christian Jaeger wrote: That leaves me wondering whether my script stops working when perl-Gtk3 is upgraded. Yes, there might be more API changes in the future when I tackle a new subset of gtk+ and

Re: Where do I find the constants?

2013-12-30 Thread Torsten Schönfeld
On Mo, 2013-12-30 at 11:34 -0600, Dave M wrote: This one has an example of what you're looking for: https://github.com/dave-theunsub/gtk3-perl-demos/blob/master/dialog_boxes.pl One small addition: The code above contains use constant GTK_RESPONSE_OK = -5; for use in a call to

Re: Where do I find the constants?

2013-12-30 Thread Torsten Schönfeld
On Mo, 2013-12-30 at 18:53 +, Christian Jaeger wrote: To solve future cases, the question remains about how would I get to know that if ($dialog-run == Gtk::RESPONSE_ACCEPT) should be if ($dialog-run == ok) It should not. It should be if ($dialog-run eq

Re: Can't locate object method set_tab_hborder via package Gtk3::Notebook

2013-03-16 Thread Torsten Schönfeld
Juergen Harms juergen.ha...@unige.ch writes: Trying to convert a gtk2 application to gtk3, I get the above error message - looks like set_tab_hborder and set_tab_vborder is not mapped in Perl-Gtk3 (Mageia perl-Gtk3-0.9.0-1) - maybe also the corresponding get_... functions, I did not check

RE: Pango Attributes not being added to list

2013-01-29 Thread Torsten Schönfeld
Jeff Hallock jhall...@wbanda.com writes: On my desktop, the script produces: attributes: Pango::AttrFontDesc=SCALAR(0x299ebb4) Pango::AttrForeground=SCALAR(0x299ec34) On the server, the script produces: attributes: I cannot reproduce this on Linux. I tried two things: a) compile and

Re: Glib::Object::Introspection 0.001 available

2011-08-11 Thread Torsten Schönfeld
Mario Kemper mario.kem...@googlemail.com: t/00-basic-types.t . XSLoader::load('Your::Module', $Your::Module::VERSION) at /usr/lib/perl/5.10/XSLoader.pm line 25. Compilation failed in require at ./t/inc/setup.pl line 1. BEGIN failed--compilation aborted at ./t/inc/setup.pl line 1.

Re: Glib::Object::Introspection 0.001 available

2011-08-11 Thread Torsten Schönfeld
Mario Kemper mario.kem...@googlemail.com: 'make test': t/00-basic-types.t . Can't load '/home/mkemper/Downloads/perl-Glib-Object-Introspection/blib/arch/auto/Glib/Object/Introspection/Introspection.so' for module Glib::Object::Introspection: