diff src/buddy.c @ 3188:49fb2b634a2a

[gaim-migrate @ 3205] The Robot101 commit. A toc fix (don't use toc) and the possibility to compile iconaway.c on an applet and use it on the standalone app. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 27 Apr 2002 19:41:07 +0000
parents fce1883cc608
children dd03116e0f8d
line wrap: on
line diff
--- a/src/buddy.c	Sat Apr 27 07:43:53 2002 +0000
+++ b/src/buddy.c	Sat Apr 27 19:41:07 2002 +0000
@@ -1986,6 +1986,16 @@
 	return g;
 }
 
+void hide_buddy_list() {
+	#ifdef USE_APPLET
+	applet_destroy_buddy();
+#else
+	XIconifyWindow(GDK_DISPLAY(),
+			GDK_WINDOW_XWINDOW(blist->window),
+			((_XPrivDisplay)GDK_DISPLAY())->default_screen);
+#endif
+}
+
 static gint log_timeout(struct buddy_show *b)
 {
 	/* this part is really just a bad hack because of a bug I can't find */