pan-users
[Top][All Lists]
Advanced

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

[Pan-users] Re: Read or save attachements - number of lines


From: walt
Subject: [Pan-users] Re: Read or save attachements - number of lines
Date: Fri, 26 Oct 2007 16:33:01 +0000 (UTC)
User-agent: Pan/0.132 (Waxed in Black)

On Fri, 26 Oct 2007 09:21:09 -0500, Styma, Robert E \(Robert\) wrote:

> ...I would like to bump the 5000 line number up to an artibitrarily
> large number so it does not go into "save as" mode...

At this stage of pan's beta life that number is hard-wired in this
section of code in the file header-pane.cc:

 gboolean on_row_activated_idle (gpointer pane_g)
  {
    HeaderPane * pane (static_cast<HeaderPane*>(pane_g));
    const Article * a (pane->get_first_selected_article());
    if (a) {
      const size_t lines = a->get_line_count();
      const bool is_smallish = lines  <= 5000;
      const bool is_mediumish = lines <= 20000;
      const bool image_subject = has_image_type_in_subject (*a);
      const bool is_pictures_newsgroup = pane->get_group().to_view
().strstr("pictures")!=0;
      if (is_smallish || image_subject)
        pane->_action_manager.activate_action ("read-selected-article");
      else if (is_mediumish && is_pictures_newsgroup)
        pane->_action_manager.activate_action ("read-selected-article");
      else
        pane->_action_manager.activate_action ("save-articles");
    }
    return false;
  }

If that code make sense to you then it should be an easy tweak.  If
not, then I'm afraid you're out of luck for the present unless some
geek at your work enjoys this sort of tinkering (strictly on his own
time, of course ;o)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]