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 129772 - Add Warning about code-generation
Add Warning about code-generation
Status: RESOLVED FIXED
Product: glade-legacy
Classification: Deprecated
Component: general
unspecified
Other Linux
: High normal
: ---
Assigned To: Damon Chaplin
Damon Chaplin
Depends on:
Blocks:
 
 
Reported: 2003-12-21 11:08 UTC by Murray Cumming
Modified: 2005-08-15 01:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glade2_codegeneration_warning.patch (3.44 KB, patch)
2003-12-21 11:09 UTC, Murray Cumming
none Details | Review

Description Murray Cumming 2003-12-21 11:08:30 UTC
This patch (glade_codegeneration_warning.patch) adds a warning in the
Options dialog so that beginners know that they should use libglade instead
of code generation.
Comment 1 Murray Cumming 2003-12-21 11:09:14 UTC
Created attachment 22612 [details] [review]
glade2_codegeneration_warning.patch
Comment 2 Damon Chaplin 2004-01-04 11:47:35 UTC
This is documented at the top of the README and in the FAQ, so I don't
really think we need to add it to the dialog.

C code generation is fine for new users playing with small projects.
Comment 3 Murray Cumming 2004-01-05 11:19:39 UTC
It's not fine. It's a massive problem leading to massive confusion
among beginners. Various READMEs, FAQs, and repeated explanations in
email archives are not fixing this problem.

I see no disadvantage to apply this patch, and great advantage to
applying the patch.
Comment 4 Arnaud Charlet 2004-01-05 13:54:31 UTC
I disagree with this proposed patch: generating code may be
innapropriate for serious C or C++ projects, but is completely
appropriate for e.g. Ada projects.

Arno
Comment 5 Murray Cumming 2004-01-05 14:01:17 UTC
> generating code may be innapropriate for serious C or C++ projects, 
> but is completely appropriate for e.g. Ada projects.

The patch adds the warning in 2 places - for C-code-generation
options, and for code-generation in general. I am happy to rephrase
the 2nd warning to mention C.

Even for GtkAda, I suspect that code-generation has disadvantages
compared to libglade, though it and C++-code-generation have some
small advantages. But this is a warning only - I do not want to remove
the feature precisely because code-generation is not so clearly
useless with Ada and C++.
Comment 6 Damon Chaplin 2004-01-06 12:39:39 UTC
I don't really agree that its a 'massive problem leading to massive
confusion'. It has rarely been mentioned on the glade-users or
glade-devel list over the years, so it can't be that bad.

Where are you hearing about the problem? On irc?

Why is it a massive problem?
Comment 7 Murray Cumming 2004-01-07 08:15:42 UTC
There are regular questions on the GTK+ and gtkmm and anjuta lists,
among others, and several every day on irc. In general, all of these
people have no idea that libglade exists. I think you know that Owen
Taylor has the same experience:
http://www.mail-archive.com/glade-devel@lists.ximian.com/msg00004.html

However, I'm not asking to remove it (from glade-2) - just to add a
little warning.
Comment 8 Murray Cumming 2004-01-21 18:38:43 UTC
Damon, do you still think that it isn't a problem?
Comment 9 Damon Chaplin 2004-01-23 12:22:53 UTC
I think the problem has been exaggerated quite a bit.
I would be interested in seeing what problems users are really having.
Comment 10 Murray Cumming 2004-01-23 13:02:44 UTC
Well, just about everyone seems to believe that many beginners are
very confused about code-generation versus libglade. This is not a
radical opinion. The warning will not hurt anyone, while giving useful
information.
Comment 11 Damon Chaplin 2004-02-23 23:51:35 UTC
I've added this note to the C options page:

<b>Note:</b> for large applications the use of libglade is recommended.