Changeset 252a5c2 for owl.c


Ignore:
Timestamp:
Nov 1, 2003, 12:53:53 AM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7d22e76
Parents:
1db061d
Message:
Print an admin message indicating when subscriptions can
   not be loaded on startup
Fixed bug causing problems with invalid @ colors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r8c92848 r252a5c2  
    280280  tw=owl_global_get_typwin(&g);
    281281
    282   wrefresh(sepwin);
    283 
    284   /* load zephyr subs */
    285   if (initialsubs) {
    286     /* load normal subscriptions */
    287     ret=owl_zephyr_loadsubs(NULL);
    288     if (ret!=-1) {
    289       owl_global_add_userclue(&g, OWL_USERCLUE_CLASSES);
    290     }
    291 
    292     /* load login subscriptions */
    293     if (owl_global_is_loginsubs(&g)) {
    294       owl_function_loadloginsubs(NULL);
    295     }
    296   }
    297 
    298   /* set the startup and default style, based on userclue and presence of a
    299    * formatting function */
    300   if (0 != strcmp(owl_global_get_default_style(&g), "__unspecified__")) {
    301     /* the style was set by the user: leave it alone */
    302   } else if (owl_global_is_config_format(&g)) {
    303     owl_global_set_default_style(&g, "perl");
    304   } else if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) {
    305     owl_global_set_default_style(&g, "default");
    306   } else {
    307     owl_global_set_default_style(&g, "basic");
    308   }
    309 
    310   /* zlog in if we need to */
    311   if (owl_global_is_startuplogin(&g)) {
    312     owl_zephyr_zlog_in();
    313   }
    314 
    315   owl_view_set_style(owl_global_get_current_view(&g),
    316                      owl_global_get_style_by_name(&g, owl_global_get_default_style(&g)));   
    317 
    318282  /* welcome message */
    319283  strcpy(startupmsg, "-------------------------------------------------------------------------\n");
     
    329293  owl_function_adminmsg("", startupmsg);
    330294  sepbar(NULL);
     295
     296  wrefresh(sepwin);
     297
     298  /* load zephyr subs */
     299  if (initialsubs) {
     300    /* load normal subscriptions */
     301    ret=owl_zephyr_loadsubs(NULL);
     302    if (ret==-1) {
     303      owl_function_adminmsg("", "Error loading subscriptions, file inaccessable");
     304    } else if (ret!=0) {
     305      owl_function_adminmsg("", "Error loading subscriptions");
     306    }
     307   
     308    if (ret!=-1) {
     309      owl_global_add_userclue(&g, OWL_USERCLUE_CLASSES);
     310    }
     311
     312    /* load login subscriptions */
     313    if (owl_global_is_loginsubs(&g)) {
     314      owl_function_loadloginsubs(NULL);
     315    }
     316  }
     317
     318  /* set the startup and default style, based on userclue and presence of a
     319   * formatting function */
     320  if (0 != strcmp(owl_global_get_default_style(&g), "__unspecified__")) {
     321    /* the style was set by the user: leave it alone */
     322  } else if (owl_global_is_config_format(&g)) {
     323    owl_global_set_default_style(&g, "perl");
     324  } else if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) {
     325    owl_global_set_default_style(&g, "default");
     326  } else {
     327    owl_global_set_default_style(&g, "basic");
     328  }
     329
     330  /* zlog in if we need to */
     331  if (owl_global_is_startuplogin(&g)) {
     332    owl_zephyr_zlog_in();
     333  }
     334
     335  owl_view_set_style(owl_global_get_current_view(&g),
     336                     owl_global_get_style_by_name(&g, owl_global_get_default_style(&g)));   
    331337 
    332338  owl_context_set_interactive(owl_global_get_context(&g));
Note: See TracChangeset for help on using the changeset viewer.