gattrib

i_basic.c

Go to the documentation of this file.
00001 /* gEDA - GPL Electronic Design Automation
00002  * gattrib - gEDA gEDA component and net attribute manipulation using spreadsheet.
00003  * Copyright (C) 1998-2010 Ales V. Hvezda
00004  * Copyright (C) 2003-2010 Stuart D. Brorson.
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 
00027 #include <config.h>
00028 
00029 #ifdef HAVE_STRING_H
00030 #include <string.h>
00031 #endif
00032 
00033 
00034 /*------------------------------------------------------------------
00035  * Gattrib specific includes.  Note that include order is important.
00036  *------------------------------------------------------------------*/
00037 #include <libgeda/libgeda.h>       /* geda library fcns  */
00038 #include "../include/struct.h"     /* typdef and struct declarations */
00039 #include "../include/prototype.h"  /* function prototypes */
00040 #include "../include/globals.h"
00041 
00042 /* --- This is necessary for i_basic.c --- */
00043 #include "../include/x_states.h"
00044 
00045 #ifdef HAVE_LIBDMALLOC
00046 #include <dmalloc.h>
00047 #endif
00048 
00049 
00050 /* ------------------------------------------------------------- *
00051  *
00052  * ------------------------------------------------------------- */
00053 #if 0 /* not used, but leaving it here in case we need it later */
00054 static void i_update_status(TOPLEVEL *toplevel, const char *string)
00055 {
00056   if (!toplevel->status_label) {
00057     return;
00058   }
00059 
00060   if (string) {
00061     /* NOTE: consider optimizing this if same label */
00062     gtk_label_set(GTK_LABEL(toplevel->status_label), (char *) string);
00063   }
00064 }
00065 #endif
00066 
00067 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines