[notifications applet] take panel orientation into account

This makes the notification applet menu adapt to the panel orientation, making sure that the "Clear notifications" item always comes first. See #1474.