~ubuntu-branches/ubuntu/intrepid/gcalctool/intrepid

« back to all changes in this revision

Viewing changes to gcalctool/get.c

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2008-08-08 16:55:27 UTC
  • mfrom: (1.1.39 upstream)
  • Revision ID: james.westby@ubuntu.com-20080808165527-4e4ape1y0dt7wyiy
Tags: 5.23.6-0ubuntu1
* New upstream version (LP: #256083)
  - Fixes letters digits in HEX not working if caps locked(LP: #238389)
  - Fixes calculator not on the screen (LP: #235876)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
char *Rmstr[MAXMODES]     = { "BASIC", "ADVANCED", "FINANCIAL", 
45
45
                              "SCIENTIFIC" };
46
46
char *Rtstr[MAXTRIGMODES] = { "DEG", "GRAD", "RAD" };
47
 
char *Rsstr[MAXSYNTAX]    = { "ARITHMETIC", "ARITHMETIC_PRECEDENCE" };
48
47
 
49
48
static GConfClient *client = NULL;
50
49
 
312
311
        }
313
312
    }
314
313
 
315
 
    /* Set expression (arithmetic precedence) mode as default. */
316
 
    v->syntax = EXPRS;
317
 
 
318
 
    if (get_str_resource(R_SYNTAX, str)) {
319
 
        for (i = 0; i < MAXSYNTAX; i++) {
320
 
            if (EQUAL(str, Rsstr[i])) {
321
 
                break;
322
 
            }
323
 
        }
324
 
 
325
 
        if (i == MAXSYNTAX) {
326
 
            FPRINTF(stderr, _("%s: invalid syntax mode [%s]\n"), 
327
 
                    v->progname, str);
328
 
        } else {
329
 
            v->syntax = i;
330
 
        }
331
 
    }
332
 
 
333
314
    if (get_boolean_resource(R_ZEROES, &boolval)) {
334
315
        v->show_zeroes = boolval;
335
316
    }