Annotation of sbbs/src/sbbs3/gtkchat/main.c, revision 1.1

1.1     ! root        1: #include <stdlib.h>
        !             2: 
        !             3: #include <gtk/gtk.h>
        !             4: 
        !             5: #include "dirwrap.h"
        !             6: 
        !             7: #include "chatfuncs.h"
        !             8: #include "interface.h"
        !             9: #include "support.h"
        !            10: 
        !            11: int lprintf(int level, char *fmt, ...)
        !            12: {
        !            13:        /* ToDo: Log output */
        !            14:        return(0);
        !            15: }
        !            16: 
        !            17: 
        !            18: int
        !            19: main (int argc, char *argv[])
        !            20: {
        !            21:   int          node;
        !            22:   char         *ctrl_dir;
        !            23:   GtkWidget *WaitWindow;
        !            24: 
        !            25:   gtk_set_locale ();
        !            26:   gtk_init (&argc, &argv);
        !            27: 
        !            28: /*  add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); */
        !            29: 
        !            30:   ctrl_dir=getenv("SBBSCTRL");
        !            31:   if(ctrl_dir==NULL)
        !            32:        return(1);
        !            33: 
        !            34:   if(argc<1)
        !            35:     return(1);
        !            36: 
        !            37:   node=atoi(argv[1]);
        !            38: 
        !            39:   if(node<1)
        !            40:     return(1);
        !            41: 
        !            42:   /*
        !            43:    * Request a chat
        !            44:    */
        !            45:   if(chat_open(node, ctrl_dir))
        !            46:        return(1);
        !            47: 
        !            48:   /*
        !            49:    * Show "waiting" window
        !            50:    */
        !            51:   WaitWindow = create_WaitWindow ();
        !            52:   gtk_widget_show (WaitWindow);
        !            53: 
        !            54:   gtk_main ();
        !            55:   return 0;
        !            56: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.