aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2011-08-20 14:55:49 -0400
committerJason Conti <jason.conti@gmail.com>2011-08-20 14:55:49 -0400
commitfd33d25aff0ad0a5df9007011b5e8bf5a20f1a55 (patch)
treed844443d230c2aec3e21834bad7ec4ba029f5018 /src
parent091af8d9d16027405850b5afd0d08367a29f9bc0 (diff)
downloadayatana-indicator-notifications-fd33d25aff0ad0a5df9007011b5e8bf5a20f1a55.tar.gz
ayatana-indicator-notifications-fd33d25aff0ad0a5df9007011b5e8bf5a20f1a55.tar.bz2
ayatana-indicator-notifications-fd33d25aff0ad0a5df9007011b5e8bf5a20f1a55.zip
* Reposition the menu when it becomes visible, otherwise parts will be
cut off when popped up near the edge of the screen
Diffstat (limited to 'src')
-rw-r--r--src/indicator-notifications.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c
index 237c4d0..9f0365c 100644
--- a/src/indicator-notifications.c
+++ b/src/indicator-notifications.c
@@ -143,7 +143,10 @@ menu_visible_notify_cb(GtkWidget *menu, G_GNUC_UNUSED GParamSpec *pspec, gpointe
gboolean visible;
g_object_get(G_OBJECT(menu), "visible", &visible, NULL);
- if(!visible) {
+ if(visible) {
+ gtk_menu_reposition(GTK_MENU(menu));
+ }
+ else {
if(self->priv->pixbuf_read != NULL) {
self->priv->have_unread = FALSE;
gtk_image_set_from_pixbuf(self->priv->image, self->priv->pixbuf_read);