GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Aug 31, 2016 2:10 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Invalid object type for all gtk widgets
PostPosted: Fri Jul 05, 2013 9:01 am 
Familiar Face

Joined: Wed Jan 23, 2013 5:18 pm
Posts: 26
Hi, I am using gtk+ - 2.24.19. for PPC cross platform.

In my target the example programs(gtk+-2.24.19/examples) are working fine.
But when i try to run glade file with gtk builder i am getting following error

my code

//Initialise GTK+
    gtk_init( &argc, &argv );
   //Create new GtkBuilder object
    builder = gtk_builder_new();
if( ! gtk_builder_add_from_file( builder, "", &error ) )
            g_warning( "%s", error->message );
            g_free( error );
            return( 1 );

the error is

WARNING **: Invalid object type `GtkWindow'

the application got killed.

My file has a simple window with 3 labels.

Please help

Note to Errol I am reverting back with the same error again.

None of us is stronger than all of us

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 5 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group