Re: Gtk2::Liststore multiple columns

2005-11-30 Thread Boštjan Špetič
I want to create a list with multiple columns. Therefore I use the script added below (actually there are 8 columns, but I reduced them to make it less complicated). The subroutine abfrage_all returns an array  with references to arrays. Each referred array is a row in a database. I now want to

circular buttons?

2005-08-09 Thread Boštjan Špetič
hi is there a way to make circular button in gtk2? i guess i could do it with images, but is there a better way? regards, bostjan -- igzebedze - he who speaks loud and say nothing ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

Re: Event Handling

2005-08-04 Thread Boštjan Špetič
I have a question about events. I have some sample code that I took from one of the examples that hooks up an event handler to a Gnome2::Canvas::Rect as follows: $rect-signal_connect (event=rectevent); and then later there's the handler code: sub rectevent { warn(event: . $event-type .

arrow type

2005-07-11 Thread Boštjan Špetič
hi i'm using the 'arrow' widget... when i wnat to change direction with: $me-set('arrow-type' = 'right'); i get an error: *** unhandled exception in callback: *** FATAL: invalid enum GtkArrowType value arrow-type, expecting: up / GTK_ARROW_UP, down / GTK_ARROW_DOWN,

Re: Localization and accented chars

2005-05-27 Thread Boštjan Špetič
I have localized my Gtk2 app in this way: use Locale::gettext; use POSIX qw(setlocale); use Encode qw(decode); sub _ {return decode(iso-8859-1,dgettext( PACKAGE,$_[0]));} setlocale(LC_MESSAGES, ); textdomain(PACKAGE); i think the problem is in the decode('iso...')

submenu items activate signals... 2

2005-05-12 Thread Boštjan Špetič
hi first, i'm sorry for the mess on the list because of my previous post... ... the context submenu still doesn't work. muppet's example works perfectly, and i copied it literaly to my code, and it stopped working. now, i am attaching the whole function, and maybe somebody will see what's

Fwd: submenu items activate signals...

2005-05-11 Thread Boštjan Špetič
hi i have a problem with creating a submenus, because the signals somehow don't get connected / nothing happens... here's an excerpt: - my $form = get_form; my $menu = new Gtk2::Menu; my $cols = new Gtk2::Menu; my $columns =

Re: spinbutton behaviour and key bindings for treeview

2005-04-05 Thread Boštjan Špetič
... ok, it's key_release, but i guess it's irrelevant? maybe, maybe not. why did you choose release? mmm... just so that nothing happens if i hold the key instead of simply hitting it... i don't like it if holding button means consecutive actions... Here's a working example i just cooked up:

spinbutton behaviour and key bindings for treeview

2005-04-03 Thread Boštjan Špetič
hi 1) i've noticed strange spinbutton behaviour: - i've created it with glade and set it a default value. it is placed in a notebook. - the i changed it's value from the code, but using -set_text call. - if it's tab is active while the update happens, all is well, but if i have some other tab

Re: spinbutton behaviour and key bindings for treeview

2005-04-03 Thread Boštjan Špetič
Yes. Connect to the key-press-event of the tree view, handle events for which $event-keyval == $Gtk2::Gdk::Keysyms{ Delete } and return TRUE. When you edit a cell, the tree view doesn't have focus and thus doesn't receive events either -- so your signal handler never gets called. ... well, i

pixmpa plotting

2005-01-26 Thread Boštjan Špetič
i'm tracking an output of an external program and plotting a graph based on it. i've got my pixmap plotting quite nicelly now... but: a) how do i resize it properly, if the main window is resized? b) i'd like it to continue plotting, after the points reach it's border - maybe use a scrollbar and