changeset 3285:e71ade93b98f

[gaim-migrate @ 3303] typo-fix and Chris Boyle's patch to add an "auto-login" item to the applet menu. Thanks, Chris. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 31 May 2002 02:58:07 +0000
parents 7b867d79da96
children 51e55584b71e
files configure.in src/aim.c src/multi.c
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri May 31 02:26:53 2002 +0000
+++ b/configure.in	Fri May 31 02:58:07 2002 +0000
@@ -234,6 +234,7 @@
 
 dnl Check for XScreenSaver
 if test "x$enable_xss" = "xyes" ; then
+	AC_PATH_X
 	old_LIBS="$LIBS"
 	LIBS="$LIBS $UI_LIBS -L$x_libraries"
 	XSS_LIBS="no"
--- a/src/aim.c	Fri May 31 02:26:53 2002 +0000
+++ b/src/aim.c	Fri May 31 02:58:07 2002 +0000
@@ -148,6 +148,7 @@
 	}
 #ifdef USE_APPLET
 	set_user_state(online);
+	applet_widget_unregister_callback(APPLET_WIDGET(applet), "autologin");
 	applet_widget_register_callback(APPLET_WIDGET(applet),
 					"signoff", _("Signoff"), (AppletCallbackFunc)signoff_all, NULL);
 #endif /* USE_APPLET */
@@ -833,6 +834,9 @@
 					"plugins", _("Plugins"), GTK_SIGNAL_FUNC(show_plugins), NULL);
 #endif /* GAIM_PLUGINS */
 
+	applet_widget_register_callback(APPLET_WIDGET(applet),
+					"autologin", _("Auto-login"), (AppletCallbackFunc)auto_login, NULL);
+ 
 	if (!opt_acct)
 		auto_login();
 
--- a/src/multi.c	Fri May 31 02:26:53 2002 +0000
+++ b/src/multi.c	Fri May 31 02:58:07 2002 +0000
@@ -1468,6 +1468,8 @@
 	if (applet) {
 		/* These don't have any purpose if the applet is gone :-P */
 		applet_widget_unregister_callback(APPLET_WIDGET(applet), "signoff");
+		applet_widget_register_callback(APPLET_WIDGET(applet),
+						"autologin", _("Auto-login"), (AppletCallbackFunc)auto_login, NULL);
 		remove_applet_away();
 	}
 #else