diff -r 4256ee599d8c -r 2833056ea11c src/gtkutils.c --- a/src/gtkutils.c Thu Sep 23 03:09:46 2004 +0000 +++ b/src/gtkutils.c Thu Sep 23 13:45:48 2004 +0000 @@ -1227,7 +1227,7 @@ *y = *y - ythickness; else *y = *y + ythickness - requisition.height + 1; - + *y = CLAMP (*y, monitor.y, monitor.y + monitor.height - requisition.height); } @@ -1270,3 +1270,15 @@ gaim_gtk_menu_position_func (menu, x, y, push_in, data); #endif } + +gboolean +gaim_running_gnome(void) +{ + if ((g_getenv("GNOME_DESKTOP_SESSION_ID") != NULL) && + (g_find_program_in_path("gnome-open") != NULL)) + { + return TRUE; + } + + return FALSE; +}