X-Git-Url: https://git.pld-linux.org/?p=packages%2Fmutt.git;a=blobdiff_plain;f=mutt-cd.signatures_menu.patch;h=186bb9499558695dca31a086100e84de48e21a52;hp=24e0c58369e01c2046f17b7deb98552725966958;hb=bfecbaae423f24605540a29fe05efeb9489a6e0c;hpb=eb755509acba66e84e43e436533020cbfd02534f diff --git a/mutt-cd.signatures_menu.patch b/mutt-cd.signatures_menu.patch index 24e0c58..186bb94 100644 --- a/mutt-cd.signatures_menu.patch +++ b/mutt-cd.signatures_menu.patch @@ -179,7 +179,7 @@ diff -pruN2 mutt-1.3.27.orig/protos.h mutt-1.3.27/protos.h diff -pruN2 mutt-1.3.27.orig/signature.c mutt-1.3.27/signature.c --- mutt-1.3.27.orig/signature.c Thu Jan 1 01:00:00 1970 +++ mutt-1.3.27/signature.c Wed Jan 23 22:35:32 2002 -@@ -0,0 +1,505 @@ +@@ -0,0 +1,504 @@ +/* + * Copyright (C) 2001 Cedric Duval + * @@ -352,11 +352,10 @@ diff -pruN2 mutt-1.3.27.orig/signature.c mutt-1.3.27/signature.c + + SETCOLOR (MT_COLOR_STATUS); + mvaddstr (SIG_DISPLAY_LINES + 1, 0, _("-- Signature")); -+ BKGDSET (MT_COLOR_STATUS); ++ SETCOLOR (MT_COLOR_STATUS); + clrtoeol (); + -+ BKGDSET (MT_COLOR_NORMAL); -+ SETCOLOR (MT_COLOR_NORMAL); ++ NORMAL_COLOR; +} + +static void free_sig_list (SIG_LIST **sigs) @@ -402,11 +401,10 @@ diff -pruN2 mutt-1.3.27.orig/signature.c mutt-1.3.27/signature.c + + snprintf (title, sizeof (title), _("Signature : %s"), file); + -+ menu = mutt_new_menu (); ++ menu = mutt_new_menu (MENU_SIG); + menu->make_entry = sig_make_entry; + menu->tag = NULL; + menu->search = sig_menu_search; -+ menu->menu = MENU_SIG; + menu->title = title; + menu->help = mutt_compile_help (helpstr, sizeof (helpstr), + MENU_SIG, SigHelp); @@ -464,6 +462,8 @@ diff -pruN2 mutt-1.3.27.orig/signature.c mutt-1.3.27/signature.c + return result; +} + ++extern char* SearchBuffers[MENU_MAX]; ++ +static SIG_LIST *sig_search_filter (MUTTMENU *menu, char *path) +{ + regex_t re; @@ -595,11 +595,10 @@ diff -pruN2 mutt-1.3.27.orig/signature.c mutt-1.3.27/signature.c + + snprintf (title, sizeof (title), "Signature directory : %s", path); + -+ menu = mutt_new_menu (); ++ menu = mutt_new_menu (MENU_SIG_DIR); + menu->make_entry = sig_dir_make_entry; + menu->search = NULL; /* search within files with sig_search_filter() */ + menu->tag = sig_dir_tag; -+ menu->menu = MENU_SIG_DIR; + menu->title = title; + menu->help = mutt_compile_help (helpstr, sizeof (helpstr), + MENU_SIG_DIR, SigDirHelp); @@ -688,5 +687,26 @@ diff -pruN2 mutt-1.3.27.orig/signature.c mutt-1.3.27/signature.c diff -pruN mutt-1.3.27.orig/PATCHES mutt-1.3.27/PATCHES --- mutt-1.3.27.orig/PATCHES Mon Nov 26 20:16:52 2001 +++ mutt-1.3.27/PATCHES Thu Dec 6 16:27:55 2001 -@@ -1,0 +1 @@ +@@ -1,0 +2 @@ +patch-1.3.27.cd.signatures_menu.2.1 +diff --git a/menu.c b/menu.c +--- a/menu.c ++++ b/menu.c +@@ -642,7 +642,7 @@ + mutt_error _("No entries."); + } + +-static void menu_next_entry (MUTTMENU *menu) ++void menu_next_entry (MUTTMENU *menu) + { + if (menu->current < menu->max - 1) + { +@@ -653,7 +653,7 @@ + mutt_error _("You are on the last entry."); + } + +-static void menu_prev_entry (MUTTMENU *menu) ++void menu_prev_entry (MUTTMENU *menu) + { + if (menu->current) + {