[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: x_basic.c
User: werner
Date: 07/02/24 07:17:44
Modified: . x_basic.c x_dialog.c
Log:
* x_dialog.c: removed unused functions generic_text_input*
* x_basic.c: removed unused dialog functions x_create_dialog_box*
Revision Changes Path
1.15 +0 -86 eda/geda/gaf/gschem/src/x_basic.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_basic.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_basic.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- x_basic.c 14 Jul 2006 02:23:55 -0000 1.14
+++ x_basic.c 24 Feb 2007 12:17:44 -0000 1.15
@@ -241,92 +241,6 @@
w_current->DONT_RESIZE = 0;
}
-/*! \todo Finish function documentation!!!
- * \brief
- * \par Function Description
- *
- */
-GtkWidget *x_create_dialog_box(GtkWidget **out_vbox,
- GtkWidget **out_action_area)
-{
- GtkWidget *separator;
- GtkWidget *vbox;
- GtkWidget *action_area;
- GtkWidget *dialog;
-
- if (!out_vbox)
- return(NULL);
-
- if (!out_action_area)
- return(NULL);
-
- dialog = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-
- vbox = gtk_vbox_new (FALSE, 0);
- gtk_container_add (GTK_CONTAINER (dialog), vbox);
- gtk_widget_show (vbox);
-
- action_area = gtk_hbox_new (TRUE, 5);
- gtk_container_set_border_width (GTK_CONTAINER (action_area), 10);
- gtk_box_pack_end (GTK_BOX (vbox), action_area, FALSE, TRUE, 0);
- gtk_widget_show (action_area);
-
- separator = gtk_hseparator_new ();
- gtk_box_pack_end (GTK_BOX (vbox), separator, FALSE, TRUE, 0);
- gtk_widget_show (separator);
-
- *out_vbox = vbox;
- *out_action_area = action_area;
-
- return(dialog);
-}
-
-/*! \todo Finish function documentation!!!
- * \brief
- * \par Function Description
- *
- * \note
- * not used
- */
-GtkWidget *x_create_dialog_box_horiz(GtkWidget **out_hbox,
- GtkWidget **out_action_area)
-{
- GtkWidget *separator;
- GtkWidget *vbox;
- GtkWidget *hbox;
- GtkWidget *action_area;
- GtkWidget *dialog;
-
- if (!out_hbox)
- return(NULL);
-
- if (!out_action_area)
- return(NULL);
-
- dialog = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-
- vbox = gtk_vbox_new (FALSE, 0);
- gtk_container_add (GTK_CONTAINER (dialog), vbox);
- gtk_widget_show (vbox);
-
- hbox = gtk_hbox_new (FALSE, 5);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
- gtk_widget_show (hbox);
-
- separator = gtk_hseparator_new ();
- gtk_box_pack_end (GTK_BOX (vbox), separator, FALSE, TRUE, 0);
- gtk_widget_show (separator);
-
- action_area = gtk_hbox_new (FALSE, 5);
- gtk_container_set_border_width (GTK_CONTAINER (action_area), 10);
- gtk_box_pack_end (GTK_BOX (vbox), action_area, FALSE, FALSE, 0);
- gtk_widget_show (action_area);
-
- *out_hbox = hbox;
- *out_action_area = action_area;
-
- return(dialog);
-}
/*! \todo Finish function documentation!!!
* \brief
1.79 +5 -88 eda/geda/gaf/gschem/src/x_dialog.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_dialog.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_dialog.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -b -r1.78 -r1.79
--- x_dialog.c 24 Feb 2007 11:47:34 -0000 1.78
+++ x_dialog.c 24 Feb 2007 12:17:44 -0000 1.79
@@ -85,6 +85,11 @@
*window = NULL;
}
+/* TODO: This string is used by the dialogs: show_text, find_text and hide_text
+ * I think it should be removed. (Werner Hoch)
+ */
+char generic_textstring[256] = "refdes=R";
+
/***************** Start of Text Input dialog box *********************/
/*! \brief worker function for the text entry dialog
@@ -2754,94 +2759,6 @@
/***************** End of generic file select dialog box *****************/
-/*********** Start of generic text input dialog box *******/
-char generic_textstring[256] = "refdes=R";
-
-/*! \todo Finish function documentation!!!
- * \brief
- * \par Function Description
- *
- */
-void generic_text_input_ok(GtkWidget * w, TOPLEVEL * w_current)
-{
- char *string = NULL;
-
- string = (char *) gtk_entry_get_text(GTK_ENTRY(w_current->tsentry));
- strncpy(generic_textstring, string, 256);
-
- gtk_grab_remove(w_current->tswindow);
- gtk_widget_destroy(w_current->tswindow);
- w_current->tswindow = NULL;
-}
-
-/*! \todo Finish function documentation!!!
- * \brief
- * \par Function Description
- *
- */
-void generic_text_input_dialog(TOPLEVEL * w_current)
-{
- int len;
- GtkWidget *label = NULL;
- GtkWidget *buttonok = NULL;
- GtkWidget *vbox, *action_area;
-
- if (!w_current->tswindow) {
- w_current->tswindow = x_create_dialog_box(&vbox, &action_area);
-
- gtk_window_position(GTK_WINDOW(w_current->tswindow),
- GTK_WIN_POS_MOUSE);
-
- gtk_signal_connect(GTK_OBJECT(w_current->tswindow),
- "destroy",
- GTK_SIGNAL_FUNC(destroy_window),
- &w_current->tswindow);
-
-
-#if 0 /* removed because it was causing the dialog box to not close */
- gtk_signal_connect(GTK_OBJECT(w_current->tswindow),
- "delete_event",
- GTK_SIGNAL_FUNC(destroy_window),
- &w_current->tswindow);
-#endif
-
- gtk_window_set_title(GTK_WINDOW(w_current->tswindow),
- _("Generic String"));
- gtk_container_border_width(GTK_CONTAINER(w_current->tswindow), 10);
-
- label = gtk_label_new(_("Enter new string."));
- gtk_misc_set_padding(GTK_MISC(label), 20, 20);
- gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0);
- gtk_widget_show(label);
-
- w_current->tsentry = gtk_entry_new_with_max_length(20);
- gtk_editable_select_region(GTK_EDITABLE(w_current->tsentry), 0, -1);
- gtk_box_pack_start(GTK_BOX(vbox), w_current->tsentry, FALSE, FALSE, 5);
- gtk_signal_connect(GTK_OBJECT(w_current->tsentry), "activate",
- GTK_SIGNAL_FUNC(generic_text_input_ok), w_current);
- gtk_widget_show(w_current->tsentry);
- gtk_widget_grab_focus(w_current->tsentry);
-
- buttonok = gtk_button_new_from_stock (GTK_STOCK_OK);
- GTK_WIDGET_SET_FLAGS(buttonok, GTK_CAN_DEFAULT);
- gtk_box_pack_start(GTK_BOX(action_area), buttonok, TRUE, TRUE, 0);
- gtk_signal_connect(GTK_OBJECT(buttonok), "clicked",
- GTK_SIGNAL_FUNC(generic_text_input_ok), w_current);
- gtk_widget_show(buttonok);
- gtk_widget_grab_default(buttonok);
- }
-
- if (!GTK_WIDGET_VISIBLE(w_current->tswindow)) {
- len = strlen(generic_textstring);
- gtk_entry_set_text(GTK_ENTRY(w_current->tsentry), generic_textstring);
- gtk_entry_select_region(GTK_ENTRY(w_current->tsentry), 0, len);
- gtk_widget_show(w_current->tswindow);
- gtk_grab_add(w_current->tswindow);
- }
-}
-
-/*********** End of generic text input dialog box *******/
-
/*********** Start of find text dialog box *******/
int start_find;
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs