[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gnome-apt screenshot, more questions



After making some changes, I put a screenshot at 
http://www.debian.org/~hp/gnome-apt.gif

I took out the text widget, and for now there are just two blank spaces
and a label that gives the name of the selected package.

Questions: 

Sometimes if I have pkgIterator i, i.Section() == 0. What does this mean? 

Also, this returns "Unknown Priority" a lot; what's up with that?

const char* 
priority_string(pkgCache::State::VerPriority vp)
{
  switch (vp) {
  case pkgCache::State::Important:
    return _("Important");
    break;
  case pkgCache::State::Required:
    return _("Required");
    break;
  case pkgCache::State::Standard:
    return _("Standard");
    break;
  case pkgCache::State::Optional:
    return _("Optional");
    break;
  case pkgCache::State::Extra:
    return _("Extra");
    break;
  default:
    return _("Unknown priority");
    break;
  }
}

Thanks,
Havoc



Reply to: