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

« back to all changes in this revision

Viewing changes to src/expr-name.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:
20
20
#include "workbook-priv.h"
21
21
#include "expr.h"
22
22
#include "expr-impl.h"
23
 
#include "str.h"
24
23
#include "sheet.h"
25
24
#include "ranges.h"
26
25
#include "gutils.h"
27
26
#include "sheet-style.h"
28
27
 
29
 
#include <goffice/utils/go-glib-extras.h>
30
 
#include <goffice/utils/go-locale.h>
 
28
#include <goffice/goffice.h>
31
29
 
32
30
/**
33
31
 * expr_name_validate:
241
239
         * placeholder, or changing a scope */
242
240
        nexpr->active = TRUE;
243
241
        g_hash_table_replace (nexpr->is_placeholder
244
 
              ? scope->placeholders : scope->names, nexpr->name->str, nexpr);
 
242
              ? scope->placeholders : scope->names, (gpointer)nexpr->name->str, nexpr);
245
243
}
246
244
 
247
245
typedef struct {
397
395
 
398
396
        nexpr->ref_count        = 1;
399
397
        nexpr->active           = FALSE;
400
 
        nexpr->name             = gnm_string_get (name);
 
398
        nexpr->name             = go_string_new (name);
401
399
        nexpr->texpr            = NULL;
402
400
        nexpr->dependents       = NULL;
403
401
        nexpr->is_placeholder   = is_placeholder;
557
555
                if (stub != NULL) {
558
556
                        nexpr = stub;
559
557
                        stub->is_placeholder = FALSE;
560
 
                        gnm_string_unref (stub->name);
561
 
                        stub->name = gnm_string_get (name);
 
558
                        go_string_unref (stub->name);
 
559
                        stub->name = go_string_new (name);
562
560
                } else
563
561
                        nexpr = expr_name_new (name, texpr == NULL);
564
562
        }
593
591
        g_return_if_fail (!nexpr->active);
594
592
 
595
593
        if (nexpr->name) {
596
 
                gnm_string_unref (nexpr->name);
 
594
                go_string_unref (nexpr->name);
597
595
                nexpr->name = NULL;
598
596
        }
599
597