After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 334663 - Allow to set a parent class to new GObject class
Allow to set a parent class to new GObject class
Status: VERIFIED FIXED
Product: anjuta
Classification: Applications
Component: plugins: file-wizard
CVS HEAD
Other All
: Normal enhancement
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2006-03-15 16:15 UTC by Étienne Bersac
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Étienne Bersac 2006-03-15 16:15:04 UTC
Hello,

Anjuta2 file-wizard plugin have the great feature which allow developper to
easily create new GObject class. Thank you :)

When creating a new GObject Class, user can set parent only for C++. Not with C
Class where file-wizard force the use of GObject as parent class. For example
This is not possible to use a GtkWidget as parent.

I suggest also to use systematically typedef struct _Foo Foo; struct _Foo { ...
}; in order to have clean code generated.

I suggest also to use a wizard to choose wether the new class is in C or C++
instead of tab.

Anjuta2  rocks !

Thanks.
Comment 1 Étienne Bersac 2006-03-15 16:19:46 UTC
This may be replace by a "New GtkWidget class" wizard different from GObject class wizard.
Comment 2 Johannes Schmid 2006-03-16 23:01:00 UTC
After a short discussion Massimo Cora' made a patch:
It implements the possibility to change the parent Class of a C class and generates clean code with typedefs.

A Wizard was rejected in this discussion because it would be overkill and our opinion is that the notebook is better for the job!
Comment 3 Naba Kumar 2006-12-04 10:01:08 UTC
Closing all fixed bugs. Sorry for the mass update :( ...