Re: Native Gtk2-Perl apps on Mac OS X

2008-11-09 Thread ofey aikon
Forgive me if someone's already posted about doing this: having installed the GTK+ package from Imendio (gtk-osx.org) on my Macbook I found installing the Gtk2-Perl mods pretty easy. I installed the GTK+ package from Imendio. However, Cairo compilation fails with the following error. [snip]

Re: Gtk2 perl graph saving

2006-06-25 Thread ofey aikon
On 6/24/06, Subhrangshu Supakar [EMAIL PROTECTED] wrote: I am a newbie to Gtk2 perl, Iam not being able to save a graph generated by Gtk2::Ex::Graph::GD. I can tell you how to save the image that is being generated. The $graph-get_image($data) actually gives you a Gtk2::EventBox with a

What happened to our mail archives ?

2006-06-20 Thread ofey aikon
The main page http://mail.gnome.org/archives/gtk-perl-list/index.html does not show the previous months any more. If I type the path explicitly http://mail.gnome.org/archives/gtk-perl-list/2005-June/thread.html that does take me to that particular month. But the main page has no links to that

TreeModelFilter issues

2006-06-02 Thread ofey aikon
In the following code, I have a simple list with a checkbox and a text field. The text field is being filtered using a TreeModelFilter (type in something into the Entry and press search) My trouble is with check-marking a particular row after any kind of filtering has been applied. Before

Re: Which version of what for Win32 at the moment?

2006-03-29 Thread ofey aikon
On 3/20/06, Daniel Kasak [EMAIL PROTECTED] wrote: I'm preparing to do an install for a customer on a Windows system. ActiveState Perl 5.8.8 is out. Will this work with the latest Gtk2-Perl bindings available for Windows ( Gtk2-1080.ppd )? Or should I use ActiveState Perl 5.8.7? Never

Re: Issues with iconview

2006-02-03 Thread ofey aikon
On 1/30/06, muppet [EMAIL PROTECTED] wrote: IconView is a natively-scrollable widget. As such, it typically takes as much space as it is given, and appears to request only some minimal amount. You're adding the IconView to a box and then adding the box to a ScrolledWindow with a viewport.

Issues with iconview

2006-01-29 Thread ofey aikon
I am encountering a strange problem with the iconview widget. Attached are two scripts to demonstrate the case. In the first one, I am creating a pixbuf from a stock_icon and adding it to an iconview and then adding it to a scrolledwindow. Everything works as expected here. In the second one,

Re: Issues with iconview

2006-01-29 Thread ofey aikon
Sorry.. attached the wrong file before :) On 1/29/06, ofey aikon [EMAIL PROTECTED] wrote: I am encountering a strange problem with the iconview widget. Attached are two scripts to demonstrate the case. In the first one, I am creating a pixbuf from a stock_icon and adding it to an iconview

Re: Gtk2 1.103 (stable)

2006-01-20 Thread ofey aikon
The win32 ppms at http://gtk2-perl.sourceforge.net/win32/ppm/ have not been updated since Gtk2-1.100 (15 Sep 2005). Any volunteers to help us, the poor win32 folks, out ? _Ofey. ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

Announcing Gtk2::Ex::GraphViz - 0.01

2005-10-29 Thread ofey aikon
Gtk2::Ex::GraphViz is a Gtk2 wrapper to the GraphViz.pm module. GraphViz package can be used to produce good-looking network graphs. Wrapping with Gtk2 allows those graph images to respond to events such as mouse-over, clicked etc. By implementing callbacks to the respective signals, you can

Re: Announcing Gtk2::Ex::GraphViz - 0.01

2005-10-29 Thread ofey aikon
The package is available in CPAN. http://search.cpan.org/~ofeyaikon/Gtk2-Ex-GraphViz-0.01/ The source can also be found at http://cvs.sourceforge.net/viewcvs.py/gtk2-perl-ex/Gtk2-Ex/GraphViz/ On 10/29/05, ofey aikon [EMAIL PROTECTED] wrote: Gtk2::Ex::GraphViz is a Gtk2 wrapper

Re: Threads and Gtk2

2005-10-19 Thread ofey aikon
On 10/19/05, Javier Godinez [EMAIL PROTECTED] wrote: Even when the variable is shared, I get the same behavior: my $keep_running : shared = 1; You need to ... use threads::shared; ...(code).. my $keep_running : shared = 1; ...(code).. That should work. _Ofey.

Re: Threads and Gtk2

2005-10-19 Thread ofey aikon
#!/usr/bin/perl -w use Gtk2 '-init'; use strict; use threads; use threads::shared; my $keep_running : shared = 1; my $thr1 = threads-new( sub { while ($keep_running == 1 ) { print Hello\n; sleep(1); } }); sub button_callback {

Re: Stocks don't seem

2005-10-14 Thread ofey aikon
I started gtk-demo: in Stock Icons And Items the stocks seem, but in the window ow Button Widgets don't... May be it is your gtk theme that's hiding the stock icons. Regards, _Ofey. ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

Gtk2::Ex::Graph::GD 0.04 is now available

2005-10-13 Thread ofey aikon
Gtk2::Ex::Graph::GD is a thin wrapper around the good-looking GD::Graph module. Wrapping using Gtk2 allows the GD::Graph object to respond to events such as mouse movements and button clicks. You can define callback functions to be called when the user clicks on the bars in the graph or on

Re: Patch for Gtk2::Ex::Dialogs (for win32)

2005-10-02 Thread ofey aikon
On 9/28/05, Kevin C. Krinke [EMAIL PROTECTED] wrote: If you can find the time to create a patch that bumps the version, removes the Gnome2::VFS stuff and uses File::Type instead I would be very pleased. I am attaching two patches. patch1 removes Gnome2::VFS dependency and uses File::Type

ANNOUNCE: Gtk2::Ex::DateRange

2005-09-30 Thread ofey aikon
Gtk2::Ex::DateRange is a simple special purpose widget for specifying a range of dates. (For example, [after '1965-03-12' and on or before '1989-02-14']). I wanted something more than just two plain old Gtk2::Entries for this purpose. So I wrote a little high level widget with 'usability' as the

Re: ANNOUCE: Zim

2005-09-29 Thread ofey aikon
Zim is a WYSIWYG text editor written in Gtk2-Perl. Looks nifty. I got it running on my debian box smoothly. Couldn't get it to work on win32. Issue is File::MimeInfo I guess. So does File::MimeInfo work on win32 without cygwin ? (You have mentioned the same package in the other email thread).

Re: Patch for Gtk2::Ex::Dialogs (for win32)

2005-09-22 Thread ofey aikon
On 9/22/05, muppet [EMAIL PROTECTED] wrote: our $HAVE_VFS = eval use Gnome2::VFS; 1; Thanks ! _Ofey. diff.dat Description: Binary data ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Ordering windows on the desktop

2005-09-15 Thread ofey aikon
Buggy window manager? The taskbar hint really is just a hint; it relies on the window manager paying attention to conventions. Indeed... http://bugzilla.gnome.org/show_bug.cgi?id=106249 Thanks, _Ofey. ___ gtk-perl-list mailing list

Re: Ordering windows on the desktop

2005-09-14 Thread ofey aikon
try without this line: $childwindow-set_type_hint('GDK_WINDOW_TYPE_HINT_DOCK'); That helps. This must be one of those win32 window manager quirks. I do have another related question. I do not want the childwindow to be seen on the taskbar. I set the following.

Re: Long running DBI queries (gtk2 , threads) : Gtk2-Ex-Threads-DBI

2005-09-03 Thread ofey aikon
The module is now available for download at CPAN http://search.cpan.org/~ofeyaikon/Gtk2-Ex-Threads-DBI-0.01/ It is LGPL for your pleasure. Code also in sourceforge at http://cvs.sourceforge.net/viewcvs.py/gtk2-perl-ex/Gtk2-Ex/ Patches are welcome as always. Regards, _Ofey.

Re: Long running DBI queries (gtk2 , threads)

2005-09-02 Thread ofey aikon
On 9/1/05, A. Pagaltzis [EMAIL PROTECTED] wrote: This seems like bad API design. Instead of requiring the programmer to make up a name to refer to the information, return an object from the register call that encapsulates all the necessary information. my $threaded_query =

Long running DBI queries (gtk2 , threads)

2005-09-01 Thread ofey aikon
I want to have my perl-gtk app query a database using DBI and display the query results. Some of the queries can take minutes to run and a naive implementation would mean all GUI interaction was blocked until the $dbh-execute returned. This seems to be a fairly common problem.

/examples/thread_usage.pl

2005-08-30 Thread ofey aikon
I found some more time to tinker with threads... I started playing with the /examples/thread_usage.pl in cvs. Works fine on linux but not quite on win32. I had to patch it as following to make it work on win32. Can some one tell me the story behind this ?

Re: /examples/thread_usage.pl

2005-08-30 Thread ofey aikon
No idea why you'd need it on windows, but it causes the main window never to show up on linux. This makes sense, because enter and leave are supposed to be used by the worker threads, not the main thread. Without that extra line, the UI responsiveness is zero. The window shows up but I see

Re: imagmap

2005-08-27 Thread ofey aikon
Is there a way to create a clickable imagemap in GTK+ (preferably without Gnome so it can run on Windows as well) If you have many or non-rectangular clickable areas, you will use only a single EventBox covering the entire image, and then you must bust out the math and manually check

Re: Using Gtk2::Helper-add_watch() or Glib::IO-add_watch

2005-08-23 Thread ofey aikon
That's quite possible. Win32 is infamous for its rather broken pipes. One aspect of that is that pipes and network sockets behave differently wrt select(), mostly in that pipes tend to be broken while sockets work. Well, after spending a bit more time on this, I concluded that using pipes

Using Gtk2::Helper-add_watch() or Glib::IO-add_watch

2005-08-17 Thread ofey aikon
I am trying to build the functionality where my app issues an sql statement and constantly updates a progressbar (or some other form of feedback) while the sql is being executed by the database. I know this has been discussed here before and one of the solutions was to fork the sql execution into

Re: Using Gtk2::Helper-add_watch() or Glib::IO-add_watch

2005-08-17 Thread ofey aikon
http://live.gnome.org/GTK2_2dPerl_2fFrequentlyAskedQuestions#head-3b88c68683fd189b09455a462d5e41669b7b1142 Thanks ! The FAQ however has some minor syntax errors. I found it being discussed here http://mail.gnome.org/archives/gtk-perl-list/2005-March/msg00107.html I tried the code that

Re: set tooltip on treeview cell/row?

2005-07-25 Thread ofey aikon
On 7/24/05, ofey aikon [EMAIL PROTECTED] wrote: I want to display a tooltip if the mouse hovers over a treeview cell? any ideas? There is no treecolumn attribute to get a tooltip string from a column. There is no shortcut to achieve this, but I think its possible. I don't think I

Re: widget for directory view

2005-07-24 Thread ofey aikon
On 7/24/05, Gábor Szabó [EMAIL PROTECTED] wrote: Now my main question is how do I code it if I cannot read the whole directory tree into memory at once. I'd like to have expanding mark [+] or whatever I get on every directory that has subdirectories. So when I show the first directory list I

Re: set tooltip on treeview cell/row?

2005-07-24 Thread ofey aikon
I want to display a tooltip if the mouse hovers over a treeview cell? any ideas? There is no treecolumn attribute to get a tooltip string from a column. There is no shortcut to achieve this, but I think its possible. # Trap the treeview motion-notify-event. This will tell you when # there

Re: Working with an image from an http request

2005-06-23 Thread ofey aikon
Also documented here... http://live.gnome.org/GTK2_2dPerl_2fRecipes#head-f684ca9e629855a45a836e171c2108c084253e67 Regards, Ofey. ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: any Perl bindings for gtk+extra?

2005-05-19 Thread ofey aikon
Is there any Perl bindings to the GtkExtra Widget Set at http://gtkextra.sourceforge.net/ AFAIK, No ! I am glad to see that finally they made a release (05/17/2005) after such a long time (4 years). Are you looking for any widget in particular ? Our own muppet has created an alpha release

Re: Gtk2::Ex::Datasheet::DBI-0.2 is out

2005-05-19 Thread ofey aikon
I've just finished the 2nd version of Gtk2::Ex::Datasheet::DBI. I guess this won't run quite on win32. 'cos you are using Gtk2::Ex::Dialogs::(ChoosePreviewFile) which requires Gnome::VFS which requires the gnome-vfs-2.0. And I don't know how/where to get that library compiled for M$ machines.

Gtk2-Ex-Graph-GD-0.02 is not available

2005-05-18 Thread ofey aikon
Gtk2::Ex::Graph::GD is a simple wrapper around the good-looking GD::Graph module. Wrapping using Gtk2 allows the GD::Graph object to respond to events such as mouse movements. The only additional functionality as of now is the mouse-over tooltip on the bar graph. Also, you can right-click and

Re: Different graphing options

2005-05-16 Thread ofey aikon
I am looking for excel-like charts for a business application. Therefore no immediate need for math functions etc. One functionality I would love is a 'tool-tip' that would pop-up with the value of the data-point when the user moves the mouse on a data point (like excel). Other than that,

Re: Programatically edit on TreeView?

2005-05-13 Thread ofey aikon
if i'd want to start editing after i click on a Button. How do i do that ? Use gtk_tree_view_set_cursor (path, column, true) to set the cursor on the cell that you need to edit. Then activate the window that the treeview is in. ___ gtk-list mailing

Re: Programmatically popup a tooltip

2005-05-13 Thread ofey aikon
Hrm. Try gtk-app-devel-list. Certainly someone there has solved to this problem already. Googling gave me this thread... Not too helpful for me though. http://mail.gnome.org/archives/gtk-app-devel-list/2004-May/msg00201.html ___ gtk-perl-list

Re: Programmatically popup a tooltip

2005-05-13 Thread ofey aikon
This doesn't seem very satisfactory, but despite a good amount of searching I can't see how widgets and tooltips interface with each other, so there seems not to be any easier approach. I tried a ugly hack like this... my $TOOLTIP = Gtk2::Window-new('toplevel'); $TOOLTIP-set_decorated(0);

Re: Different graphing options

2005-05-09 Thread ofey aikon
Well, that was lot of information and it took me a while to digest it all. Narrow the scope a bit; what's more important? I am looking for excel-like charts for a business application. Therefore no immediate need for math functions etc. One functionality I would love is a 'tool-tip' that would

Re: L10n in Gtk2-perl with Locale::Maketext::Lexicon

2005-05-07 Thread ofey aikon
we should put it somewhere in the wiki: You can add it to the 'recipes' page. http://live.gnome.org/GTK2_2dPerl_2fRecipes The general pattern I've been following is to write a 'problem' and 'solution' section. Then I add relevant portions of the code in the 'solution' section with

Different graphing options

2005-05-05 Thread ofey aikon
I want to do some pretty graphs in Gtk2 using my dataset. I guess my options are the following. 1. Wrap gnuplot. - Rich in functionality. May be too heavy to wrap. Don't know how well it works on win32. 2. Use gtkplot in the gtkextra+ project. - No perl bindings AFAIK. 3. Stream an image

Re: How about a 'recipes' page in the wiki ?

2005-04-27 Thread ofey aikon
Or ::Cookbook, as a collection of recipes would customarily be called. :-) actually i wouldn't necessarily expect the recipes/cookbook style stuff to be runnable scripts anyway. they should be stripped down to only the relevant portion of code with lots of discussion and comments. if

find-as-u-type on a simple::list

2005-04-27 Thread ofey aikon
Uh! I couldn't resist sending this one out :) My own little 'find-as-you-type' searchbox for a Gtk2::Ex::Simple::List [ Type something in the textbox on top ] If a perl wizard here with plenty of free time in hand is interested in optimizing it just for fun, I sure will enjoy the learning

Re: How about a 'recipes' page in the wiki ?

2005-04-26 Thread ofey aikon
My snippets collection is organized into catagories like: font/fun/ glade/ objects/ Gtk1/ gnome/ packing/ progressbar/ My original intention was to maintain stuff in the wiki. Easy to update and easy to enter new examples. But looks like you have a whole lotta stuff in your

Re: Installation problems on windows

2005-04-24 Thread ofey aikon
I want to clean up the Win32 installation instructions from the wiki FAQ. I assume the latest instructions are as follows. -- For ActiveState users * I assume you already have ActiveState Perl installed on your system. If not,

Re: Problems with GtkPaned

2005-04-01 Thread ofey aikon
3.) This one is for Win32 only, probably gtk bug: When dragging the GtkPaned handle to resize panes, screen where handle passed is not redrawn (ends garbled). The same code works fine on Linux (FC3). This works for me. Are you using the windows-alike theme engine? I've had

UI for scheduling events (appointments)

2005-03-16 Thread ofey aikon
One of the apps that I am writing requires a UI to specify a recurring set of 'events' (events in the calendar sense). Like a meeting appointment for example, on all mondays and thursdays for the next 3 months. Kinda like Evolution/Outlook meeting schedule. Ripping anything from Evolution may be

Gtk2::Ex::RecordsFilter - 0.03

2005-03-01 Thread ofey aikon
Gtk2::Ex::RecordsFilter is a high level widget to browse reasonably large amounts of relational data and select a subset of records. This widget is inspired by the song browser of iTunes/Rhythmbox. I believe that this widget can be used in other areas too. For example, in a business application.

Gtk2::Ex::TreeMaker - 0.04 is now available !

2005-02-01 Thread ofey aikon
The version 0.04 can be downloaded from http://sourceforge.net/project/showfiles.php?group_id=121463package_id=142803 INTRODUCTION: Gtk2::Ex::TreeMaker is my humble attempt to create a generic high-level widget using the Gtk2::TreeView. This widget was written with typical business applications

win32 binaries for GTK+

2004-06-05 Thread ofey aikon
Where can I download win32 binaries for GTK+ ? I had downloaded one of the earlier versions from http://www.dropline.net/gtk/ .But in that site, Todd now suggests to download from Tor's site instead, at http://www.gimp.org/win32 . I have been trying to access the second link above for the past few