~ubuntu-branches/ubuntu/natty/texmacs/natty

« back to all changes in this revision

Viewing changes to src/Texmacs/Window/tm_window.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-11-05 14:47:00 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20101105144700-t2ju0m1o53cqtyed
Tags: 1:1.0.7.7-1
* New Upstream Release.
* Updated patches/09_ipa.dpatch for new upstream sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
#include "tm_window.hpp"
13
13
#include "message.hpp"
 
14
#include "dictionary.hpp"
14
15
 
15
16
int geometry_w= 800, geometry_h= 600;
16
17
int geometry_x= 0  , geometry_y= 0;
84
85
  set_visibility (win, false);
85
86
}
86
87
 
 
88
void
 
89
tm_window_rep::refresh () {
 
90
  menu_cache= hashmap<object,widget> (widget ());
 
91
}
 
92
 
87
93
/******************************************************************************
88
94
* Menus
89
95
******************************************************************************/
246
252
  if (get_interactive_mode ()) { s= "cancel"; return; }
247
253
  text_ptr = &s;
248
254
  call_back= cmd;
249
 
  widget tw = text_widget (name, black, false, "english");
 
255
  widget tw = text_widget (translate (name), black, false);
250
256
  widget inp= input_text_widget (tm_new<ia_command_rep> (this), type, def);
251
257
  set_interactive_prompt (wid, tw);
252
258
  set_interactive_input (wid, inp);