| 1225 { |
1225 { |
| 1226 if (needed_height <= space_below) |
1226 if (needed_height <= space_below) |
| 1227 *y = *y - ythickness; |
1227 *y = *y - ythickness; |
| 1228 else |
1228 else |
| 1229 *y = *y + ythickness - requisition.height + 1; |
1229 *y = *y + ythickness - requisition.height + 1; |
| 1230 |
1230 |
| 1231 *y = CLAMP (*y, monitor.y, |
1231 *y = CLAMP (*y, monitor.y, |
| 1232 monitor.y + monitor.height - requisition.height); |
1232 monitor.y + monitor.height - requisition.height); |
| 1233 } |
1233 } |
| 1234 else if (needed_height > space_below && needed_height > space_above) |
1234 else if (needed_height > space_below && needed_height > space_above) |
| 1235 { |
1235 { |
| 1268 *y += rect.y+rect.height+ythickness; |
1268 *y += rect.y+rect.height+ythickness; |
| 1269 #if GTK_CHECK_VERSION(2,2,0) |
1269 #if GTK_CHECK_VERSION(2,2,0) |
| 1270 gaim_gtk_menu_position_func (menu, x, y, push_in, data); |
1270 gaim_gtk_menu_position_func (menu, x, y, push_in, data); |
| 1271 #endif |
1271 #endif |
| 1272 } |
1272 } |
| |
1273 |
| |
1274 gboolean |
| |
1275 gaim_running_gnome(void) |
| |
1276 { |
| |
1277 if ((g_getenv("GNOME_DESKTOP_SESSION_ID") != NULL) && |
| |
1278 (g_find_program_in_path("gnome-open") != NULL)) |
| |
1279 { |
| |
1280 return TRUE; |
| |
1281 } |
| |
1282 |
| |
1283 return FALSE; |
| |
1284 } |