1 2001-04-03 John Levon <moz@compsoc.man.ac.uk>
3 * Dialogs.C: s/popup/dialog/
7 * FormBase.C: s/ControlButton/ControlButtons/
8 move bc().refresh() into base show() method
11 * FormBaseDeprecated.C:
14 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
16 * FormMathsPanel.C (c-tor): set button controller cancel label to close.
19 * forms/form_toc.fd: implemented controller-view split.
21 * Dialogs.C: associated changes.
23 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
26 * forms/form_citation.fd: Don't change the name of the button when
27 toggling between regular expression and simple searches.
28 Squashed bug when creating a new inset, the keys field contained
29 one (empty) key. No more; thanks, Dekel.
32 * forms/form_external.fd: added Apply button.
34 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
37 * FormBrowser.[Ch]: changes associated with renaming ControlBase as
41 * forms/form_external.fd: implemented controller-view split.
43 * Dialogs.C: associated changes.
48 moved the browsing functionality into the controller.
50 * xforms_helpers.[Ch]: moved browseFile to
51 ../controllers/helper_funcs.[Ch]
54 * forms/form_citation.fd: added case sensitive search button.
56 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
58 * xformsBC.[Ch]: Patched in a slight reworking of Baruch Even's patch.
59 Code moved into the generic template base class. Replaced
60 setCancelCloseButton() with setButtonLabel().
62 2001-03-29 Juergen Vigna <jug@sad.it>
64 * FormMinipage.C: removed widthp_ and all it's functions and changed
65 to use new %-lengths of LyXLength.
67 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
70 * forms/form_graphics.fd:
72 * forms/form_index.fd: implemented controller-view split.
74 * Dialogs.C: associated changes.
76 * FormCharacter.[Ch]: changes associated with ControlCharacter cleanup.
78 * FormCitation.C: changes associated with ControlCitation cleanup.
80 * FormMinipage.h: cleaned-up forward declarations.
82 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
85 * forms/form_minipage.fd:
87 * forms/form_print.fd:
88 * FormSplash.[Ch]: implemented controller-view split.
90 * Dialogs.C: associated changes.
92 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
95 * forms/form_preamble.fd:
99 * forms/form_search.fd:
100 * FormTabularCreate.[Ch]:
101 * forms/form_tabular_create.fd: implemented controller-view split.
103 * Dialogs.C: associated changes.
105 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
112 * form_url.fd: implemented controller-view split.
114 * Dialogs.C: associated changes.
118 * FormCitation.h: moved methods from protected to private.
120 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
122 * FormCredits.C (build): changes associated with
123 ControlCredits::getCredits returning a stringstream not a vector<string>
125 2001-03-22 Angus Leeming <a.leeming@ic.ac.uk>
127 * FormCopyright.[Ch]:
128 * forms/form_copyright.fd: implemented controller-view split.
131 * forms/form_credits.fd: implemented controller-view split.
133 * Dialogs.C: associated changes.
135 * xforms_helpers.C (formatted): improved the function so that it now
136 repects '\n' characters in the input string. Ie, the user can now
137 specify line breaks explicitly.
139 2001-03-21 Angus Leeming <a.leeming@ic.ac.uk>
141 * FormCharacter.[Ch]:
142 * forms/form_character.fd: implemented controller-view split.
144 * Dialogs.C: associated changes.
146 * FormBase.C (input): changed return to SMI_VALID.
148 * FormCitation.C (updateBrowser): ensure that the keys are stripped of
149 any surrounding whitespace.
151 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
153 * FormBase.[Ch] (input): no longer pure virtual. Has defualt state of
155 (FormBase2): split into two template classes, FormDB (DialogBase) and
156 FormCB (ControllerBase) for greater flexibility.
160 * FormCitation.[Ch]: associated changes.
165 * forms/form_browser.fd: implemented controller-view split.
167 * Dialogs.C: associated changes.
169 2001-03-19 Angus Leeming <a.leeming@ic.ac.uk>
172 * forms/form_bibtex.fd: implemented controller-view split.
174 * Dialogs.C: associated changes.
176 2001-03-19 Angus Leeming <a.leeming@ic.ac.uk>
178 * FormBaseDeprecated.[Ch]: rename title as title_.
180 * FormBaseDeprecated.C: restore John's trick to give the dialog a border
181 with limited functionality. It got lost in the MVC merge.
183 * FormBaseDeprecated.C:
184 * FormBase.C (show): moved initialisation of minw_, minh_ here.
186 * FormBibitem.C (build):
187 * FormBibtex.C (build):
188 * FormBrowser.C (build):
189 * FormCharacter.C (build):
190 * FormCitation.C (build):
191 * FormCopyright.C (build):
192 * FormCredits.C (build):
193 * FormDocument.C (build):
194 * FormError.C (build):
195 * FormExternal.C (build):
196 * FormGraphics.C (build):
197 * FormInclude.C (build):
198 * FormIndex.C (build):
199 * FormMinipage.C (build):
200 * FormParagraph.C (build):
201 * FormPreamble.C (build):
202 * FormPreferences.C (build):
203 * FormPrint.C (build):
205 * FormSearch.C (build):
206 * FormTabular.C (build):
207 * FormTabularCreate.C (build):
209 * FormUrl.C (build): removed initialisation of minw_, minh_.
211 * The Maths Panel stuff no longer causes a crash on exit from LyX.
214 * forms/form_maths.fd: removed.
216 * forms/form_maths_delim.fd:
217 * forms/form_maths_deco.fd:
218 * forms/form_maths_matrix.fd:
219 * forms/form_maths_space.fd:
220 * forms/form_maths_panel.fd: new files.
221 Split contents of form_maths.fd into 5 new files, one for each form.
223 * MathsSymbols.[Ch]: remove class BitmapMenu, renamed and reworked as
224 class FormMathsBitmap in FormMathsBitmap.[Ch].
226 * FormMathsPanel.[Ch]:
227 * FormMathsBitmap.[Ch]:
228 * FormMathsDeco.[Ch]:
229 * FormMathsDelim.[Ch]:
230 * FormMathsMatrix.[Ch]:
231 * FormMathsSpace.[Ch]: Split contents of FormMaths into new files,
232 one for each popup. Rewrite so that all the new classes are derived from
233 FormBaseBD. Clean up the logic in the process (I hope!).
235 * Makefile.am: added new fils, removed redundant ones.
237 2001-03-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
239 * FormMinipage.C (FormMinipage): add SigC:: namespace specifier.
243 2001-03-16 Juergen Vigna <jug@sad.it>
245 * Dialogs.C (Dialogs): create minipage options dialog.
247 * forms/form_minipage.fd:
251 * FormMinipage.h: new files for the minipage options dialog.
253 2001-03-16 Angus Leeming <a.leeming@ic.ac.uk>
255 * FormMaths.[Ch]: make the FD_ structs private. Create appropriate
258 * forms/form_maths.fd: change C_FormBaseCancelCB to
259 FormBaseDeprecatedCancelCB and so fix crash on closing the panel.
261 2001-03-16 John Levon <moz@compsoc.man.ac.uk>
263 * FormMaths.C: quash warnings
265 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
267 * FormMaths.C (C_FormMathsDelimCB): add usual .c_str() for lyxstring
270 2001-03-16 Angus Leeming <a.leeming@ic.ac.uk>
272 * Form_various.h: cleaned up #includes and forward declarations.
274 * Form_various.C: added "using SigC::slot" declaration.
276 * FormMaths.[Ch]: moved to boost::scoped_ptrs.
278 * FormDocument.C (CheckChoiceClass): removed string tct as the
279 compiler warned that it was defined but never used.
280 removed USE_CLASS_COMBO.
282 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
293 * forms/form_maths.fd:
295 * forms/fdfix.sh: add maths panel
298 * bmtable.c: moved from src/
300 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
302 * FormParagraph.h: NO_PEXTRA
303 * FormParagraph.C (input): NO_PEXTRA
305 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
307 * several files: remove CXX_WORKING_NAMESPACES
309 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
311 * Merging changes from BRANCH_MVC back into HEAD.
313 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
315 * Dialogs.C (c-tor): Changes associated with storing a vector of
317 Use MVC Bibitem popup.
319 * FormBase.h: add a new template class FormBase2, derived from FormBase
320 to make life creating MVC popups even easier ;-)
323 * forms/form_bibitem.fd: moved over to the MVC way of doing things.
324 Proof that a simple popup should be easy to implement!
326 * FormCitation.[Ch]: now derived from FormBase2.
328 * FormToc.C: added using std::vector directive.
330 2001-03-09 Dekel Tsur <dekelts@tau.ac.il>
332 * FormSearch.C: Add missing #pragma
334 2001-03-09 Angus Leeming <a.leeming@ic.ac.uk>
337 * forms/form_citation.fd: added the ability to Search, both Simply and
338 for Regular Expressions. Use the Search code in the controller() to do
339 the actual searching.
341 2001-03-08 Angus Leeming <a.leeming@ic.ac.uk>
343 * Makefile.am: added FormCredits.[Ch] and form_credits.[Ch]
344 * forms/makefile: added form_credits.fd
346 * Dialogs.C: added FormCredits and removed ShowCredits.
349 * forms/form_credits.fd:
350 * forms/form_search.fd: ported to the MVC way.
352 2001-03-07 Angus Leeming <a.leeming@ic.ac.uk>
354 * xforms_helpers.h (formatted): now has default arguments for size and
357 * FormCitation.[Ch]: moved code out of this class and into
358 ControlCitation and associated helper funcs.
360 2001-03-05 Angus Leeming <a.leeming@ic.ac.uk>
362 * FormBase.[Ch]: (InputCB): use ButtonController::input() rather than
363 ButtonController::valid() to check state of input. The buttons are
364 now controlled correctly.
366 * Form*.[Ch]: use boost::scoped_ptr for the remaining few classes.
368 2001-03-05 Lars Gullik Bjønnes <larsbj@lyx.org>
370 * Form*.[Ch]: use boost::scoped_ptr for dialog_ et al.
372 * FormBase.[Ch]: rename title as title_.
374 2001-03-02 John Levon <moz@compsoc.man.ac.uk>
376 * FormBase.C (c-tor): initialise variables in correct order.
378 * FormCitation.C: add #include <algorithm>
380 2001-03-02 Angus Leeming <a.leeming@ic.ac.uk>
382 * xformsBC.[Ch]: Changes associated with the changes to
383 controllers/ButtonController.[Ch]. Ie, the class is now derived from
384 ButtonControllerBase and the ButtonPolicy is accessed through a method
385 bp() rather than the instance bp_.
387 * FormBaseDeprecated.[Ch]: no longer store a ButtonController, but
388 rather use a pure virtual method bc() to access the controller
389 instantiated by the daughter classes.
391 * F*.[Ch]: changes associated with the above.
393 2001-02-27 Angus Leeming <a.leeming@ic.ac.uk>
395 * FormBase.[Ch]: renamed as FormBaseDeprecated.[Ch]
397 * ViewXforms.[Ch]: renamed as FormBase.[Ch]
399 2001-02-23 Angus Leeming <a.leeming@ic.ac.uk>
401 * ButtonController.[Ch]: deleted. The class is split into two
402 (with identical functionality), the code being found in
403 ../controllers/ButtonController.[Ch] and xformsBC.[Ch]
405 * xformsBC.[Ch]: new files. Xforms specific part of Allan's original
406 ButtonController class.
408 * FormBase.[Ch]: changes associated with the above split.
410 * ViewXforms.[Ch]: Base class for xforms dialogs derived from ViewBase
411 (../controllers/ViewBase.h). Ie, for Dialogs with GUI-I controllers
412 controlling all interaction to/from the LyX kernel.
415 * forms/form_citation.fd: An xforms-specific implementation of the
416 Citation dialog, controlled by the GUI-I ControlCitation.
418 * Dialogs.C: Use the controlled Citation dialog.
420 2001-03-15 John Levon <moz@compsoc.man.ac.uk>
424 * combox.C: moved from src/
426 2001-03-09 Angus Leeming <a.leeming@ic.ac.uk>
429 * forms/form_filedialog.C.patch: I hate having to make these patches,
430 but on reflection I think it's probably better than hacking fdfix.sh.
432 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
434 * forms/fdfix.sh: test whether bmtable.h is needed before #including it.
436 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
438 * FormGraphics.C: remove unnecessary hack
440 2001-03-13 Dekel Tsur <dekelts@tau.ac.il>
442 * FormCitation.C (apply): Do not put space between multiple keys.
444 2001-03-12 Dekel Tsur <dekelts@tau.ac.il>
446 * Menubar_pimpl.C (add_toc): Remove debug message.
448 2001-03-09 John Levon <moz@compsoc.man.ac.uk>
456 * xforms/forms/makefile:
457 * forms/form_external.fd: add FormExternal
459 2001-03-12 John Levon <moz@compsoc.man.ac.uk>
461 * Dialogs.C: add destroySplash()
465 * forms/form_splash.fd:
467 * FormSplash.C: make independent of FormBase, tidy
469 * Menubar_pimpl.C: destroy splash on interaction
471 2001-03-12 John Levon <moz@compsoc.man.ac.uk>
477 * forms/form_include.fd: rework, clean up
479 2001-03-12 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
481 * FormToc.h: use Buffer::typedef
483 * Menubar_pimpl.C (add_toc): use the Buffer::typedefs
484 * FormToc.C (build): ditto
487 2001-03-11 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
489 * FormToc.C (build): implement for dynamic number of lists
491 * Menubar_pimpl.C (add_toc): ditto
493 2001-03-07 Edwin Leuven <leuven@fee.uva.nl>
500 * forms/form_credits.fd:
502 2001-03-07 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
504 * Menubar_pimpl.h: make Pipl::ItemInfo::item_ a boost::shared_ptr,
505 make ButtonList contain boost::shared_ptr<ItemInfo>
507 * Menubar_pimpl.C (~Pimpl): remove destructor
509 2001-03-06 John Levon <moz@compsoc.man.ac.uk>
525 * form/form_filedialog.fd: add File Dialog
527 * Toolbar_pimpl.C: move LayoutsCB to here
529 2001-03-06 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
531 * FormParagraph.C: changes because of ParagraphParameters.
533 2001-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
535 * FormSearch.C (Replace): remove default argument
538 2001-03-05 Edwin Leuven <leuven@fee.uva.nl>
540 * added find/replace dialog:
541 * FormSearch.*: added
542 * form_search.*: added
543 * forms/form_search.fd: added
545 2001-03-05 Angus Leeming <a.leeming@ic.ac.uk>
547 * xform_helpers.[Ch]: renamed as xforms_helpers.[Ch].
549 * various: in a rush of delayed guilt, I've renamed all instances of
550 xform as xforms. Jean-Marc sowed this seed a long, long time ago and it
553 * xforms_helpers.[Ch] (setEnabled): a little wrapper function to
554 activate/deactivate an FL_OBJECT.
563 * FormTabular.C: used it.
565 2001-03-05 Angus Leeming <a.leeming@ic.ac.uk>
567 * FormPreferences.C: removed three unused using directives.
569 2001-03-05 Edwin Leuven <leuven@fee.uva.nl>
571 * added find/replace dialog:
572 * FormSearch.*: added
573 * form_search.*: added
574 * forms/form_search.fd: added
576 2001-02-27 Dekel Tsur <dekelts@tau.ac.il>
578 * FormRef.C: Fixed the behaviour of Goto-Ref.
580 2001-02-27 Angus Leeming <a.leeming@ic.ac.uk>
582 * forms/makefile: added character and preamble dialogs
584 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
586 * FormCharacter.C (FormCharacter): change order of deletion,
587 change combo_language2 to combo_language2_
589 2001-02-26 Dekel Tsur <dekelts@tau.ac.il>
591 * FormRef.C (apply): Update bookmark #0 after inserting a reference.
593 2001-02-23 Edwin Leuven <leuven@fee.uva.nl>
595 * Dialogs.C: added layoutcharacter
596 * FormCharacter.C: added
597 * FormCharacter.h: added
598 * form_character.C: added
599 * form_character.h: added
600 * forms/form_character.fd: added
602 2001-02-23 Dekel Tsur <dekelts@tau.ac.il>
604 * FormPreferences.C: Handle lyxrc.language_use_babel and
605 lyxrc.language_global_options.
607 2001-02-23 Angus Leeming <a.leeming@ic.ac.uk>
609 * FormPreferences(GetFrom, GetTo): use size_type rather than int.
611 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
613 * FormBase.C: no longer transient dialogs, XMapWindow()
614 in attempt to de-iconify
616 * FormDocument.C: remove DO_USE_DEFAULT_LANGUAGE
618 2001-02-21 Dekel Tsur <dekelts@tau.ac.il>
620 * FormDocument.C (checkMarginValues): Activate "use geometry" button
621 if using custom paper size/margin.
623 2001-02-21 Allan Rae <rae@lyx.org>
625 * forms/form_preferences.fd: larger, bold font for outer tabfolder
627 2001-02-20 Edwin Leuven <leuven@fee.uva.nl>
629 * src/frontends/xforms/Dialogs.C: added preamble
630 * src/frontends/xforms/FormPreamble.C: added
631 * src/frontends/xforms/FormPreamble.h: added
632 * src/frontends/xforms/Makefile.am: added
633 * src/frontends/xforms/form_preamble.C: added
634 * src/frontends/xforms/form_preamble.h: added
635 * src/frontends/xforms/form_preamble.fd: added
637 2001-02-19 Angus Leeming <a.leeming@ic.ac.uk>
639 * FormBase.h: moved noncopyable derivation to DialogBase.
641 2001-02-19 Juergen Vigna <jug@sad.it>
643 * FormTabular.C (build): make all input field accepted only after
646 * forms/form_tabular.fd: removed default "Return" on Close-Button.
648 2001-02-19 Angus Leeming <a.leeming@ic.ac.uk>
652 * FormInset.C (showInset): change associated with name change
653 inset::hide to inset::hideDialog.
655 2001-02-19 Angus Leeming <a.leeming@ic.ac.uk>
657 * FormCitation.C (build): altering "Text after" now activates the Ok,
660 2001-02-16 Angus Leeming <a.leeming@ic.ac.uk>
662 * FormCitation.C: lots of white-space changes to make file consistent
664 (input): use the FL_OBJECT * parameter to decide what to do, not the
667 * FormCitation.h: removed most entries in enum.
669 * forms/form_citation.fd: change names of variables, consistent with
670 Allan's naming scheme.
671 Don't pass any particular arguments to the InputCB function.
672 choice_style now triggers a callback and looks like other choices.
674 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
676 * other: use compare instead of strcmp/strncmp
678 2001-02-15 Angus Leeming <a.leeming@ic.ac.uk>
680 * ButtonController.[Ch]: changed trigger_change_ vector and associated
681 methods to dont_trigger_change_ because FL_OBJECTs that trigger a
682 callback to InputCB() but don't trigger a change in the state of the
683 Ok, Apply buttons are much rarer than those that do.
685 * FormCitation.C (build): associated change.
687 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
689 * ButtonController.C: include algorithm
691 2001-02-14 Angus Leeming <a.leeming@ic.ac.uk>
693 * ButtonController.[Ch] (addTriggerChange, eraseTriggerChange):
695 (valid): method can now be passed an optional FL_OBJECT *. If it is, and
696 the vector of FL_OBJECT *s that can trigger a change in the button state
697 is not empty, then a change of state will occur only if the FL_OBJECT *
698 is present in this vector.
700 * FormBase.C (RestoreCB): call bc.undoAll() before restore(). Allows
701 the user to deactivate specific fields within restore().
702 (InputCB): pass the FL_OBJECT * to bc_.valid().
704 * FormCitation.C (build): create a vector of FL_OBJECT *s that can
705 trigger a change of state in the Ok,Apply buttons.
706 (update): bc_.readOnly() to the start of the method. Similar reasoning
707 to that for FormBase::RestoreCB, above.
709 2001-02-14 Angus Leeming <a.leeming@ic.ac.uk>
711 * FormBrowser.C: used OkCancelPolicy for ButtonController rather than
714 * forms/form_browser.fd:
715 * forms/form_copyright.fd:
716 * forms/form_error.fd:
717 * forms/form_tabular.fd:
719 Consistent shortcuts for Close button: Esc and Return only.
721 * forms/form_citation.fd:
722 * forms/form_document.fd:
723 * forms/form_index.fd:
724 * forms/form_paragraph.fd:
725 * forms/form_preferences.fd:
726 * forms/form_print.fd:
728 * forms/form_tabular_create.fd:
730 Consistent shortcut for Cancel button: Esc only.
732 2001-02-12 John Levon <moz@compsoc.man.ac.uk>
734 * Dialogs.C: new Splash. Include, Bibitem/tex
736 * FormBase.h: make show() virtual for Splash's benefit
748 * forms/form_bibitem.fd:
749 * forms/form_bibtex.fd:
754 * forms/form_include.fd:
759 * forms/form_splash.fd: new forms
761 2001-02-09 John Levon <moz@compsoc.man.ac.uk>
763 * FormLog.C: handle Literate build log nicely
765 2001-02-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
767 * Menubar_pimpl.C: remove support for reference menuitem type.
769 2001-02-07 John Levon <moz@compsoc.man.ac.uk>
773 * Timeout_pimpl.C: add Timeout implementation
775 2001-02-06 John Levon <moz@compsoc.man.ac.uk>
779 * forms/form_browser.fd:
782 * FormBrowser.h: readonly browser form
788 * Dialogs.C: add Log and VCLog
790 * Makefile.am: add Log and VCLog, add updatesrc target
792 2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
794 * Menubar_pimpl.C (add_toc2): Add shortcut to the TOC menu.
796 2001-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
798 * FormPreferences.C (GetFrom): fix crash when there is no format
802 2001-01-23 Angus Leeming <a.leeming@ic.ac.uk>
804 * FormPreferences.C (LoadBrowserLyX): convert unsigned short to
805 unsigned char correctly and so fix 2 bugs loading/changing colors.
807 2001-01-21 Dekel Tsur <dekelts@tau.ac.il>
809 * FormRef.C (update): Do not update dialog_->{ref,name,type}
811 Deactivate the type button when buffer is LinuxDoc/Docbook
812 (build): Uncomment calls to addReadOnly().
813 (updateBrowser) Do not disable the update button when there are no
815 (build, getType, getName): Use InsetRef::types.
817 2001-01-18 Angus Leeming <a.leeming@ic.ac.uk>
819 * FormPrint.[Ch] (browse): new method to browse for file to print to.
821 * forms/form_print.fd: give the form a Browse button.
823 2001-01-17 Dekel Tsur <dekelts@tau.ac.il>
825 * FormRef.C (input): Fix the behavior of goto reference button.