~ubuntu-dev/gnucash/ubuntu

« back to all changes in this revision

Viewing changes to src/register/register-gnome/gnucash-item-list.c

  • Committer: Reinhard Tartler
  • Date: 2008-08-03 07:38:54 UTC
  • mfrom: (2.1.2 debian)
  • Revision ID: siretart@tauware.de-20080803073854-23i4uqi1e73no4oz
mergeĀ fromĀ debian/unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
{
125
125
        FindSelectionData *to_find = (FindSelectionData*)data;
126
126
        gchar *iterStr;
 
127
        gboolean found;
127
128
 
128
129
        gtk_tree_model_get(model, iter, 0, &iterStr, -1);
129
 
        if (safe_strcmp(to_find->string_to_find, iterStr) == 0)
 
130
        found = safe_strcmp(to_find->string_to_find, iterStr) == 0;
 
131
        g_free(iterStr);
 
132
        if (found)
130
133
        {
131
134
                to_find->found_path = gtk_tree_path_copy(path);
132
135
                return TRUE;
283
286
                                       gnc_item_list_signals[ACTIVATE_ITEM],
284
287
                                       0, 
285
288
                                       string);
286
 
 
 
289
                        g_free(string);
287
290
                        return TRUE;
288
291
                default:
289
292
                        return FALSE;
313
316
                                       gnc_item_list_signals[ACTIVATE_ITEM], 
314
317
                                       0, 
315
318
                                       string);
 
319
                        g_free(string);
316
320
                        return TRUE;
317
321
 
318
322
                case GDK_Page_Up: