X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fui-account.c;fp=src%2Fui-account.c;h=5797adbc58e9d915319c9f5ff07a01e1a605ae10;hb=2ef3e601408ebaeeaf5f40d6967664b012a49979;hp=898cf07ed5a2127f7f5101059611d73069de0a2d;hpb=ed78ccc9c6d01422d6366c593ffa01e8c8ff5a68;p=chaz%2Fhomebank diff --git a/src/ui-account.c b/src/ui-account.c index 898cf07..5797adb 100644 --- a/src/ui-account.c +++ b/src/ui-account.c @@ -1,5 +1,5 @@ /* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2016 Maxime DOYEN + * Copyright (C) 1995-2017 Maxime DOYEN * * This file is part of HomeBank. * @@ -113,15 +113,16 @@ Account *item; return item->key; } + gboolean ui_acc_comboboxentry_set_active(GtkComboBox *entry_box, guint32 key) { Account *item; - + if( key > 0 ) { item = da_acc_get(key); - if( item != NULL) + if( (item != NULL) ) { gtk_entry_set_text(GTK_ENTRY (gtk_bin_get_child(GTK_BIN (entry_box))), item->name); return TRUE;