Mercurial > pidgin.yaz
changeset 546:e312b8b9bee5
[gaim-migrate @ 556]
--version
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 28 Jul 2000 18:48:56 +0000 |
parents | d5425f922879 |
children | 8086ed233742 |
files | TODO src/about.c src/aim.c |
diffstat | 3 files changed, 22 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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));
--- 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