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

« back to all changes in this revision

Viewing changes to fluid/Fl_Menu_Type.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_Menu_Type.cxx,v 1.16.2.12.2.8 2004/04/11 04:38:55 easysw Exp $"
 
2
// "$Id: Fl_Menu_Type.cxx,v 1.16.2.12.2.10 2004/11/21 14:53:48 easysw Exp $"
3
3
//
4
4
// Menu item code for the Fast Light Tool Kit (FLTK).
5
5
//
185
185
    int thislevel = q->level; if (q->is_parent()) thislevel++;
186
186
    int nextlevel =
187
187
      (q->next && q->next->is_menu_item()) ? q->next->level : t->level+1;
188
 
    while (thislevel > nextlevel) {write_c(" {0},\n"); thislevel--;}
 
188
    while (thislevel > nextlevel) {write_c(" {0,0,0,0,0,0,0,0,0},\n"); thislevel--;}
189
189
  }
190
 
  write_c(" {0}\n};\n");
 
190
  write_c(" {0,0,0,0,0,0,0,0,0}\n};\n");
191
191
 
192
192
  if (k) {
193
193
    // Write menu item variables...
339
339
    int lvl = level+1;
340
340
    for (q = next; q && q->level > level; q = q->next) {
341
341
      Fl_Menu_Item_Type* i = (Fl_Menu_Item_Type*)q;
342
 
      m->label(i->o->label());
 
342
      if (i->o->image()) i->o->image()->label(m);
 
343
      else {
 
344
        m->label(i->o->label() ? i->o->label() : "(nolabel)");
 
345
        m->labeltype(i->o->labeltype());
 
346
      }
343
347
      m->shortcut(((Fl_Button*)(i->o))->shortcut());
344
348
      m->callback(0,(void*)i);
345
349
      m->flags = i->flags();
346
 
      m->labeltype(i->o->labeltype());
347
350
      m->labelfont(i->o->labelfont());
348
351
      m->labelsize(i->o->labelsize());
349
352
      m->labelcolor(i->o->labelcolor());
465
468
}
466
469
 
467
470
//
468
 
// End of "$Id: Fl_Menu_Type.cxx,v 1.16.2.12.2.8 2004/04/11 04:38:55 easysw Exp $".
 
471
// End of "$Id: Fl_Menu_Type.cxx,v 1.16.2.12.2.10 2004/11/21 14:53:48 easysw Exp $".
469
472
//