~ubuntu-branches/ubuntu/maverick/uim/maverick

« back to all changes in this revision

Viewing changes to gtk/uim-cand-win-gtk.c

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2008-06-25 19:56:33 UTC
  • mfrom: (3.1.18 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080625195633-8jljph4rfq00l8o7
Tags: 1:1.5.1-2
* uim-tcode: provide tutcode-custom.scm, tutcode-bushudic.scm
  and tutcode-rule.scm (Closes: #482659)
* Fix FTBFS: segv during compile (Closes: #483078).
  I personally think this bug is not specific for uim but is a optimization
  problem on gcc-4.3.1. (https://bugs.freedesktop.org/show_bug.cgi?id=16477)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
  copyright (c) 2003-2006 uim Project http://uim.freedesktop.org/
 
3
  copyright (c) 2003-2008 uim Project http://code.google.com/p/uim/
4
4
 
5
5
  All rights reserved.
6
6
 
37
37
#include <string.h>
38
38
#include <stdlib.h>
39
39
#include <uim/uim.h>
40
 
#include <uim/uim-compat-scm.h>
 
40
#include <uim/uim-scm.h>
41
41
#if HAVE_EBLIB
42
42
#include "uim-eb.h"
43
43
#endif /* HAVE_EBLIB */
141
141
{
142
142
  char *win_pos;
143
143
 
144
 
  win_pos = uim_symbol_value_str("candidate-window-position");
 
144
  win_pos = uim_scm_symbol_value_str("candidate-window-position");
145
145
  if (win_pos && !strcmp(win_pos, "left")) {
146
146
    cwin->position = UIM_CAND_WIN_POS_LEFT;
147
147
  } else if (win_pos && !strcmp(win_pos, "right")) {
208
208
                    G_CALLBACK(tree_selection_changed), cwin);
209
209
 
210
210
  renderer = gtk_cell_renderer_text_new();
211
 
  g_object_set(renderer, "scale", 1.2, NULL);
 
211
  g_object_set(renderer, "scale", 0.8, NULL);
212
212
 
213
213
  column = gtk_tree_view_column_new_with_attributes("No",
214
214
                                                    renderer,
393
393
          annotation = uim_eb_search_text(ueb, cand);
394
394
          uim_eb_destroy(ueb);
395
395
        }
396
 
        g_free(book);
 
396
        free(book);
397
397
      }
398
398
      g_free(cand);
399
399
    }
524
524
                           COLUMN_ANNOTATION, NULL, /*uim_candidate_get_annotation(cand),*/
525
525
                           TERMINATOR);
526
526
      } else {
527
 
#if 1
 
527
#if 0
528
528
        /*
529
529
         * 2004-07-22 Takuro Ashie <ashie@good-day.co.jp>
530
530
         *