~ubuntu-branches/ubuntu/quantal/gnumeric/quantal

« back to all changes in this revision

Viewing changes to src/dialogs/dialog-search.c

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2009-06-22 13:37:20 UTC
  • mfrom: (1.1.20 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090622133720-rtdazsiz2lx5q8l7
Tags: 1.9.9-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Promoted gnumeric-doc to Recommends in gnumeric package for help to be
    installed automatically
  - gnumeric-gtk is a transitional package
  - gnumeric conflicts with gnumeric-gtk << 1.8.3-3ubuntu1
  - call initltool-update in po*
  - remove psiconv support (psiconv is in universe):
    o debian/control: remove B-D on libpsiconv-dev
    o debian/rules: don't pass --with-psiconv to ./configure
    o debian/gnumeric-plugins-extra.install: don't install the psiconv
      plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
static const char * const search_type_group[] = {
73
73
        "search_type_text",
74
74
        "search_type_regexp",
 
75
        "search_type_number",
75
76
        NULL
76
77
};
77
78
 
287
288
        int i;
288
289
        GnmSearchReplaceScope scope;
289
290
        char *text;
 
291
        gboolean is_regexp, is_number;
290
292
 
291
293
        i = gnumeric_glade_group_value (gui, scope_group);
292
294
        scope = (i == -1) ? GNM_SRS_SHEET : (GnmSearchReplaceScope)i;
293
295
 
 
296
        i = gnumeric_glade_group_value (gui, search_type_group);
 
297
        is_regexp = (i == 1);
 
298
        is_number = (i == 2);
 
299
 
294
300
        text = g_utf8_normalize (gtk_entry_get_text (dd->gentry), -1, G_NORMALIZE_DEFAULT);
295
301
 
296
302
        sr = g_object_new (GNM_SEARCH_REPLACE_TYPE,
298
304
                           "scope", scope,
299
305
                           "range-text", gnm_expr_entry_get_text (dd->rangetext),
300
306
                           "search-text", text,
301
 
                           "is-regexp", gnumeric_glade_group_value (gui, search_type_group) == 1,
 
307
                           "is-regexp", is_regexp,
 
308
                           "is-number", is_number,
302
309
                           "ignore-case", is_checked (gui, "ignore_case"),
303
310
                           "match-words", is_checked (gui, "match_words"),
304
311
                           "search-strings", is_checked (gui, "search_string"),