CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
[solved] glade + perl w/good ol' code

 



Goozer
New User

Nov 30, 2008, 9:27 AM

Post #1 of 3 (736 views)
[solved] glade + perl w/good ol' code Can't Post

hi all.
here is my problem:
i want to write a program in gtk+ using glade and perl.
i made the glade file using glade-gnome-3, and i wrote this code in perl:

Code
#!/usr/bin/perl 

use Gtk2 -init;
use Gtk2::GladeXML;

my $gladexml = Gtk2::GladeXML->new('gui.glade');
$gladexml->signal_autoconnect_from_package('main');
Gtk2->main;

this code worked fine under ubuntu 7.10 and 8.04 but it crashes with this error under ubuntu 8.10 and perl v5.10.0:

Code
goozer@home:~/Documents$ perl gui.pl  
GLib-CRITICAL **: g_markup_escape_text: assertion `text != NULL' failed at gui.pl line 6.
^C
goozer@home:~/Documents$

any ideas? ty and sorry for my bad, chat-like english.
-------------------------------------------------

Life is like a box of chocolates. You never know what you're gonna get.

(This post was edited by Goozer on Dec 3, 2008, 1:40 PM)


KevinR
Veteran


Nov 30, 2008, 1:01 PM

Post #2 of 3 (714 views)
Re: [Goozer] glade + perl w/good ol' code [In reply to] Can't Post

Sorry mate, I have no idea.
-------------------------------------------------


Goozer
New User

Dec 1, 2008, 9:55 AM

Post #3 of 3 (681 views)
Re: [Goozer] glade + perl w/good ol' code [In reply to] Can't Post

np boys, solved using glade-gnome-2
-------------------------------------------------

Life is like a box of chocolates. You never know what you're gonna get.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives