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

gEDA-cvs: CVS update: Makefile.am



  User: pbernaud
  Date: 05/02/20 12:07:22

  Modified:    .        Makefile.am prototype.h
  Added:       .        x_log.h
  Log:
  Adapted gschem for new logging system in libgeda and cleaned-up the log dialog.
  
  
  
  
  Revision  Changes    Path
  1.7       +1 -1      eda/geda/devel/gschem/include/Makefile.am
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/include/Makefile.am,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- Makefile.am	11 Feb 2005 21:48:57 -0000	1.6
  +++ Makefile.am	20 Feb 2005 17:07:21 -0000	1.7
  @@ -3,7 +3,7 @@
   noinst_HEADERS = \
   	globals.h i_vars.h prototype.h x_event.h x_states.h \
   	gettext.h \
  -	x_pagesel.h
  +	x_log.h x_pagesel.h
   
   MOSTLYCLEANFILES = *.log core FILE *~
   CLEANFILES = *.log core FILE *~
  
  
  
  1.115     +3 -6      eda/geda/devel/gschem/include/prototype.h
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: prototype.h
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/include/prototype.h,v
  retrieving revision 1.114
  retrieving revision 1.115
  diff -u -b -r1.114 -r1.115
  --- prototype.h	19 Feb 2005 23:27:03 -0000	1.114
  +++ prototype.h	20 Feb 2005 17:07:21 -0000	1.115
  @@ -870,12 +870,9 @@
   int x_image_keypress(GtkWidget *widget, GdkEventKey *event, TOPLEVEL *w_current);
   void x_image_setup(TOPLEVEL *w_current, char *filename);
   /* x_log.c */
  -void x_log_init(char *cwd, const char *filename);
  -void x_log_read(void);
  -void x_log_update(char *buf);
  -void x_log_close(GtkWidget *w, TOPLEVEL *w_current);
  -void x_log_free(void);
  -void x_log_setup_win(TOPLEVEL *w_current);
  +void x_log_open ();
  +void x_log_close ();
  +void x_log_message (const gchar *message);
   /* x_menus.c */
   void get_main_menu(TOPLEVEL *w_current, GtkWidget **menubar);
   GtkWidget *get_main_popup(TOPLEVEL *w_current);
  
  
  
  1.1                  eda/geda/devel/gschem/include/x_log.h
  
  Index: x_log.h
  ===================================================================
  /* gEDA - GPL Electronic Design Automation
   * gschem - gEDA Schematic Capture
   * Copyright (C) 1998-2004 Ales V. Hvezda
   *
   * This library is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Library General Public
   * License as published by the Free Software Foundation; either
   * version 2 of the License, or (at your option) any later version.
   *
   * This library is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   * Library General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   */
  
  
  
  typedef enum {
    LOG_RESPONSE_CLOSE  = 1,
  } LogResponseType;
  
  
  #define TYPE_LOG         (log_get_type())
  #define LOG(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LOG, Log))
  #define LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LOG, LogClass))
  #define IS_LOG(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LOG))
  
  
  typedef struct _LogClass LogClass;
  typedef struct _Log      Log;
  
  
  struct _LogClass {
    GtkDialogClass parent_class;
  };
  
  struct _Log {
    GtkDialog parent_instance;
  
    GtkTextView *textview;
  
    guint handler;
    
  };
  
  
  GType log_get_type (void);
  
  void log_message (Log *log, const gchar *message);