Skip to content

Commit

Permalink
fix popup menu in tray icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sonyahay committed Aug 11, 2019
1 parent 3857a0a commit 06de51c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ popup_menu_item_activate_cb (GtkWidget * w, gpointer data)
}

static void
popup_menu_cb (GtkStatusIcon * icon, guint button, guint activate_time, gpointer data)
popup_menu_cb (GtkStatusIcon *icon, guint button, guint activate_time, gpointer data)
{
GtkWidget *menu;
GtkWidget *item;
Expand Down Expand Up @@ -254,7 +254,7 @@ popup_menu_cb (GtkStatusIcon * icon, guint button, guint activate_time, gpointer
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
}

gtk_menu_popup_at_widget (GTK_MENU (menu), GTK_WIDGET (icon), GDK_GRAVITY_SOUTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL);
gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
}

static gboolean
Expand Down

0 comments on commit 06de51c

Please sign in to comment.