diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2005-09-09 12:07:23 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2005-09-09 12:07:23 +0000 |
commit | 128c3c24a3ea2f37cb40371d87d6dbe62651b1e9 (patch) | |
tree | 3e94f2d5a313552f17f6de5523518ca69642f058 /cad/gschem/patches | |
parent | b2210d54254e8e33b260b12a88fff756aaa384f7 (diff) | |
download | pkgsrc-128c3c24a3ea2f37cb40371d87d6dbe62651b1e9.tar.gz |
fix syntax error when using older (before gcc3) compilers
Diffstat (limited to 'cad/gschem/patches')
-rw-r--r-- | cad/gschem/patches/patch-aa | 55 | ||||
-rw-r--r-- | cad/gschem/patches/patch-ab | 55 |
2 files changed, 110 insertions, 0 deletions
diff --git a/cad/gschem/patches/patch-aa b/cad/gschem/patches/patch-aa new file mode 100644 index 00000000000..983e874e09d --- /dev/null +++ b/cad/gschem/patches/patch-aa @@ -0,0 +1,55 @@ +$NetBSD: patch-aa,v 1.7 2005/09/09 12:07:23 dmcmahill Exp $ + +--- noweb/x_dialog.nw.orig 2005-08-20 14:13:28.000000000 +0000 ++++ noweb/x_dialog.nw +@@ -901,6 +901,7 @@ text_edit_dialog (TOPLEVEL *w_current, c + char *text_size_string; + int len; + int num_selected; ++ int select_index=0; + + num_selected = o_selection_return_num(w_current->page_current->selection2_head); + +@@ -977,7 +978,6 @@ text_edit_dialog (TOPLEVEL *w_current, c + gtk_widget_show(label); + + optionmenu = gtk_option_menu_new(); +- int select_index=0; + + gtk_option_menu_set_menu(GTK_OPTION_MENU(optionmenu), create_color_menu(w_current, &select_index)); + gtk_option_menu_set_history(GTK_OPTION_MENU(optionmenu), select_index); +@@ -3466,14 +3466,15 @@ create_color_menu (TOPLEVEL * w_current, + char *temp=NULL; + int found=0; + +- menu = gtk_menu_new (); +- group = NULL; +- + /* first lets see if we have a selected object, if so select its color */ + int select_col = -1; + int item_index = 0; + SELECTION *s_current = NULL; + OBJECT *object = NULL; ++ ++ menu = gtk_menu_new (); ++ group = NULL; ++ + /* skip over head */ + s_current = w_current->page_current->selection2_head->next; + +@@ -3651,6 +3652,7 @@ color_edit_dialog (TOPLEVEL *w_current) + GtkWidget *buttonapply = NULL; + GtkWidget *optionmenu; + GtkWidget *vbox, *action_area; ++ int select_index = 0; + + if (!w_current->clwindow) { + w_current->clwindow = x_create_dialog_box(&vbox, &action_area); +@@ -3679,7 +3681,6 @@ color_edit_dialog (TOPLEVEL *w_current) + #endif + + optionmenu = gtk_option_menu_new (); +- int select_index = 0; + gtk_option_menu_set_menu(GTK_OPTION_MENU(optionmenu), + create_color_menu (w_current, &select_index)); + gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu), select_index); diff --git a/cad/gschem/patches/patch-ab b/cad/gschem/patches/patch-ab new file mode 100644 index 00000000000..7c867a67c1c --- /dev/null +++ b/cad/gschem/patches/patch-ab @@ -0,0 +1,55 @@ +$NetBSD: patch-ab,v 1.6 2005/09/09 12:07:23 dmcmahill Exp $ + +--- src/x_dialog.c.orig 2005-08-20 14:27:39.000000000 +0000 ++++ src/x_dialog.c +@@ -555,6 +555,7 @@ text_edit_dialog(TOPLEVEL * w_current, c + char *text_size_string; + int len; + int num_selected; ++ int select_index = 0; + + num_selected = + o_selection_return_num(w_current->page_current->selection2_head); +@@ -632,7 +633,6 @@ text_edit_dialog(TOPLEVEL * w_current, c + gtk_widget_show(label); + + optionmenu = gtk_option_menu_new(); +- int select_index = 0; + + gtk_option_menu_set_menu(GTK_OPTION_MENU(optionmenu), + create_color_menu(w_current, &select_index)); +@@ -2638,14 +2638,15 @@ static GtkWidget *create_color_menu(TOPL + char *temp = NULL; + int found = 0; + +- menu = gtk_menu_new(); +- group = NULL; +- + /* first lets see if we have a selected object, if so select its color */ + int select_col = -1; + int item_index = 0; + SELECTION *s_current = NULL; + OBJECT *object = NULL; ++ ++ menu = gtk_menu_new(); ++ group = NULL; ++ + /* skip over head */ + s_current = w_current->page_current->selection2_head->next; + +@@ -2788,6 +2789,7 @@ void color_edit_dialog(TOPLEVEL * w_curr + GtkWidget *buttonapply = NULL; + GtkWidget *optionmenu; + GtkWidget *vbox, *action_area; ++ int select_index = 0; + + if (!w_current->clwindow) { + w_current->clwindow = x_create_dialog_box(&vbox, &action_area); +@@ -2815,7 +2817,6 @@ void color_edit_dialog(TOPLEVEL * w_curr + #endif + + optionmenu = gtk_option_menu_new(); +- int select_index = 0; + gtk_option_menu_set_menu(GTK_OPTION_MENU(optionmenu), + create_color_menu(w_current, &select_index)); + gtk_option_menu_set_history(GTK_OPTION_MENU(optionmenu), select_index); |