In "Process Payment" and "New Order", let the customer field have keyboard focus.

In "New Job", focus the job name.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22144 57a11ea4-9604-0410-9ed3-97b8803252fd
pull/1/head
Christian Stimming 14 years ago
parent d9e19467eb
commit 9150e2d7b9

@ -402,6 +402,14 @@ gnc_job_new_window (QofBook *bookp, GncOwner *owner, GncJob *job)
gtk_widget_show_all (jw->dialog);
// The job name should have keyboard focus
gtk_widget_grab_focus(jw->name_entry);
// Or should the owner field have focus?
// if (GNC_IS_GENERAL_SEARCH(jw->cust_edit))
// {
// gnc_general_search_grab_focus(GNC_GENERAL_SEARCH(jw->cust_edit));
// }
g_object_unref(G_OBJECT(builder));
return jw;

@ -46,6 +46,7 @@
#include "dialog-invoice.h"
#include "business-gnome-utils.h"
#include "dialog-date-close.h"
#include "gnome-search/gnc-general-search.h"
#define DIALOG_NEW_ORDER_CM_CLASS "dialog-new-order"
#define DIALOG_EDIT_ORDER_CM_CLASS "dialog-edit-order"
@ -738,6 +739,12 @@ gnc_order_window_new_order (QofBook *bookp, GncOwner *owner)
/* Now fill in a lot of the pieces and display properly */
gnc_order_update_window (ow);
// The customer choice widget should have keyboard focus
if (GNC_IS_GENERAL_SEARCH(ow->owner_choice))
{
gnc_general_search_grab_focus(GNC_GENERAL_SEARCH(ow->owner_choice));
}
/* Maybe set the reference */
gnc_order_owner_changed_cb (ow->owner_choice, ow);

@ -47,6 +47,7 @@
#include "business-gnome-utils.h"
#include "dialog-transfer.h"
#include "gnome-search/gnc-general-search.h"
#define DIALOG_PAYMENT_CUSTOMER_CM_CLASS "customer-payment-dialog"
#define DIALOG_PAYMENT_VENDOR_CM_CLASS "vendor-payment-dialog"
@ -863,6 +864,12 @@ new_payment_window (GncOwner *owner, QofBook *book, GncInvoice *invoice)
gtk_widget_show_all (pw->dialog);
g_object_unref(G_OBJECT(builder));
// The customer choice widget should have keyboard focus
if (GNC_IS_GENERAL_SEARCH(pw->owner_choice))
{
gnc_general_search_grab_focus(GNC_GENERAL_SEARCH(pw->owner_choice));
}
/* Warn the user if they have no valid post-to accounts */
{
const gchar *text;

Loading…
Cancel
Save