changeset 4384:8f633419c837

[gaim-migrate @ 4650] Some utility macros for determining if a conversation or window uses the GTK+ UI. I'll make use of these later. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 22 Jan 2003 03:12:21 +0000
parents f7a84034f97f
children bdab2840ef4c
files src/gtkconv.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.h	Wed Jan 22 01:45:09 2003 +0000
+++ b/src/gtkconv.h	Wed Jan 22 03:12:21 2003 +0000
@@ -176,6 +176,11 @@
 #define GAIM_GTK_CONVERSATION(conv) \
 	((struct gaim_gtk_conversation *)(conv)->ui_data)
 
+#define GAIM_IS_GTK_WINDOW(win) \
+	(gaim_window_get_ops(win) == gaim_get_gtk_window_ops())
+
+#define GAIM_IS_GTK_CONVERSATION(conv) \
+	(gaim_conversation_get_ops(win) == gaim_get_gtk_conversation_ops())
 
 /**************************************************************************
  * @name GTK+ Conversation API