diff src/roomlist.h @ 8937:fd1a4ff1f7ed

[gaim-migrate @ 9707] Tools->Room List will now be grayed out when you're not signed on with an account that supports listing rooms. This involved 2 big changes: -Change when the sign_on_off_cb function in gtkblist gets called... it used to get called when the signing-on and signing-off signal was emitted, but I changed it to signed-on and signed-off. This makes more sense to me, and it makes my code work :-) Let me know if you notice any side-effects -Add functions to the roomlist API for determining if any online accounts support chatting or not. This involved extracting a function from gtkroomlist.c and putting it in roomlist.c, and adding a little helper TRUE/FALSE function committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 15 May 2004 21:56:17 +0000
parents c2dff943e240
children 19885cb8a24c
line wrap: on
line diff
--- a/src/roomlist.h	Sat May 15 21:24:43 2004 +0000
+++ b/src/roomlist.h	Sat May 15 21:56:17 2004 +0000
@@ -113,6 +113,22 @@
 /*@{*/
 
 /**
+ * Return true if there are accounts signed on that support showing
+ * a roomlist.
+ *
+ * @return True if showing the roomlist is a valid action.
+ */
+gboolean gaim_roomlist_is_showable();
+
+/**
+ * Get the first online acocunt that supports showing a roomlist.
+ *
+ * @return The first selected account of all the accounts that
+ *         support showing a roomlist.
+ */
+GaimAccount *gaim_roomlist_get_first_valid_account();
+
+/**
  * This is used to get the room list on an account, asking the UI
  * to pop up a dialog with the specified account already selected,
  * and pretend the user clicked the get list button.