Glib IO watchers don't work on Windows

2017-03-15 Thread Peter Juhasz
en exists. On Windows, with perl >= 5.18, it goes as far as "ok 6" then hangs (with 0% CPU), with perl <= 5.16, it goes only to "ok 4", then hangs (with 100% CPU). No AnyEvent here, no obsolete Gtk2, no fancy stuff, just plain Gib. (Glib version 1.305, libglib version 2.28) If this is a known and expected state of affairs, then it would have been good if it were documented somewhere. Thanks, Peter Juhasz ___ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Async HTTP download with Glib event loop doesn't work on windows

2017-03-10 Thread Peter Juhasz
On Fri, Mar 10, 2017 at 4:38 PM, Emmanuele Bassi wrote: > Without knowing how AnyEvent works, if the handler involves threads > then calling *any* GTK+ API from different threads than the one that > called `gtk_main()` is going to blow up your application. Even if it > worked in one release, duri

Re: Async HTTP download with Glib event loop doesn't work on windows

2017-03-10 Thread Peter Juhasz
Perl 5.16.3 and below it fetches the data from the network and displays it in a window, on 5.18.4 and above it hangs. I've looked at the perldelta docs for 5.18 but nothing obvious stood out. Now what? Peter On Thu, Mar 9, 2017 at 5:32 PM, Brian Manning wrote: > On Wed, Mar 8, 20

Async HTTP download with Glib event loop doesn't work on windows

2017-03-08 Thread Peter Juhasz
ertised here a few weeks ago) AnyEvent 7.13 Finally, my question: is there any hope that this issue will be fixed, or at least its cause be found, or should we abandon this approach entirely? best regards, Peter Juhasz ___ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list

How to access to the buttons of a Gtk2::Dialog?

2010-10-12 Thread Peter Juhasz
Dear list, I want to add a simple search dialog to my application. The idea is to grey out the "Search next" and "Search previous" buttons until the user has written something to the search field. Obviously, I'd use something like: my $dialog = Gtk2::Dialog->new_with_buttons ($gui_string

Re: gtk tree get selected field

2010-10-12 Thread Peter Juhasz
my @columns = $tview->get_columns; sub button_pressed_event { my ($widget, $event) = @_; my ($path, $column) = $slist->get_cursor; # do what you want with $column... # or if you want to check for a specific column: if ($column == $columns[0]) { # do whatever with it

Re: How do I destroy window without freezing window?

2009-09-11 Thread Peter Juhasz
On Fri, Sep 11, 2009 at 8:52 PM, Perl Whore wrote: > How do I make it immediately kill/quit/destroy the > window? > > > destroy the window That's exactly how. Put a $dialog->destroy; before your Gtk2->main_quit;. By the way, if that's all the GUI you use in your program, consider dropping Gtk2

Re: New to GTK+ and a question about Combo boxes.

2009-09-02 Thread Peter Juhasz
On Wed, Sep 2, 2009 at 9:31 PM, Peter Juhasz wrote: > One more thing... instead of  $E{"${element}_year"}{'data'}, you could > simply write $E{${element}_year}{data}. Sorry, I didn't pay attention, that's not entirely true. Still, $E{${element}."_y

Re: New to GTK+ and a question about Combo boxes.

2009-09-02 Thread Peter Juhasz
On Tue, Sep 1, 2009 at 4:29 AM, Steve Manes wrote: > I'm building a Perk-GTK application on Windows which includes a "date" > element, which is three ComboBoxes clustered together in an Hbox: month, > day, year. > > Since there are several places in the application where a date is added, I > built

Re: Gtk2::Assistant page flow

2009-07-31 Thread Peter Juhasz
On Thu, Jul 30, 2009 at 7:12 PM, muppet wrote: > > On Jul 16, 2009, at 1:17 PM, Peter Juhasz wrote: > >> There is one more thing (for now, anyway) I'd like to ask your help about. >> >> I want to set up a Gtk2::Assistant. On the first page of the assistant >

Re: Gtk2::Assistant page flow

2009-07-21 Thread Peter Juhasz
On Thu, Jul 16, 2009 at 7:17 PM, Peter Juhasz wrote: > There is one more thing (for now, anyway) I'd like to ask your help about. > > I want to set up a Gtk2::Assistant. On the first page of the assistant > there is an Entry field. What I'm trying to achieve is that if th

Gtk2::Assistant page flow

2009-07-16 Thread Peter Juhasz
There is one more thing (for now, anyway) I'd like to ask your help about. I want to set up a Gtk2::Assistant. On the first page of the assistant there is an Entry field. What I'm trying to achieve is that if the value entered into this field is invalid (empty or already present in the database),

Gtk2::TreeView get_path_at_pos doesn't return array on Windows

2009-07-15 Thread Peter Juhasz
(I was instructed on Perlmonks to post this problem here.) I'm writing a Gtk2-Perl app with a Gtk2::Ex::Simple::List (which is derived from TreeView, hence the title). I want to set up one of the columns in a special way, specifically, I want this column to hold values from a short list, and each