- if (event->button == 3)
- gtk_menu_popup(GTK_MENU(mainwindow->replysender_popup), NULL, NULL, NULL, NULL, 1, 0);
+ if (event->button == 3) {
+ gtk_button_set_relief(GTK_BUTTON(widget), GTK_RELIEF_NORMAL);
+ gtk_menu_popup(GTK_MENU(mainwindow->replysender_popup), NULL, NULL,
+ menu_button_position, widget,
+ event->button, event->time);
+ }
+}
+
+static void toolbar_reply_to_sender_popup_closed_cb(GtkMenuShell *menu_shell, gpointer data)
+{
+ MainWindow *mainwin = (MainWindow *)data;
+
+ gtk_button_set_relief(GTK_BUTTON(mainwin->replysender_btn), GTK_RELIEF_NONE);
+ manage_window_focus_in(mainwin->window, NULL, NULL);