Hi, related to a request for more intuitive variable selection
(
https://sourceforge.net/p/gretl/feature-requests/211/) we talked about
adding a tooltip that informs users that you can do a right-click on a
listed variable (e.g., in the OLS model spec dialog).
I looked at the code and found a kind of similar example related to the
Midas dialog, in gui/selector.c. In the function <static GtkWidget
*var_list_box_new> there is the statement:
if (locus == SR_RVARS2 && sr->ci == MIDASREG) {
gretl_tooltips_add(view, _("Select and right-click to edit
specification"));
Obviously, we need a different "locus" for our purpose, and we don't
want to be restricted to midas; so how about adding the following to an
already existing if-block in the mentioned function:
if (locus == SR_LVARS) {
/* left-hand box with the selectable vars */
... other instructions...
gretl_tooltips_add(view, _("Select and right-click to add to
regressor list"));
} ...
Would that already do the trick?
thanks
sven