Make right-clicks in registers work like left-clicks plus popup, #339260.

To avoid confusion and possible data loss, the register should focus the
transaction that was right-clicked so that actions chosen from the popup
apply to the one the user probably wanted.  The code was already there
but unused because of missing register sheet popups.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16409 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-08-09 11:35:49 +00:00
parent 4126b8bee3
commit cc5ca6c7c2

View File

@ -1288,8 +1288,6 @@ gnucash_button_press_event (GtkWidget *widget, GdkEventButton *event)
return TRUE;
case 3:
do_popup = (sheet->popup != NULL);
if (!do_popup)
return FALSE;
break;
default:
return FALSE;
@ -1340,7 +1338,7 @@ gnucash_button_press_event (GtkWidget *widget, GdkEventButton *event)
gtk_menu_popup(GTK_MENU(sheet->popup), NULL, NULL, NULL,
sheet->popup_data, event->button, event->time);
return TRUE;
return button_1 || do_popup;
}
/* and finally...process this as a POINTER_TRAVERSE */
@ -1368,7 +1366,7 @@ gnucash_button_press_event (GtkWidget *widget, GdkEventButton *event)
if (do_popup)
gtk_menu_popup(GTK_MENU(sheet->popup), NULL, NULL, NULL,
sheet->popup_data, event->button, event->time);
return TRUE;
return button_1 || do_popup;
}
gboolean