Changeset f933403


Ignore:
Timestamp:
Oct 3, 2003, 9:10:37 PM (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:
12582d3
Parents:
2404c3a
Message:
Fix to make 'default' style the default again
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r2404c3a rf933403  
    332.0.8-pre-4
    44        Added the 'source' command.
     5        Fix to make 'default' style the default again.
    56       
    672.0.8-pre-3   
  • functions.c

    r2404c3a rf933403  
    5959}
    6060
    61 
    6261void owl_function_show_view(char *viewname)
    6362{
     
    375374}
    376375
    377 
    378376void owl_function_aimwrite(char *to)
    379377{
     
    392390  }
    393391}
    394 
    395 
    396392
    397393/* If filter is non-null, looks for the next message matching
     
    503499}
    504500
    505 
    506501void owl_function_prevmsg()
    507502{
     
    518513  owl_function_prevmsg_full(NULL, 1, 1);
    519514}
    520 
    521515
    522516void owl_function_nextmsg_personal()
     
    559553  }
    560554}
    561 
    562555
    563556void owl_function_undeletecur(int move_after)
     
    590583  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    591584}
    592 
    593585
    594586void owl_function_expunge()
     
    627619  owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    628620}
    629 
    630621
    631622void owl_function_firstmsg()
     
    672663}
    673664
    674 
    675665void owl_function_shift_left()
    676666{
     
    688678}
    689679
    690 
    691680void owl_function_unsuball()
    692681{
     
    784773}
    785774
    786 
    787775void owl_function_makemsg(char *fmt, ...)
    788776{
     
    821809  va_end(ap);
    822810}
    823 
    824811
    825812void owl_function_openurl()
     
    10381025}
    10391026
    1040 
    10411027int owl_function_calculate_topmsg_normal(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines)
    10421028{
     
    11041090}
    11051091
    1106 
    11071092void owl_function_resize()
    11081093{
    11091094  owl_global_set_resize_pending(&g);
    11101095}
    1111 
    11121096
    11131097void owl_function_run_buffercommand()
     
    11561140}
    11571141
    1158 
    11591142void owl_function_refresh()
    11601143{
     
    11691152  }
    11701153}
    1171 
    11721154
    11731155void owl_function_subscribe(char *class, char *inst, char *recip)
     
    11831165}
    11841166
    1185 
    11861167void owl_function_unsubscribe(char *class, char *inst, char *recip)
    11871168{
     
    11961177}
    11971178
    1198 
    11991179void owl_function_set_cursor(WINDOW *win)
    12001180{
    12011181  wnoutrefresh(win);
    12021182}
    1203 
    12041183
    12051184void owl_function_full_redisplay()
     
    12201199  owl_global_set_needrefresh(&g);
    12211200}
    1222 
    12231201
    12241202void owl_function_popless_text(char *text)
     
    12381216  owl_global_set_needrefresh(&g);
    12391217}
    1240 
    12411218
    12421219void owl_function_popless_fmtext(owl_fmtext *fm)
     
    14441421}
    14451422
    1446 
    14471423/* print the current message in a popup window.
    14481424 * Use the 'default' style regardless of whatever
     
    14741450  owl_fmtext_free(&fm);
    14751451}
    1476 
    14771452
    14781453void owl_function_page_curmsg(int step)
     
    17061681}
    17071682
    1708 
    17091683void owl_function_status()
    17101684{
     
    17971771  owl_fmtext_free(&fm);
    17981772}
    1799 
    18001773
    18011774/* if type = 0 then normal reply.
     
    20612034}
    20622035
    2063 
    20642036char *owl_function_perl(int argc, char **argv, char *buff, int type)
    20652037{
     
    26312603}
    26322604
    2633 
    2634 
    26352605void owl_function_color_current_filter(char *color)
    26362606{
     
    27462716  }
    27472717}
    2748 
    27492718
    27502719void owl_function_show_keymaps()
     
    28862855  owl_function_makemsg("No matches found");
    28872856}
    2888 
    28892857
    28902858/* strips formatting from ztext and returns the unformatted text.
     
    30543022}
    30553023
    3056 
    3057 
    30583024void owl_function_do_newmsgproc(void)
    30593025{
     
    31853151}
    31863152
    3187 
    31883153void owl_function_change_style(owl_view *v, char *stylename)
    31893154{
  • owl.c

    r2404c3a rf933403  
    244244  }
    245245
    246   /* set the startup and default style, based on userclue and presence of a
    247    * formatting function */
    248   if (owl_global_is_config_format(&g)) {
    249     owl_global_set_default_style(&g, "perl");
    250   } else if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) {
    251     owl_global_set_default_style(&g, "default");
    252   } else {
    253     owl_global_set_default_style(&g, "basic");
    254   }
    255 
    256246  /* execute the startup function in the configfile */
    257247  perlout = owl_perlconfig_execute("owl::startup();");
     
    280270      owl_function_loadloginsubs(NULL);
    281271    }
     272  }
     273
     274  /* set the startup and default style, based on userclue and presence of a
     275   * formatting function */
     276  if (owl_global_is_config_format(&g)) {
     277    owl_global_set_default_style(&g, "perl");
     278  } else if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) {
     279    owl_function_debugmsg("Here with default style\n");
     280    owl_global_set_default_style(&g, "default");
     281  } else {
     282    owl_function_debugmsg("Here with basic style\n");
     283    owl_global_set_default_style(&g, "basic");
    282284  }
    283285
Note: See TracChangeset for help on using the changeset viewer.