summaryrefslogtreecommitdiff
path: root/libempathy-gtk/empathy-ui-utils.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-11-23 16:30:26 +0100
committerXavier Claessens <xclaesse@gmail.com>2009-11-23 17:04:29 +0100
commit496598a1d17599b809d981c5c3016f90eec15376 (patch)
treee34e8097e6b253f032a9be890b10cdc08c818073 /libempathy-gtk/empathy-ui-utils.h
parent5a09311ed6bc01870413327addfd0337d7296a7e (diff)
Create EMPATHY_RECT_IS_ON_SCREEN macro instead of duplicating its code.
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.h')
-rw-r--r--libempathy-gtk/empathy-ui-utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.h b/libempathy-gtk/empathy-ui-utils.h
index 486301cb1..7bec0884e 100644
--- a/libempathy-gtk/empathy-ui-utils.h
+++ b/libempathy-gtk/empathy-ui-utils.h
@@ -41,6 +41,11 @@
G_BEGIN_DECLS
+#define EMPATHY_RECT_IS_ON_SCREEN(x,y,w,h) ((x) + (w) > 0 && \
+ (y) + (h) > 0 && \
+ (x) < gdk_screen_width () && \
+ (y) < gdk_screen_height ())
+
void empathy_gtk_init (void);
GRegex * empathy_uri_regex_dup_singleton (void);