|
Problem with the extension of a new widget
Hi all, I appeal to all those who have already had experience in creating sub-classes of widget, from existing widget.
My intention was to create a more advanced class GtkTreeView, to extend some of its functions, and provide a simple interface (not just graphics) to create programs that operate on the database.
The problem has a cause logic... :S
... because, logically and functionally, my class inherited from GtkTreeView, but graphically, to integrate a toolbar of buttons, should inherit from GtkVBox.
At the time, I corrected the problem, adding the widget to the container generally exploiting gtk_widget_get_parent () .... This course allowed me to continue development of my class, but it certainly has not solved the problem.
The intension is to continue to make so that the class continues to inherit from GtkTreeView, to take advantage of certain features and some signals already present, but avoiding having to access with the GtkVBox that the continene to integrate with the rest of the window.
Honestly, after much effort, I would hate not being able to provide this widget to blame for this "conflict" of inheritance. If any of you can help me, I'd be very grateful! :)
|