GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Dec 18, 2014 11:07 pm

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 
Offline
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

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


the error is

Quote:
WARNING **: Invalid object type `GtkWindow'

the application got killed.

My test.glade file has a simple window with 3 labels.

Please help

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

_________________
Thanks,
Arief.
None of us is stronger than all of us


Top
 Profile  
 
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: Google [Bot] and 3 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