# HG changeset patch # User Eric Warmenhoven # Date 964810136 0 # Node ID e312b8b9bee5b9de4e64815447a1cffbdef51b78 # Parent d5425f92287951c99d7881fc27adbcec64829468 [gaim-migrate @ 556] --version committer: Tailor Script diff -r d5425f922879 -r e312b8b9bee5 TODO --- a/TODO Fri Jul 28 17:56:17 2000 +0000 +++ b/TODO Fri Jul 28 18:48:56 2000 +0000 @@ -3,9 +3,9 @@ Add "Group Add" button Third sound option for people without soundcards who still want sound events. Make a PC Speaker Beep (^G / Char 7) - --version command line option I guess we'll stick those legend icons back in the info window. I forget why we took them out now. I think it was because we were going to add minimal IMG tag support to gtkhtml and never did. Save Buddy Pounces (how did I forget this) + Save Buddy Chats diff -r d5425f922879 -r e312b8b9bee5 src/about.c --- a/src/about.c Fri Jul 28 17:56:17 2000 +0000 +++ b/src/about.c Fri Jul 28 18:48:56 2000 +0000 @@ -41,6 +41,12 @@ } +static void version_exit() +{ + exit(0); +} + + static void about_click(GtkWidget *w, gpointer m) { open_url_nw(NULL, "http://www.marko.net/gaim/"); @@ -110,8 +116,12 @@ gdk_window_set_cursor(eventbox->window, gdk_cursor_new(GDK_HAND2)); button = gtk_button_new_with_label(_("Close")); - gtk_signal_connect_object(GTK_OBJECT(button), "clicked", - GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); + if (null == NULL) /* there's a mindtrip */ + gtk_signal_connect_object(GTK_OBJECT(button), "clicked", + GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); + else + gtk_signal_connect(GTK_OBJECT(button), "clicked", + GTK_SIGNAL_FUNC(version_exit), NULL); gtk_signal_connect(GTK_OBJECT(about), "destroy", GTK_SIGNAL_FUNC(destroy_about), GTK_OBJECT(about)); diff -r d5425f922879 -r e312b8b9bee5 src/aim.c --- a/src/aim.c Fri Jul 28 17:56:17 2000 +0000 +++ b/src/aim.c Fri Jul 28 18:48:56 2000 +0000 @@ -532,6 +532,15 @@ textdomain(PACKAGE); #endif + if (argc > 1 && !strcmp(argv[1], "--version")) { + gtk_init(&argc, &argv); + set_defaults(); /* needed for open_url_nw */ + load_prefs(); + show_about(0, (void *)1); + gtk_main(); + return 0; + } + #ifdef USE_APPLET init_applet_mgr(argc, argv); #elif defined USE_THEMES