Problem with Gtk2

Discussion in 'Perl Misc' started by Guenther Sohler, Aug 9, 2005.

  1. I have a problem with List Widgets in Gtk2-perl

    I have simplified my program to this one.
    But it still produces a segmentation fault on my sparc sun solaris 2.9
    machine. Do i use it in a wrong way ?

    #!/usr/bin/env perl
    use Gtk2 '-init';
    use strict;

    my @list_items = ( new Gtk2::ListItem->new_with_label( "test" ) );
    my $lst=new Gtk2::List();
    $lst->append_items(@list_items);

    my $window = new Gtk2::Window( "toplevel" );
    $window->add( $lst ) ;
    $window->show_all();
    Gtk2->main;
     
    Guenther Sohler, Aug 9, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. oxman
    Replies:
    1
    Views:
    106
    oxman
    Aug 15, 2003
  2. David Espada
    Replies:
    2
    Views:
    130
    David Espada
    Apr 28, 2004
  3. Krisztian VASAS

    problem between perl-gtk2 and POE::Session

    Krisztian VASAS, Jun 21, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    103
    Rocco Caputo
    Jun 24, 2004
  4. Krisztian VASAS

    Problem with Gtk2 and POE

    Krisztian VASAS, Jun 28, 2004, in forum: Perl Misc
    Replies:
    4
    Views:
    127
    Rocco Caputo
    Jun 30, 2004
  5. prameela

    Is it a gtk2 problem or Threads problem

    prameela, Mar 19, 2006, in forum: Perl Misc
    Replies:
    0
    Views:
    86
    prameela
    Mar 19, 2006
Loading...

Share This Page