~ubuntu-branches/ubuntu/karmic/fltk1.1/karmic

« back to all changes in this revision

Viewing changes to src/Fl_Tabs.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-05-22 13:57:06 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050522135706-mchag24yf42lu7bu
Tags: 1.1.6-5
* Revert previous change, which seems to have been ineffective for some
  reason, in favor of commenting out the problematic Makefile rule
  altogether.  (Closes: #310151.)
* debian/control: Go back to specifying the URL as part of the
  description rather than via a non-standard field that doesn't seem to
  have caught on.  (Closes: #310240.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.19 2004/04/11 04:38:58 easysw Exp $"
 
2
// "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.20 2004/07/27 16:02:21 easysw Exp $"
3
3
//
4
4
// Tab widget for the Fast Light Tool Kit (FLTK).
5
5
//
133
133
  case FL_DRAG:
134
134
  case FL_RELEASE:
135
135
    o = which(Fl::event_x(), Fl::event_y());
136
 
    if (event == FL_RELEASE) {push(0); if (o && value(o)) do_callback();}
137
 
    else push(o);
 
136
    if (event == FL_RELEASE) {
 
137
      push(0);
 
138
      if (o && value(o)) {
 
139
        set_changed();
 
140
        do_callback();
 
141
      }
 
142
    } else push(o);
138
143
    if (Fl::visible_focus() && event == FL_RELEASE) Fl::focus(this);
139
144
    return 1;
140
145
  case FL_FOCUS:
160
165
        for (i = 1; i < children(); i ++)
161
166
          if (child(i)->visible()) break;
162
167
        value(child(i - 1));
 
168
        set_changed();
163
169
        do_callback();
164
170
        return 1;
165
171
      case FL_Right:
167
173
        for (i = 0; i < children(); i ++)
168
174
          if (child(i)->visible()) break;
169
175
        value(child(i + 1));
 
176
        set_changed();
170
177
        do_callback();
171
178
        return 1;
172
179
      case FL_Down:
302
309
}
303
310
 
304
311
//
305
 
// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.19 2004/04/11 04:38:58 easysw Exp $".
 
312
// End of "$Id: Fl_Tabs.cxx,v 1.6.2.10.2.20 2004/07/27 16:02:21 easysw Exp $".
306
313
//