diff -uNr gau-0.4.1.orig/Makefile.am gau-0.4.1/Makefile.am --- gau-0.4.1.orig/Makefile.am Fri Aug 6 21:29:43 1999 +++ gau-0.4.1/Makefile.am Wed Sep 22 22:19:04 1999 @@ -1,6 +1,6 @@ INCLUDES = -DHANGUL=1 -DUSE_XIM $(GTK_CFLAGS) -bin_PROGRAMS = gau +bin_PROGRAMS = gau gaui AUTOHEADER = true gau_SOURCES = \ @@ -30,7 +30,11 @@ tcp.c \ util.c \ zmodem.c \ - gnome-login-support.c + gnome-login-support.c \ + menu.c \ + help.c \ + connect.c \ + toolbar.c gau_LDADD = $(GTK_LIBS) $(UTIL_LIBS) @@ -112,8 +116,14 @@ rc/xpm/bluetree.xpm \ rc/xpm/flag.xpm.1 \ rc/xpm/flag.xpm.3 \ - rc/xpm/flag.xpm.5 - + rc/xpm/flag.xpm.5 \ + rc/xpm/connect.xpm \ + rc/xpm/disconnect.xpm \ + rc/xpm/chat.xpm \ + rc/xpm/capture.xpm \ + rc/xpm/write.xpm \ + rc/xpm/down.xpm \ + rc/xpm/up.xpm EXTRA_DIST = \ autogen.sh $(xpms) gau.spec.in $(rc_all) $(doc_all) $(misc_all) diff -uNr gau-0.4.1.orig/Makefile.in gau-0.4.1/Makefile.in --- gau-0.4.1.orig/Makefile.in Fri Aug 6 22:14:31 1999 +++ gau-0.4.1/Makefile.in Wed Sep 22 22:19:14 1999 @@ -1,4 +1,4 @@ -# Makefile.in generated automatically by automake 1.4 from Makefile.am +# Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation @@ -45,9 +45,10 @@ AUTOMAKE = @AUTOMAKE@ INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) +INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_FLAG = transform = @program_transform_name@ NORMAL_INSTALL = : @@ -70,10 +71,10 @@ INCLUDES = -DHANGUL=1 -DUSE_XIM $(GTK_CFLAGS) -bin_PROGRAMS = gau +bin_PROGRAMS = gau gaui AUTOHEADER = true -gau_SOURCES = anipixmap.c ansiinput.c ansiterm.c autores.c bottom-menu.c chat.c control.c cphone.c dial.c gau.c gauchat.c iselect.c iselectmod.c misc.c modem.c mymenubar.c pty.c script.c scrolledchat.c scw.c selection.c signal.c status.c tcp.c util.c zmodem.c gnome-login-support.c +gau_SOURCES = anipixmap.c ansiinput.c ansiterm.c autores.c bottom-menu.c chat.c control.c cphone.c dial.c gau.c gauchat.c iselect.c iselectmod.c misc.c modem.c mymenubar.c pty.c script.c scrolledchat.c scw.c selection.c signal.c status.c tcp.c util.c zmodem.c gnome-login-support.c menu.c help.c connect.c toolbar.c gau_LDADD = $(GTK_LIBS) $(UTIL_LIBS) @@ -93,7 +94,7 @@ misc_all = misc/lrz/lrz.c.patch misc/grimview/Makefile misc/grimview/gzillabytesink.c misc/grimview/gzillabytesink.h misc/grimview/gzillagif.c misc/grimview/gzillagif.h misc/grimview/gzillaimage.c misc/grimview/gzillaimage.h misc/grimview/gzillaimgsink.c misc/grimview/gzillaimgsink.h misc/grimview/gzillajpeg.c misc/grimview/gzillajpeg.h misc/grimview/gzillastatus.h misc/grimview/grimview.c -rc_all = rc/auto-response rc/chollian.menu rc/gtkrc rc/now.menu rc/hitel.menu rc/phonelist rc/telnet-menu rc/chat-binding rc/gaurc rc/modem-menu rc/cap/INFO rc/down/INFO rc/script/INFO rc/script/01420.scr rc/script/hitel.scr rc/script/now.scr rc/script/01421.scr rc/script/chol-login.scr rc/script/local rc/script/snu.scr rc/script/114.scr rc/script/hitel-login.scr rc/script/now-login.scr rc/script/unitel.scr rc/xpm/INFO rc/xpm/flag.xpm.0 rc/xpm/flag.xpm.2 rc/xpm/flag.xpm.4 rc/xpm/flower.xpm rc/xpm/bluetree.xpm rc/xpm/flag.xpm.1 rc/xpm/flag.xpm.3 rc/xpm/flag.xpm.5 +rc_all = rc/auto-response rc/chollian.menu rc/gtkrc rc/now.menu rc/hitel.menu rc/phonelist rc/telnet-menu rc/chat-binding rc/gaurc rc/modem-menu rc/cap/INFO rc/down/INFO rc/script/INFO rc/script/01420.scr rc/script/hitel.scr rc/script/now.scr rc/script/01421.scr rc/script/chol-login.scr rc/script/local rc/script/snu.scr rc/script/114.scr rc/script/hitel-login.scr rc/script/now-login.scr rc/script/unitel.scr rc/xpm/INFO rc/xpm/flag.xpm.0 rc/xpm/flag.xpm.2 rc/xpm/flag.xpm.4 rc/xpm/flower.xpm rc/xpm/bluetree.xpm rc/xpm/flag.xpm.1 rc/xpm/flag.xpm.3 rc/xpm/flag.xpm.5 rc/xpm/connect.xpm rc/xpm/disconnect.xpm rc/xpm/chat.xpm rc/xpm/capture.xpm rc/xpm/write.xpm rc/xpm/down.xpm rc/xpm/up.xpm EXTRA_DIST = autogen.sh $(xpms) gau.spec.in $(rc_all) $(doc_all) $(misc_all) @@ -113,9 +114,14 @@ bottom-menu.o chat.o control.o cphone.o dial.o gau.o gauchat.o \ iselect.o iselectmod.o misc.o modem.o mymenubar.o pty.o script.o \ scrolledchat.o scw.o selection.o signal.o status.o tcp.o util.o \ -zmodem.o gnome-login-support.o +zmodem.o gnome-login-support.o menu.o help.o connect.o toolbar.o gau_DEPENDENCIES = gau_LDFLAGS = +gaui_SOURCES = gaui.c +gaui_OBJECTS = gaui.o +gaui_LDADD = $(LDADD) +gaui_DEPENDENCIES = +gaui_LDFLAGS = SCRIPTS = $(bin_SCRIPTS) CFLAGS = @CFLAGS@ @@ -132,18 +138,26 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) -TAR = tar +TAR = gtar GZIP_ENV = --best -SOURCES = $(gau_SOURCES) -OBJECTS = $(gau_OBJECTS) +DEP_FILES = .deps/anipixmap.P .deps/ansiinput.P .deps/ansiterm.P \ +.deps/autores.P .deps/bottom-menu.P .deps/chat.P .deps/connect.P \ +.deps/control.P .deps/cphone.P .deps/dial.P .deps/gau.P .deps/gauchat.P \ +.deps/gaui.P .deps/gnome-login-support.P .deps/help.P .deps/iselect.P \ +.deps/iselectmod.P .deps/menu.P .deps/misc.P .deps/modem.P \ +.deps/mymenubar.P .deps/pty.P .deps/script.P .deps/scrolledchat.P \ +.deps/scw.P .deps/selection.P .deps/signal.P .deps/status.P .deps/tcp.P \ +.deps/toolbar.P .deps/util.P .deps/zmodem.P +SOURCES = $(gau_SOURCES) gaui.c +OBJECTS = $(gau_OBJECTS) gaui.o all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps Makefile + cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status @@ -203,8 +217,8 @@ $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ - echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ - $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ + $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done @@ -214,9 +228,6 @@ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done -.c.o: - $(COMPILE) -c $< - .s.o: $(COMPILE) -c $< @@ -323,63 +334,56 @@ -rm -rf $(distdir) mkdir $(distdir) -chmod 777 $(distdir) + here=`cd $(top_builddir) && pwd`; \ + top_distdir=`cd $(distdir) && pwd`; \ + distdir=`cd $(distdir) && pwd`; \ + cd $(top_srcdir) \ + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile $(mkinstalldirs) $(distdir)/doc $(distdir)/misc/grimview \ $(distdir)/misc/lrz $(distdir)/rc $(distdir)/rc/cap \ $(distdir)/rc/down $(distdir)/rc/script $(distdir)/rc/xpm @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ - cp -pr $$/$$file $(distdir)/$$file; \ + cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -anipixmap.o: anipixmap.c anipixmap.h -ansiinput.o: ansiinput.c ansiterm.h gau.h scrolledchat.h gauchat.h -ansiterm.o: ansiterm.c config.h gaupath.h ansiterm.h gau.h \ - scrolledchat.h gauchat.h -autores.o: autores.c gau.h ansiterm.h scrolledchat.h gauchat.h config.h \ - gaupath.h -bottom-menu.o: bottom-menu.c config.h gaupath.h ansiterm.h gau.h \ - scrolledchat.h gauchat.h -chat.o: chat.c gau.h ansiterm.h scrolledchat.h gauchat.h config.h \ - gaupath.h -control.o: control.c config.h gaupath.h mymenubar.h anipixmap.h \ - ansiterm.h gau.h scrolledchat.h gauchat.h -cphone.o: cphone.c config.h gaupath.h gau.h ansiterm.h scrolledchat.h \ - gauchat.h checked.xpm -dial.o: dial.c config.h gaupath.h ansiterm.h gau.h scrolledchat.h \ - gauchat.h -gau.o: gau.c config.h gaupath.h ansiterm.h selection.h gau.h \ - scrolledchat.h gauchat.h scw.h -gauchat.o: gauchat.c gau.h ansiterm.h scrolledchat.h gauchat.h -gnome-login-support.o: gnome-login-support.c config.h gaupath.h \ - gnome-login-support.h -iselect.o: iselect.c gau.h ansiterm.h scrolledchat.h gauchat.h config.h \ - gaupath.h -iselectmod.o: iselectmod.c -misc.o: misc.c config.h gaupath.h anipixmap.h gau.h ansiterm.h \ - scrolledchat.h gauchat.h -modem.o: modem.c config.h gaupath.h ansiterm.h gau.h scrolledchat.h \ - gauchat.h -mymenubar.o: mymenubar.c mymenubar.h -pty.o: pty.c config.h gaupath.h gnome-login-support.h -script.o: script.c config.h gaupath.h gau.h ansiterm.h scrolledchat.h \ - gauchat.h -scrolledchat.o: scrolledchat.c scrolledchat.h gauchat.h scw.h -scw.o: scw.c scw.h -selection.o: selection.c ansiterm.h gau.h scrolledchat.h gauchat.h -signal.o: signal.c config.h gaupath.h -status.o: status.c gau.h ansiterm.h scrolledchat.h gauchat.h -tcp.o: tcp.c config.h gaupath.h gau.h ansiterm.h scrolledchat.h \ - gauchat.h -util.o: util.c config.h gaupath.h gau.h ansiterm.h scrolledchat.h \ - gauchat.h -zmodem.o: zmodem.c config.h gaupath.h gau.h ansiterm.h scrolledchat.h \ - gauchat.h +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) + +-include $(DEP_FILES) + +mostlyclean-depend: + +clean-depend: + +distclean-depend: + -rm -rf .deps + +maintainer-clean-depend: + +%.o: %.c + @echo '$(COMPILE) -c $<'; \ + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-cp .deps/$(*F).pp .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm .deps/$(*F).pp + +%.lo: %.c + @echo '$(LTCOMPILE) -c $<'; \ + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ + < .deps/$(*F).pp > .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: @@ -406,7 +410,7 @@ all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(HEADERS) config.h all-redirect: all-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install + $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(bindir) @@ -421,25 +425,27 @@ maintainer-clean-generic: mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \ - mostlyclean-compile mostlyclean-tags \ + mostlyclean-compile mostlyclean-tags mostlyclean-depend \ mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \ - clean-generic mostlyclean-am + clean-depend clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \ - distclean-tags distclean-generic clean-am + distclean-tags distclean-depend distclean-generic \ + clean-am distclean: distclean-am -rm -f config.status maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean-am + maintainer-clean-depend maintainer-clean-generic \ + distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." @@ -452,12 +458,14 @@ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS tags \ mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \ -distdir info-am info dvi-am dvi check check-am installcheck-am \ -installcheck all-recursive-am install-exec-local install-exec-am \ -install-exec install-data-local install-data-am install-data install-am \ -install uninstall-am uninstall all-redirect all-am all installdirs \ -mostlyclean-generic distclean-generic clean-generic \ -maintainer-clean-generic clean mostlyclean distclean maintainer-clean +distdir mostlyclean-depend distclean-depend clean-depend \ +maintainer-clean-depend info-am info dvi-am dvi check check-am \ +installcheck-am installcheck all-recursive-am install-exec-local \ +install-exec-am install-exec install-data-local install-data-am \ +install-data install-am install uninstall-am uninstall all-redirect \ +all-am all installdirs mostlyclean-generic distclean-generic \ +clean-generic maintainer-clean-generic clean mostlyclean distclean \ +maintainer-clean all: gaui diff -uNr gau-0.4.1.orig/connect.c gau-0.4.1/connect.c --- gau-0.4.1.orig/connect.c Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/connect.c Mon Sep 20 00:14:55 1999 @@ -0,0 +1,82 @@ +#include "gau.h" + +#define LOCALHOST "localhost" + +/* Global Variable */ + +/* Connect DialogBox */ +static GtkWidget *connect_dialog; +static GtkWidget *connect_label; +static GtkWidget *connect_entry; +static GtkWidget *connect_ok_button; +static GtkWidget *connect_cancel_button; + +/* "¼öµ¿ Á¢¼Ó..." ¸Þ´º¸¦ ¼±ÅÃÇÏ¿´À» ¶§ È£ÃâµÇ´Â ÇÔ¼ö */ +void +connect_cb (GtkWidget *widget, gpointer data) +{ + /* Create Dialog */ + connect_dialog = gtk_dialog_new(); + gtk_widget_set_usize(GTK_WIDGET(connect_dialog), 300, 150); + gtk_window_set_title(GTK_WINDOW(connect_dialog), "¼öµ¿ Á¢¼Ó"); + + /* Create Label */ + connect_label = gtk_label_new ("Á¢¼ÓÇÒ È£½ºÆ®ÀÇ À̸§ ¶Ç´Â IP ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä:"); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (connect_dialog)->vbox), + connect_label, TRUE, TRUE, 0); + gtk_widget_show(connect_label); + + /* Create Entry */ + connect_entry = gtk_entry_new(); + gtk_entry_set_text (GTK_ENTRY (connect_entry), LOCALHOST); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (connect_dialog)->vbox), + connect_entry, TRUE, TRUE, 0); + gtk_widget_show(connect_entry); + + /* Create Ok Button */ + connect_ok_button = gtk_button_new_with_label ("Ok"); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (connect_dialog)->action_area), + connect_ok_button, TRUE, TRUE, 0); + gtk_signal_connect(GTK_OBJECT(connect_ok_button), "clicked", + GTK_SIGNAL_FUNC(connect_ok), NULL); + gtk_widget_show(connect_ok_button); + + /* Create Cancel Button */ + connect_cancel_button = gtk_button_new_with_label ("Cancel"); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (connect_dialog)->action_area), + connect_cancel_button, TRUE, TRUE, 0); + gtk_signal_connect(GTK_OBJECT(connect_cancel_button), "clicked", + GTK_SIGNAL_FUNC(connect_cancel), NULL); + gtk_widget_show(connect_cancel_button); + + /* Ok ¹öÆ°À» ±âº» ¹öÆ°À¸·Î Á¤ÇÔ */ + gtk_widget_grab_focus(connect_ok_button); + + gtk_widget_show(connect_dialog); +} + +/* Á¢¼Ó ´ÙÀ̾ó·Î±×¿¡¼­ Ok¸¦ ´­·¶À» ¶§ È£ÃâÇÏ´Â ÇÔ¼ö */ +void +connect_ok(GtkWidget *widget, gpointer data) +{ + /* ÅÚ³Ý Á¢¼Ó */ + /* hostname = gtk_entry_get_text(GTK_ENTRY(connect_entry)) */ + telnet_connect(gtk_entry_get_text(GTK_ENTRY(connect_entry)), NULL, NULL); + + /* Á¢¼Ó ´ÙÀ̾ó·Î±× Æı« */ + gtk_widget_destroy (connect_dialog); +} + +/* Á¢¼Ó ´ÙÀ̾ó·Î±×¿¡¼­ Cancel¸¦ ´­·¶À» ¶§ Ãë¼ÒÇÏ´Â ÇÔ¼ö */ +void +connect_cancel(GtkWidget *widget, gpointer data) +{ + gtk_widget_destroy (connect_dialog); +} + +/* "¿¬°á ²÷±â" ¸Þ´º¸¦ ¼±ÅÃÇÏ¿´À» ¶§ È£ÃâµÇ´Â ÇÔ¼ö */ +void +disconnect_cb (GtkWidget *widget, gpointer data) +{ + telnet_hangup(); +} diff -uNr gau-0.4.1.orig/control.c gau-0.4.1/control.c --- gau-0.4.1.orig/control.c Sat Jul 24 15:10:05 1999 +++ gau-0.4.1/control.c Sat Sep 18 07:42:50 1999 @@ -55,29 +55,6 @@ GtkWidget *cancel_button, *chat_button; GtkWidget *write_button; -void capture_cb(GtkWidget * w, gpointer data); -void exit_cb(GtkWidget * w, gpointer data); -void disconnect_after_transfer_toggle_cb(GtkWidget * w, gpointer data); -void modem_attr_cb(GtkWidget * w, gpointer data); -void screen_save_cb(GtkWidget * w, gpointer data); -void chat_cb(GtkWidget * w, gpointer data); -void cancel_cb(GtkWidget * w, gpointer data); -void etc_menu_create(GtkWidget * w); -void script_menu_create(GtkWidget * box); -void nohang_exit_cb(void); -void screen_reset(void); -void run_scriptfile(GtkWidget * w, char *filename); -void toggle_local_echo(void); -void toggle_auto_response(GtkWidget * w, gpointer index); -void toggle_remote_echo(void); -void give_shell(void); -static void write_cb(GtkWidget * w, gpointer data); -static gint write_fragment(gpointer data); -static void write_signal_child_handler(void); -static void query_script_command(void); -static void set_crlf(GtkWidget * w, gpointer data); - - GtkWidget * add_menu_item (GtkWidget *menu, char *label, GtkSignalFunc func, gpointer data) { @@ -634,7 +611,7 @@ } -static void set_crlf(GtkWidget * w, gpointer data) +void set_crlf(GtkWidget * w, gpointer data) { crlf = GPOINTER_TO_INT(data); } diff -uNr gau-0.4.1.orig/gau.c gau-0.4.1/gau.c --- gau-0.4.1.orig/gau.c Sun Jul 4 00:10:35 1999 +++ gau-0.4.1/gau.c Sat Sep 18 13:05:24 1999 @@ -1,7 +1,6 @@ /* this file is a part of gau software, (C) Hwang chi-deok 1997, 1998, 1999 */ /* - * ÀÌ ÇÁ·Î±×·¥ÀÇ ÀúÀÛ±ÇÀº Ȳġ´ö¿¡°Ô ÀÖ½À´Ï´Ù. * ÀÌ ÇÁ·Î±×·¥Àº GNU GENERAL PUBLIC LICENSE¿¡ ÀÇ°Å ¹èÆ÷µË´Ï´Ù. * ÀÌ ÇÁ·Î±×·¥ÀÇ »ç¿ëÀ¸·ÎÀÎÇÑ ¾î¶°ÇÑ ½ÅüÀû, Á¤½ÅÀû, @@ -83,12 +82,15 @@ GtkWidget *hbox, *frame; GtkWidget *sc; GtkWidget *separator; + GtkWidget *menubar; + GtkWidget *toolbar; int i; + + gtk_init(&argc, &argv); check_personal_rc(); gtk_set_locale(); - gtk_init(&argc, &argv); if (strcmp(g_basename(argv[0]), "gaui") == 0) { extern int crlf; use_modem = FALSE; @@ -144,20 +146,30 @@ GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gau_set_title(NULL); gtk_widget_set_name(main_win, "main"); - gtk_container_set_border_width(GTK_CONTAINER(main_win), 5); + gtk_container_set_border_width(GTK_CONTAINER(main_win), 1); - main_box = gtk_vbox_new(FALSE, 3); + main_box = gtk_vbox_new(FALSE, 1); gtk_container_add(GTK_CONTAINER(main_win), main_box); + + /* ¸ÞÀÎ ¸Þ´º ºÙÀ̱â */ + get_main_menu(main_win, &menubar); + gtk_box_pack_start(GTK_BOX(main_box), menubar, FALSE, TRUE, 0); + gtk_widget_show(menubar); + + /* Åø¹Ù ºÙÀ̱â */ + toolbar = get_toolbar(main_win); + gtk_container_add ( GTK_CONTAINER ( main_box ) , toolbar ); + gtk_widget_show(toolbar); - hbox = gtk_hbox_new(FALSE, 5); + hbox = gtk_hbox_new(FALSE, 1); gtk_container_add(GTK_CONTAINER(main_box), hbox); frame = gtk_frame_new(NULL); - gtk_container_set_border_width(GTK_CONTAINER(frame), 3); + gtk_container_set_border_width(GTK_CONTAINER(frame), 1); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_OUT); gtk_container_add(GTK_CONTAINER(hbox), frame); - term_box = gtk_vbox_new (FALSE, 0); + term_box = gtk_vbox_new (FALSE, 1); gtk_container_add(GTK_CONTAINER(frame), term_box); sc = scw_new (); diff -uNr gau-0.4.1.orig/gau.h gau-0.4.1/gau.h --- gau-0.4.1.orig/gau.h Thu Aug 5 21:23:54 1999 +++ gau-0.4.1/gau.h Sat Sep 18 13:55:17 1999 @@ -104,6 +104,27 @@ GtkWidget * add_menu_item (GtkWidget *menu, char *label, GtkSignalFunc func, gpointer data); void hangup_cb(GtkWidget *w, gpointer data); void screen_save_cb(GtkWidget * w, gpointer data); +void capture_cb(GtkWidget * w, gpointer data); +void exit_cb(GtkWidget * w, gpointer data); +void disconnect_after_transfer_toggle_cb(GtkWidget * w, gpointer data); +void modem_attr_cb(GtkWidget * w, gpointer data); +void screen_save_cb(GtkWidget * w, gpointer data); +void chat_cb(GtkWidget * w, gpointer data); +void cancel_cb(GtkWidget * w, gpointer data); +void etc_menu_create(GtkWidget * w); +void script_menu_create(GtkWidget * box); +void nohang_exit_cb(void); +void screen_reset(void); +void run_scriptfile(GtkWidget * w, char *filename); +void toggle_local_echo(void); +void toggle_auto_response(GtkWidget * w, gpointer index); +void toggle_remote_echo(void); +void give_shell(void); +void write_cb(GtkWidget * w, gpointer data); +gint write_fragment(gpointer data); +void write_signal_child_handler(void); +void query_script_command(void); +void set_crlf(GtkWidget * w, gpointer data); /* i_select.c */ void i_select_init(void); @@ -254,4 +275,23 @@ void check_personal_rc (void); char *get_string_from_user(char *label_text); +/* menu.c */ +void get_main_menu(GtkWidget *window, GtkWidget ** menubar); +void gtk_ifactory_cb (gpointer callback_data, guint callback_action, + GtkWidget *widget); + +/* help.c */ +void help_cb (GtkWidget *widget, gpointer data); +void help_cb_ok (GtkWidget *widget, gpointer data); +void about (GtkWidget *widget, gpointer data); +void about_ok (GtkWidget *widget, gpointer data); + +/* connect.c */ +void connect_cb (GtkWidget *widget, gpointer data); +void connect_ok(GtkWidget *widget, gpointer data); +void connect_cancel(GtkWidget *widget, gpointer data); +void disconnect_cb (GtkWidget *widget, gpointer data); + +/* toolbar.c */ +GtkWidget* get_toolbar(GtkWidget *window); #endif /* __GAU_H__ */ diff -uNr gau-0.4.1.orig/help.c gau-0.4.1/help.c --- gau-0.4.1.orig/help.c Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/help.c Sat Sep 18 18:21:27 1999 @@ -0,0 +1,87 @@ +#include "gau.h" +#include "config.h" +#include + +/* Global Variables */ +static GtkWidget *help_dialog; +static GtkWidget *about_dialog; + +/* "µµ¿ò¸»-¸ñÂ÷" ¸Þ´º¸¦ ¼±ÅÃÇϸé È£ÃâµÇ´Â ÇÔ¼ö */ +void +help_cb (GtkWidget *widget, gpointer data) +{ + GtkWidget *label; + GtkWidget *ok_button; + + /* ´ÙÀ̾ó·Î±× »ý¼º */ + help_dialog = gtk_dialog_new(); + + gtk_widget_set_usize(GTK_WIDGET(help_dialog), 500, 500); + gtk_window_set_title(GTK_WINDOW(help_dialog), "µµ¿ò¸»"); + /* µµ¿ò¸» ¶óº§ - ÆÄÀÏ Àоî Ç¥½ÃÇÏ´Â °ÍÀ¸·Î °íÄ¥°Í... */ + label = gtk_label_new ("µµ¿ò¸»ÀÔ´Ï´Ù.\n¿©·¯ºÐÀÌ Ã¤¿öÁÖ½Ç °÷ÀÌÁö¿ä. =)"); + //label = gtk_entry_new (); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (help_dialog)->vbox), + label, TRUE, TRUE, 0); + gtk_widget_show(label); + + /* "Ok" ¹öÆ° */ + ok_button = gtk_button_new_with_label ("Ok"); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (help_dialog)->action_area), + ok_button, TRUE, TRUE, 0); + gtk_signal_connect(GTK_OBJECT(ok_button), "clicked", + GTK_SIGNAL_FUNC(help_cb_ok), NULL); + /* set Ok Button as default */ + gtk_widget_grab_focus(ok_button); + + gtk_widget_show(ok_button); + + gtk_widget_show(help_dialog); +} + +void +help_cb_ok (GtkWidget *widget, gpointer data) +{ + gtk_widget_destroy (help_dialog); +} + +/* "µµ¿ò¸»-°¡¿ì¿¡ °üÇÏ¿©..." ¸Þ´º¸¦ ¼±ÅÃÇϸé È£ÃâµÇ´Â ÇÔ¼ö */ +void +about (GtkWidget *widget, gpointer data) +{ + GtkWidget *about_label; + GtkWidget *about_ok_button; + char str[BUFSIZ]; + + /* Create Dialog */ + about_dialog = gtk_dialog_new(); + gtk_widget_set_usize(GTK_WIDGET(about_dialog), 300, 200); + gtk_window_set_title(GTK_WINDOW(about_dialog), "°¡¿ì¿¡ °üÇÏ¿©..."); + + /* Create Label */ + sprintf(str, "°¡¿ì\n%s\n\n(C) Ȳġ´ö 1997, 1998, 1999\n\nX À©µµ¿ì¿ë Å͹̳Π¿¡¹Ä·¹ÀÌÅÍ, Åë½Å ÇÁ·Î±×·¥", VERSION); + about_label = gtk_label_new (str); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (about_dialog)->vbox), + about_label, TRUE, TRUE, 0); + gtk_widget_show(about_label); + + /* Create Ok Button */ + about_ok_button = gtk_button_new_with_label ("Ok"); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (about_dialog)->action_area), + about_ok_button, TRUE, TRUE, 0); + gtk_signal_connect(GTK_OBJECT(about_ok_button), "clicked", + GTK_SIGNAL_FUNC(about_ok), NULL); + gtk_widget_show(about_ok_button); + + /* set Ok Button as default */ + gtk_widget_grab_focus(about_ok_button); + + gtk_widget_show(about_dialog); +} + +/* Ok¸¦ ´­·¶À» °æ¿ì È£ÃâµÇ´Â ÇÔ¼ö */ +void +about_ok(GtkWidget *widget, gpointer data) +{ + gtk_widget_destroy (about_dialog); +} diff -uNr gau-0.4.1.orig/menu.c gau-0.4.1/menu.c --- gau-0.4.1.orig/menu.c Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/menu.c Sat Sep 18 14:00:50 1999 @@ -0,0 +1,133 @@ +/* example-start menu itemfactory.c */ + +#include "gau.h" +#include + +/* This is the GtkItemFactoryEntry structure used to generate new menus. + Item 1: The menu path. The letter after the underscore indicates an + accelerator key once the menu is open. + Item 2: The accelerator key for the entry + Item 3: The callback function. + Item 4: The callback action. This changes the parameters with + which the function is called. The default is 0. + Item 5: The item type, used to define what kind of an item it is. + Here are the possible values: + + NULL -> "" + "" -> "" + "" -> create a title item + "<Item>" -> create a simple item + "<CheckItem>" -> create a check item + "<ToggleItem>" -> create a toggle item + "<RadioItem>" -> create a radio item + <path> -> path of a radio item to link against + "<Separator>" -> create a separator + "<Branch>" -> create an item to hold sub items + "<LastBranch>" -> create a right justified branch +*/ + +static GtkItemFactoryEntry menu_items[] = { + {"/ÆÄÀÏ", NULL, NULL, 0, "<Branch>"}, + {"/ÆÄÀÏ/¼öµ¿ Á¢¼Ó...", NULL, connect_cb, 0, NULL}, + {"/ÆÄÀÏ/Á¢¼Ó ²÷±â", NULL, disconnect_cb, 0, NULL}, + {"/ÆÄÀÏ/sep1", NULL, NULL, 0, "<Separator>"}, + {"/ÆÄÀÏ/³¡³»±â", NULL, exit_cb, 0, NULL}, + {"/µµ±¸", NULL, NULL, 0, "<Branch>"}, + {"/µµ±¸/±Û¾²±â", NULL, write_cb, 0, NULL}, + {"/µµ±¸/À̾߱⠸¶´ç", NULL, chat_cb, 0, NULL}, + {"/µµ±¸/ÀÚµ¿ ¹ÝÀÀ...", NULL, ar_setup_cb, 0, NULL}, + {"/µµ±¸/sep1", NULL, NULL, 0, "<Separator>"}, + {"/µµ±¸/°¥¹«¸®...", NULL, capture_cb, 0, NULL}, + {"/µµ±¸/È­¸é ÀúÀå", NULL, screen_save_cb, 0, NULL}, + {"/µµ±¸/¸ðµç È­¸é ÀúÀå", NULL, screen_save_cb, 1, NULL}, /* È­¸é ÀúÀå°ú µ¿ÀÏÇÏ°Ô µ¿ÀÛÇϹǷΠ°íÄ¥ °Í */ + {"/µµ±¸/È­¸é Áö¿ò", NULL, screen_reset, 0, NULL}, + {"/µµ±¸/sep1", NULL, NULL, 0, "<Separator>"}, + {"/µµ±¸/ÆÄÀÏ ¹Þ±â", NULL, run_rz, 0, NULL}, + {"/µµ±¸/ÆÄÀÏ º¸³»±â", NULL, run_sz, 0, NULL}, + {"/¿É¼Ç", NULL, NULL, 0, "<Branch>"}, + {"/¿É¼Ç/¶óÀÎÇǵå", NULL, gtk_ifactory_cb, 1, "<CheckItem>"}, + {"/¿É¼Ç/ÀÚµ¿ ÆÄÀÏ ¹Þ±â", NULL, gtk_ifactory_cb, 2, "<CheckItem>"}, + {"/¿É¼Ç/ÀÚµ¿ ÆÄÀÏ º¸³»±â", NULL, gtk_ifactory_cb, 3, "<CheckItem>"}, + {"/¿É¼Ç/°¥¹«¸®¶§ ^M ¾ø¾Ú", NULL, gtk_ifactory_cb, 4, "<CheckItem>"}, + {"/¿É¼Ç/Enter Key ¹ÙÀεù", NULL, NULL, 0, "<Branch>"}, + {"/¿É¼Ç/Enter Key ¹ÙÀεù/CR", NULL, gtk_ifactory_cb, 5, "<RadioItem>"}, + {"/¿É¼Ç/Enter Key ¹ÙÀεù/LF", NULL, gtk_ifactory_cb, 6, "/¿É¼Ç/Enter Key ¹ÙÀεù/CR"}, + {"/¿É¼Ç/Enter Key ¹ÙÀεù/CR+LF", NULL, gtk_ifactory_cb, 7, "/¿É¼Ç/Enter Key ¹ÙÀεù/CR"}, + {"/µµ¿ò¸»", NULL, NULL, 0, "<LastBranch>"}, + {"/µµ¿ò¸»/¸ñÂ÷", NULL, help_cb, 0, NULL}, + {"/µµ¿ò¸»/sep1", NULL, NULL, 0, "<Separator>"}, + {"/µµ¿ò¸»/°¡¿ì¿¡ °üÇÏ¿©...", NULL, about, 0, NULL}, +}; + +/* RadioItem, CheckItemÀÇ »óÅ°¡ ¹Ù²ð¶§ È£ÃâµÇ´Â Wrapper Function +¶Ç´Ù¸¥ ÇØ´ç ÇÔ¼ö¸¦ È£ÃâÇÑ´Ù. */ +void +gtk_ifactory_cb (gpointer callback_data, + guint callback_action, + GtkWidget *widget) +{ + g_message ("ItemFactory: activated \"%s\"", gtk_item_factory_path_from_widget (widget)); + g_message ("guint = %d", callback_action ); + switch (callback_action) { + case 1: /* ¶óÀÎÇǵå*/ + break; + + case 2: /* ÀÚµ¿ ÆÄÀÏ ¹Þ±â */ + break; + + case 3: /* ÀÚµ¿ ÆÄÀÏ º¸³»±â */ + break; + + case 4: /* °¥¹«¸®¶§ ^M ¾ø¾Ú */ + break; + + case 5: /* Enter Key => CR */ + break; + + case 6: /* Enter Key => LF */ + break; + + case 7: /* Enter Key => CR+LF */ + break; + + default: + g_message("gtk_ifactory_cb case¹® ½ÇÆÐ !"); + break; + + } + +} + +/* ¸ÞÀÎ À©µµ¿ì¿¡¼­ ¸ÞÀÎ ¸Þ´º¸¦ »ý¼ºÇÏ´Â ÇÔ¼ö */ +void get_main_menu(GtkWidget *window, GtkWidget ** menubar) { + int nmenu_items = sizeof(menu_items) / sizeof(menu_items[0]); + GtkItemFactory *item_factory; + GtkAccelGroup *accel_group; + + accel_group = gtk_accel_group_new(); + + /* This function initializes the item factory. + Param 1: The type of menu - can be GTK_TYPE_MENU_BAR, GTK_TYPE_MENU, + or GTK_TYPE_OPTION_MENU. + Param 2: The path of the menu. + Param 3: A pointer to a gtk_accel_group. The item factory sets up + the accelerator table while generating menus. + */ + + item_factory = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "<main>", + accel_group); + + /* This function generates the menu items. Pass the item factory, + the number of items in the array, the array itself, and any + callback data for the the menu items. */ + gtk_item_factory_create_items(item_factory, nmenu_items, menu_items, NULL); + + /* Attach the new accelerator group to the window. */ + gtk_accel_group_attach (accel_group, GTK_OBJECT (window)); + + if (menubar) + /* Finally, return the actual menu bar created by the item factory. */ + *menubar = gtk_item_factory_get_widget(item_factory, "<main>"); +} + +/* example-end */ diff -uNr gau-0.4.1.orig/rc/gtkrc gau-0.4.1/rc/gtkrc --- gau-0.4.1.orig/rc/gtkrc Thu Aug 6 19:36:16 1998 +++ gau-0.4.1/rc/gtkrc Sat Sep 18 07:04:11 1999 @@ -43,3 +43,4 @@ widget "*Button*" style "button" widget "*Menu*" style "button" widget "*main*" style "normal" +widget "*Dialog*" style "normal" diff -uNr gau-0.4.1.orig/rc/xpm/capture.xpm gau-0.4.1/rc/xpm/capture.xpm --- gau-0.4.1.orig/rc/xpm/capture.xpm Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/rc/xpm/capture.xpm Sat Sep 18 07:31:46 1999 @@ -0,0 +1,31 @@ +/* XPM */ +static char*fullscreen[]={ +"22 22 6 1", +"b c #808080", +"a c #c0c0c0", +"# c #000000", +". c None", +"d c #c0ffff", +"c c #ffffff", +"......................", +"......................", +"......................", +"......................", +".....############.....", +"....#aaaaaaaaaaaa#....", +"....#abbbbbbbbbba#....", +"....#ab########ca#....", +"....#ab#dd#####ca#....", +"....#ab########ca#....", +"....#ab########ca#....", +"....#ab########ca#....", +"....#ab########ca#....", +"....#ab########ca#....", +"....#aaaaaaaaaaaa#....", +"....#bbbbbbbbbbbb#....", +".....############.....", +"......................", +"......................", +"......................", +"......................", +"......................"}; diff -uNr gau-0.4.1.orig/rc/xpm/chat.xpm gau-0.4.1/rc/xpm/chat.xpm --- gau-0.4.1.orig/rc/xpm/chat.xpm Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/rc/xpm/chat.xpm Sat Sep 18 07:31:30 1999 @@ -0,0 +1,38 @@ +/* XPM */ +static char * ksirc_dock_xpm[] = { +"24 24 11 1", +" c None", +". c #303030", +"+ c #00FF00", +"@ c #008200", +"# c #0000FF", +"$ c #00C300", +"% c #0000C7", +"& c #000086", +"* c #000000", +"= c #FFFF00", +"- c #C7C300", +" ....... ", +" ..++++++@.. ", +" .++++++++###. ", +" .#++++++$@####. ", +" .##+++++++$@####. ", +" .###@++++++$@#####. ", +" .$###+++$$+@#####+. ", +" .#$###@+$@#$######$#. ", +" .$@####@+##########@. ", +" .%######@$@########%. ", +" .%%########@######%%. ", +" .%%%#######+$$###%%%. ", +" .&%%%#####$+++$%%%%&. ", +" .*****####@+++*****&. ", +" *=====*%%%%$+*=====* ", +" *=======*%%%%*=======* ", +"*-=====*==*%%*-**==**==*", +"*-====**==*%@*-*===*===*", +"*-========*&&*-========*", +"*-========*&&*-========*", +"*-====****...*-=*===*==*", +" *-===* *-=***==* ", +" *----* *-----* ", +" ***** ***** "}; diff -uNr gau-0.4.1.orig/rc/xpm/connect.xpm gau-0.4.1/rc/xpm/connect.xpm --- gau-0.4.1.orig/rc/xpm/connect.xpm Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/rc/xpm/connect.xpm Sat Sep 18 07:31:09 1999 @@ -0,0 +1,22 @@ +/* XPM */ +static char * mini_connected_xpm[] = { +"16 14 5 1", +" c None", +". c #000000000000", +"X c #84207BDE7BDE", +"o c #F7BC10844210", +"O c #FFFFFFFF0000", +" ", +" ", +" .", +" XXXXXX ..", +" XooooooX ..", +" XXooooooooX..", +" XOOoooooooX ..", +" XO..ooooooooX..", +" XO. XooooooX ..", +"XO. XXXXXX ..", +"XO. .", +"XO. ", +" ", +" "}; diff -uNr gau-0.4.1.orig/rc/xpm/disconnect.xpm gau-0.4.1/rc/xpm/disconnect.xpm --- gau-0.4.1.orig/rc/xpm/disconnect.xpm Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/rc/xpm/disconnect.xpm Sat Sep 18 07:31:13 1999 @@ -0,0 +1,22 @@ +/* XPM */ +static char * mini-connect_xpm[] = { +"16 14 5 1", +" c None", +". c black", +"X c gray50", +"o c red", +"O c yellow", +" ", +" . ", +" X .X ", +" XooX . ", +" Xoooo .X ", +" XooooooX ", +" XooooooX ", +" XoooooX. ", +" XooooX. ", +" XOXXXX. ", +" XOXX... ", +" XOXX ", +" XX ", +" X "}; diff -uNr gau-0.4.1.orig/rc/xpm/down.xpm gau-0.4.1/rc/xpm/down.xpm --- gau-0.4.1.orig/rc/xpm/down.xpm Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/rc/xpm/down.xpm Sat Sep 18 07:40:32 1999 @@ -0,0 +1,29 @@ +/* XPM */ +static char * d_xpm[] = { +/* width height num_colors chars_per_pixel */ +"20 20 3 1", +/* colors */ +" s None c None", +". c #000000", +"X c #008080", +/* pixels */ +" ", +" ", +" ", +" .............. ", +" .XXXXXXXXXXXX. ", +" .XXXXXXXXXX. ", +" .XXXXXXXXXX. ", +" .XXXXXXXX. ", +" .XXXXXXXX. ", +" .XXXXXX. ", +" .XXXXXX. ", +" .XXXX. ", +" .XXXX. ", +" .XX. ", +" .XX. ", +" .. ", +" .. ", +" ", +" ", +" "}; diff -uNr gau-0.4.1.orig/rc/xpm/up.xpm gau-0.4.1/rc/xpm/up.xpm --- gau-0.4.1.orig/rc/xpm/up.xpm Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/rc/xpm/up.xpm Sat Sep 18 07:40:36 1999 @@ -0,0 +1,29 @@ +/* XPM */ +static char * u_xpm[] = { +/* width height num_colors chars_per_pixel */ +"20 20 3 1", +/* colors */ +" s None c None", +". c #000000", +"X c #008080", +/* pixels */ +" ", +" ", +" ", +" .. ", +" .. ", +" .XX. ", +" .XX. ", +" .XXXX. ", +" .XXXX. ", +" .XXXXXX. ", +" .XXXXXX. ", +" .XXXXXXXX. ", +" .XXXXXXXX. ", +" .XXXXXXXXXX. ", +" .XXXXXXXXXX. ", +" .XXXXXXXXXXXX. ", +" .............. ", +" ", +" ", +" "}; diff -uNr gau-0.4.1.orig/rc/xpm/write.xpm gau-0.4.1/rc/xpm/write.xpm --- gau-0.4.1.orig/rc/xpm/write.xpm Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/rc/xpm/write.xpm Sat Sep 18 07:40:24 1999 @@ -0,0 +1,36 @@ +/* XPM */ +static char*kwrite[]={ +"16 16 17 1", +"o c #808080", +"k c #ffa858", +"h c #a0a0a4", +"d c #c0c0c0", +"a c #c05800", +"# c #000000", +"b c #ff8000", +"m c #004040", +"f c #ffff00", +"n c #303030", +"l c #800000", +"j c #ffdca8", +". c None", +"c c #c00000", +"i c #585858", +"e c #dcdcdc", +"g c #ffffff", +".........####...", +"........#abbc#..", +".......#dedbbb#.", +"......#bbdddbbc#", +".....#ffgbdhibc#", +"....#ffjkkbi#ic#", +"...#ffgkkki#dl#m", +"..#ffjkkkaai##mm", +".#kkbkkkaab##mm.", +".#jgjbkaab##mm..", +"#jgjjjbaba#mm...", +"#jjjjjbaa#mm....", +"#nojjkba#mm.....", +"##nkka##mm......", +"#####mmmm.......", +"...mmmm........."}; diff -uNr gau-0.4.1.orig/status.c gau-0.4.1/status.c --- gau-0.4.1.orig/status.c Wed Jul 21 22:28:36 1999 +++ gau-0.4.1/status.c Tue Sep 21 09:41:16 1999 @@ -30,7 +30,7 @@ status_bar(GtkWidget * box) { GtkWidget *frame; - GtkWidget *hbox; + //GtkWidget *hbox; status_label = gtk_label_new("°¡¿ì"); gtk_box_pack_start(GTK_BOX(box), status_label, FALSE, FALSE, 2); @@ -45,7 +45,7 @@ gtk_container_add(GTK_CONTAINER(frame), time_label); // han input state - frame = gtk_frame_new(NULL); + /* frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_IN); gtk_box_pack_end(GTK_BOX(box), frame, FALSE, FALSE, 5); @@ -53,7 +53,7 @@ gtk_container_add(GTK_CONTAINER(frame), hbox); han_input_label = gtk_label_new(" [¿µ¹®] "); - gtk_container_add(GTK_CONTAINER(hbox), han_input_label); + gtk_container_add(GTK_CONTAINER(hbox), han_input_label); */ // in & out status report #if 0 diff -uNr gau-0.4.1.orig/toolbar.c gau-0.4.1/toolbar.c --- gau-0.4.1.orig/toolbar.c Thu Jan 1 09:00:00 1970 +++ gau-0.4.1/toolbar.c Sat Sep 18 18:10:57 1999 @@ -0,0 +1,111 @@ +#include "gau.h" +#include "gaupath.h" + +/* Åø¹Ù¸¦ »ý¼ºÇÏ´Â ÇÔ¼ö */ +GtkWidget* get_toolbar(GtkWidget *window) { + /* Åø¹Ù */ + GtkWidget * toolbar; + GdkPixmap * icon; + GdkBitmap * mask; + GtkWidget * iconw; + GtkWidget * connect_button; + GtkWidget * disconnect_button; + GtkWidget * chat_button; + GtkWidget * capture_button; + + /* Åø¹Ù ºÙÀ̱â */ + toolbar = gtk_toolbar_new ( GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH ); + + /* ¾ÆÀÌÄÜ »ý¼ºÇÏ°í Åø¹Ù ¾ÆÀÌÅÛ ºÙÀ̱â */ + /* now we create icon with mask: we'll reuse it to create + * icon widgets for toolbar items */ + icon = gdk_pixmap_create_from_xpm( window->window, &mask, + &window->style->white, expand_path(GAU_PATH "/xpm/connect.xpm")); + iconw = gtk_pixmap_new ( icon, mask ); /* icon widget */ + connect_button = + gtk_toolbar_append_item ( GTK_TOOLBAR (toolbar), /* our toolbar */ + "Á¢¼Ó", /* button label */ + "¼­¹ö¿¡ Á¢¼ÓÇÕ´Ï´Ù", /* this button's tooltip */ + "Private", /* tooltip private info */ + iconw, /* icon widget */ + GTK_SIGNAL_FUNC (connect_cb), /* a signal */ + NULL ); + + icon = gdk_pixmap_create_from_xpm( window->window, &mask, + &window->style->white, expand_path(GAU_PATH "/xpm/disconnect.xpm")); + iconw = gtk_pixmap_new ( icon, mask ); + disconnect_button = + gtk_toolbar_append_item ( GTK_TOOLBAR (toolbar), + "Á¢¼Ó ²÷±â", + "Á¢¼ÓÀ» ²÷½À´Ï´Ù", + "Private", + iconw, + GTK_SIGNAL_FUNC (disconnect_cb), + NULL ); + + gtk_toolbar_append_space ( GTK_TOOLBAR ( toolbar ) ); /*space after item*/ + + icon = gdk_pixmap_create_from_xpm( window->window, &mask, + &window->style->white, expand_path(GAU_PATH "/xpm/chat.xpm")); + iconw = gtk_pixmap_new ( icon, mask ); + chat_button = + gtk_toolbar_append_item ( GTK_TOOLBAR (toolbar), + "À̾߱⠸¶´ç", + "À̾߱⸦ ÇÕ´Ï´Ù", + "Private", + iconw, + GTK_SIGNAL_FUNC (chat_cb), + NULL ); + + icon = gdk_pixmap_create_from_xpm( window->window, &mask, + &window->style->white, expand_path(GAU_PATH "/xpm/capture.xpm")); + iconw = gtk_pixmap_new ( icon, mask ); + capture_button = + gtk_toolbar_append_item ( GTK_TOOLBAR (toolbar), + "È­¸é ÀúÀå", + "È­¸éÀ» ÀúÀåÇÕ´Ï´Ù", + "Private", + iconw, + GTK_SIGNAL_FUNC (screen_save_cb), + 0 ); + + icon = gdk_pixmap_create_from_xpm( window->window, &mask, + &window->style->white, expand_path(GAU_PATH "/xpm/write.xpm")); + iconw = gtk_pixmap_new ( icon, mask ); + capture_button = + gtk_toolbar_append_item ( GTK_TOOLBAR (toolbar), + "±Û¾²±â", + "±ÛÀ» ¾¹´Ï´Ù", + "Private", + iconw, + GTK_SIGNAL_FUNC (write_cb), + NULL ); + + gtk_toolbar_append_space ( GTK_TOOLBAR ( toolbar ) ); /*space after item*/ + + icon = gdk_pixmap_create_from_xpm( window->window, &mask, + &window->style->white, expand_path(GAU_PATH "/xpm/down.xpm")); + iconw = gtk_pixmap_new ( icon, mask ); + capture_button = + gtk_toolbar_append_item ( GTK_TOOLBAR (toolbar), + "ÆÄÀÏ ¹Þ±â", + "ÆÄÀÏÀ» ¹Þ½À´Ï´Ù", + "Private", + iconw, + GTK_SIGNAL_FUNC (run_rz), + NULL ); + + icon = gdk_pixmap_create_from_xpm( window->window, &mask, + &window->style->white, expand_path(GAU_PATH "/xpm/up.xpm")); + iconw = gtk_pixmap_new ( icon, mask ); + capture_button = + gtk_toolbar_append_item ( GTK_TOOLBAR (toolbar), + "ÆÄÀÏ º¸³»±â", + "ÆÄÀÏÀ» º¸³À´Ï´Ù", + "Private", + iconw, + GTK_SIGNAL_FUNC (run_sz), + NULL ); + + return toolbar; +} diff -uNr gau-0.4.1.orig/util.c gau-0.4.1/util.c --- gau-0.4.1.orig/util.c Sat Jul 24 15:14:51 1999 +++ gau-0.4.1/util.c Sat Sep 18 13:37:50 1999 @@ -14,15 +14,52 @@ #include "gau.h" +/* Ok¸¦ ´­·¶À» °æ¿ì È£ÃâµÇ´Â ÇÔ¼ö */ +void +ok_cb(GtkWidget *widget, gpointer data) +{ + exit(1); +} + + static void call_gau_install(void) { - fprintf (stderr, "¸ÕÀú gau-installÀ» ½ÇÇà½ÃÅ°½Ê½Ã¿À\n"); - fprintf (stderr, "gau-installÀº °¡¿ì½ÇÇà¿¡ ÇÊ¿äÇÑ °³ÀÎ ¼³Á¤ ÆÄÀϵéÀ»\n"); - fprintf (stderr, "Ȩ µð·ºÅ丮 ¾Æ·¡ .gau¶ó´Â µð·ºÅ丮¾Æ·¡·Î º¹»çÇØÁÙ°ÍÀÔ´Ï´Ù.\n"); - fprintf (stderr, "¼³¸í¼­¸¦ Àß Àо½Ã°í °¢ÀÚÀÇ »óȲ¿¡ ¸Âµµ·Ï ¼³Á¤ÆÄÀϵéÀ»\n"); - fprintf (stderr, "°íÄ¡½Å ÈÄ ´Ù½Ã °¡¿ì¸¦ ½ÇÇà½ÃÅ°½Ã±â ¹Ù¶ø´Ï´Ù.\n"); - exit(1); + GtkWidget *window; + GtkWidget *label; + GtkWidget *button; + + /* gau-install */ + system("gau-install"); + + /* ´ÙÀ̾ó·Î±× ¹Ú½º ¶ç¿ì±â */ + window = gtk_dialog_new(); + gtk_window_set_title (GTK_WINDOW (window), "°¡¿ì"); + + label = gtk_label_new ("¼³Á¤ ÆÄÀÏÀÌ ¼³Ä¡µÇÁö ¾Ê¾Ò½À´Ï´Ù. ÇöÀç ¼³Á¤ ÆÄÀÏÀÇ +¼³Ä¡¸¦ ¸¶ÃƽÀ´Ï´Ù. °¡¿ì ½ÇÇà¿¡ ÇÊ¿äÇÑ °³ÀÎ ¼³Á¤ ÆÄÀϵéÀº +Ȩ µð·ºÅ丮 ¾Æ·¡ .gau¶ó´Â µð·ºÅ丮 ¾Æ·¡·Î º¹»çµË´Ï´Ù. + +¼³¸í¼­¸¦ Àß Àо½Ã°í ¿©·¯ºÐÀÇ »óȲ¿¡ ¸Âµµ·Ï ¼³Á¤ÆÄÀϵéÀ» +°íÄ¡½Å ÈÄ ´Ù½Ã °¡¿ì¸¦ ½ÇÇà½ÃÅ°½Ã±â ¹Ù¶ø´Ï´Ù."); + + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), + label, TRUE, TRUE, 0); + gtk_widget_show (label); + + button = gtk_button_new_with_label ("Ok"); + /* "Ok" Äݹé ÇÔ¼ö ¼³Á¤ */ + gtk_signal_connect(GTK_OBJECT(button), "clicked", \ + GTK_SIGNAL_FUNC(ok_cb), NULL); + + /* ¹öÆ° ºÙÀ̱â */ + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->action_area), + button, TRUE, TRUE, 0); + gtk_widget_show (button); + + gtk_widget_show (window); + + gtk_main(); } void ��