GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Aug 30, 2014 8:12 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: SubClass GtkWindow and Buildup with Glade
PostPosted: Thu Jul 05, 2012 5:22 pm 
Offline

Joined: Thu Jul 05, 2012 8:57 am
Posts: 1
Hi,

I'm new to Gtk development.
In c# winforms when you want to create a form you start be subclassing it a adding controls.

I'm trying to do something similar but I don't realy know how.
How can I SubClass a GtkWindow that is created using Gtk_Builder?

I'd like to design the window with Glade but in this case the parent needs to be set by the GtkWindow than was created with the Gtk_Builder
The problem i can set the parent like this I think
self->parent = (GtkWindow*)gtk_builder_get_object(self->builder, "window");

How is this usually handled?
I'm using C


Attachments:
File comment: my mainwindow
src.tar.gz [928 Bytes]
Downloaded 93 times
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: No registered users 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