[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-bug: gschem can't compile using gtk1.2



Full_Name: Carlos Nieves Onega
Version: 20050126
OS: Debian GNU/Linux
Submission from: (NULL) (62.83.55.126)


gschem/noweb/x_dialog.nw:
Functions fill_type_dialog and line_type_dialog use GTK function 
gtk_radio_menu_item_get_group, which doesn't exist in GTK1.2.

Possible patch attached (removing affected widgets in GTK1.2):
----------------------------- cut here


Index: gschem/noweb/x_dialog.nw
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_dialog.nw,v
retrieving revision 1.26
diff -a -u -r1.26 x_dialog.nw
--- gschem/noweb/x_dialog.nw	7 Jan 2005 17:32:35 -0000	1.26
+++ gschem/noweb/x_dialog.nw	7 Feb 2005 19:38:06 -0000
@@ -1421,6 +1421,7 @@
     length_str = g_strdup_printf ("%d", o_current->line_length);
     type = o_current->line_type;
   } else {
+#ifndef HAS_GTK12
     GtkWidget *menuitem;
     GtkWidget *menu;
       
@@ -1440,6 +1441,7 @@
                          "linetype",
                          GINT_TO_POINTER (-1));
     gtk_widget_show (menuitem);
+#endif
   }
   
   gtk_entry_set_text (GTK_ENTRY (width_entry), width_str);
@@ -1898,6 +1900,7 @@
     angle2_str = g_strdup_printf ("%d", o_current->fill_angle2);
     pitch2_str = g_strdup_printf ("%d", o_current->fill_pitch2);
   } else {
+#ifndef HAS_GTK12
     GtkWidget *menuitem;
     GtkWidget *menu;
       
@@ -1919,6 +1922,7 @@
                          "filltype",
                          GINT_TO_POINTER (-1));
     gtk_widget_show (menuitem);
+#endif
   }
 
   gtk_option_menu_set_history (GTK_OPTION_MENU (optionmenu), type);