# HG changeset patch # User Christian Hammond # Date 1043205141 0 # Node ID 8f633419c8371382485586128dd2a9846004fb75 # Parent f7a84034f97fe691cabc573c1caa53f9130e33cd [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 diff -r f7a84034f97f -r 8f633419c837 src/gtkconv.h --- 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