? glade2_codegeneration_warning.patch
? intltool-modules
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/glade/ChangeLog,v
retrieving revision 1.198
diff -u -p -r1.198 ChangeLog
--- ChangeLog	28 Nov 2003 15:48:00 -0000	1.198
+++ ChangeLog	21 Dec 2003 11:06:32 -0000
@@ -1,3 +1,10 @@
+2003-12-21  Murray Cumming  <murrayc@usa.net>
+
+	* glade/glade_project_options.c: Added a warning label to the
+	general/language section and to the C options tab. This warning
+	tells people that code-generation is not a good idea and that they
+	should use libglade instead.
+
 2003-11-28  Damon Chaplin  <damon@gnome.org>
 
 	* glade/gbwidgets/gbfilechooserwidget.c: 
Index: glade/glade_project_options.c
===================================================================
RCS file: /cvs/gnome/glade/glade/glade_project_options.c,v
retrieving revision 1.20
diff -u -p -r1.20 glade_project_options.c
--- glade/glade_project_options.c	30 Oct 2003 18:31:06 -0000	1.20
+++ glade/glade_project_options.c	21 Dec 2003 11:06:33 -0000
@@ -138,7 +138,7 @@ glade_project_options_init (GladeProject
   GtkWidget *main_vbox, *notebook;
   GtkWidget *general_options_vbox, *c_options_vbox, *libglade_options_vbox;
   GtkWidget *vbox, *table, *label, *button, *eventbox, *alignment;
-  GtkWidget *hbox, *hbbox, *radio_button, *frame;
+  GtkWidget *hbox, *code_generation_vbox, *hbbox, *radio_button, *frame;
   gint row, language;
   GSList *group;
 
@@ -380,7 +380,7 @@ glade_project_options_init (GladeProject
 #endif
 
   /* Source Language. */
-  frame = gtk_frame_new (_("Language:"));
+  frame = gtk_frame_new (_("Code-generation Language:"));
   /* Change this to 0 if you don't want the language option (C/C++/Perl). */
 #if 1
   gtk_widget_show (frame);
@@ -391,11 +391,22 @@ glade_project_options_init (GladeProject
   gtk_widget_show (alignment);
   gtk_container_add (GTK_CONTAINER (frame), alignment);
 
+  /* Add a warning about code-generation: */
+  code_generation_vbox = gtk_vbox_new (TRUE, 4);
+  gtk_widget_show (code_generation_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (code_generation_vbox), 4);
+  gtk_container_add (GTK_CONTAINER (alignment), code_generation_vbox);
+
+  label = gtk_label_new (_("Please note that code-generation is not a normal way to develop applications with Glade.\nMost people use libglade instead."));
+  gtk_widget_show (label);
+  gtk_container_add (GTK_CONTAINER (code_generation_vbox), label);
+
+  /* Add the list of languages: */
   hbox = gtk_hbox_new (TRUE, 4);
   gtk_widget_show (hbox);
   gtk_container_set_border_width (GTK_CONTAINER (hbox), 0);
-  gtk_container_add (GTK_CONTAINER (alignment), hbox);
-
+  gtk_container_add (GTK_CONTAINER (code_generation_vbox), hbox);
+  
   options->language_buttons = g_new (GtkWidget*, GladeNumLanguages);
   group = NULL;
   for (language = 0; language < GladeNumLanguages; language++)
@@ -450,6 +461,10 @@ glade_project_options_init (GladeProject
   gtk_notebook_append_page (GTK_NOTEBOOK (notebook), c_options_vbox, label);
   gtk_container_set_border_width (GTK_CONTAINER (c_options_vbox), 7);
 
+  label = gtk_label_new (_("Please note that code-generation is not a normal way to develop applications with Glade.\nMost people use libglade instead."));
+  gtk_widget_show (label);
+  gtk_box_pack_start (GTK_BOX (c_options_vbox), label, FALSE, TRUE, 0);
+
   hbox = gtk_hbox_new (TRUE, 4);
   gtk_widget_show (hbox);
   gtk_container_set_border_width (GTK_CONTAINER (hbox), 0);
