Updated copyright text/header in most source files.
[geda-gaf.git] / gattrib / src / i_basic.c
blobcbd49f80d4df4156db07bfbf08793d8e915abb34
1 /* gEDA - GPL Electronic Design Automation
2 * gattrib - gEDA gEDA component and net attribute manipulation using spreadsheet.
3 * Copyright (C) 1998-2010 Ales V. Hvezda
4 * Copyright (C) 2003-2010 Stuart D. Brorson.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
21 /*! \file
23 * \todo Unused function in here, i_update_status(). File is a candidate
24 * for removal?
27 #include <config.h>
29 #ifdef HAVE_STRING_H
30 #include <string.h>
31 #endif
34 /*------------------------------------------------------------------
35 * Gattrib specific includes. Note that include order is important.
36 *------------------------------------------------------------------*/
37 #include <libgeda/libgeda.h> /* geda library fcns */
38 #include "../include/struct.h" /* typdef and struct declarations */
39 #include "../include/prototype.h" /* function prototypes */
40 #include "../include/globals.h"
42 /* --- This is necessary for i_basic.c --- */
43 #include "../include/x_states.h"
45 #ifdef HAVE_LIBDMALLOC
46 #include <dmalloc.h>
47 #endif
50 /* ------------------------------------------------------------- *
52 * ------------------------------------------------------------- */
53 #if 0 /* not used, but leaving it here in case we need it later */
54 static void i_update_status(TOPLEVEL * w_current, const char *string)
56 if (!w_current->status_label) {
57 return;
60 if (string) {
61 /* NOTE: consider optimizing this if same label */
62 gtk_label_set(GTK_LABEL(w_current->status_label), (char *) string);
65 #endif